How do I hide the 'Follow-up' check boxes on a New Appointment or New Task Screen Screen?

Below is a screen shot that shows the New Task Screen. You'll see there are some checkboxes that if selected will launch another new communication screen once the New Communication is saved.

The HTML that generates these Checkboxes looks like this:

Create Follow-up Task
Create Follow-up Appointment

We can see that the fields are called

  • DoFollowUpTask
  • DoFollowUpAppt

The Checkbox fields are not defined in the custom_edits table. The fields originate within the code of the eWare.dll.

The captions for the fields are made up of two translation records combined into one.

e.g.

Create Follow-up Task

Is made from

  • Caption Code: Create Follow-up
  • Caption Family: GenCaptions
  • Caption Family Type: Tags
  • US Translation: Create Follow-up

and

  • Caption Code: Task
  • Caption Family: Button
  • Caption Family Type: Tags
  • US Translation: Task

Hiding the Field

If we want to either hide or remove the field then we will need to use clientside code. This can be added to the custom content box of any of the screen (entrygroup) blocks that are used to create the New Appointment or New Task screens.

I used the customcommunicationdetail box.

I added the following code


Note: This code will hide the Create Follow-Up Task checkbox and caption. It does not close up the HTML although this could be done by resetting the inner HTML of the tags that are identified in the code.

This code can be expanded to include checks on the rights and permissions of the different users. The CurrentUser object is created in the clientside for you to be able to reference this.

Anonymous