Commenting Out Actions and Triggers

While developing a publication or tying to pin down the cause of a problem it can be useful to disable actions or triggers that are not related to the elements you are currently working on. This disabling is known in programming terms as "commenting out" – that is, disabling commands by temporarily hiding them.

To comment out an action or trigger

  1. Open the Actions dialog box for the page or object you want to edit.

  1. Select the action or trigger to comment out in the Actions Organiser.

  2. Click the Comment button image\Icon_Actions_Comment.jpg on the Actions view toolbar or select the Comment command from the right-click menu for the action/trigger.

  3. The commented action or trigger will be greyed out in the Actions Organiser and the property page for commented actions is disabled.

To uncomment an action or trigger

  1. Open the Actions dialog box for the page or object you want to edit.

  1. Select the action or trigger to comment out in the Actions Organiser.

  2. Click the Comment button image\Icon_Actions_Comment.jpg on the Actions view toolbar or select the Comment command from the right-click menu for the action/trigger.

  3. The uncommented action or trigger will be displayed in the normal colour in the Actions Organiser and the property page for commented actions is enabled.

Note:
The commented state of actions is only "remembered" while the publication is open in the editor; it is not saved with the publication. This is intended to prevent any possible confusion when you reload a project and something doesn’t work because you have forgotten that it was commented out.

Related Topics:

Working with Actions

Choosing a Trigger

Choosing an Action

Using Multiple Triggers