Document Triggers
Create a Trigger
There are a number of ways to create a trigger:
Document Triggers Utility
Open Configure → Document Triggers and select Add New.
Click Add New.
Form Designer
Click the user field in the form designer.
In the properties section on the right, click Add Trigger.
From Type Config
Click the form in Form Types.
Open the Triggers tab.
Click Add new.
Completing Trigger Config
Trigger Name
Name your trigger.
Setting Up When the Trigger Should Run (When This Happens....)
Choose Form Type
Choose one or more form types this trigger applies to.
Choose Trigger Action
This defines what event activates the trigger.
Created – when a new form is created.
Status Changed – when a form’s status changes.
Created or Status Changed – when either a new form is created or an existing form’s status is changed.
Commented On – when someone adds a comment
Created or Commented On – when a new form is created or an existing form is commented on.
Updated – when anything on the form changes, including attachments.
Created or Updated – when a new form is created or an existing form is updated.
Based on User Field Change – when a specific user field changes.
New (Before Submission) - update a user field prior to submission.
Applies to all places that support triggers
Create
Respond
Comments (Quick Reply)
Inline Edit Saved Search
Import Utilities
Based on Status
All trigger actions, except Based On User Field Change (discussed Document Triggers) and New (Before Submission) (discussed Document Triggers), are based on status.
Choose the form status that will activate the trigger.
Based on User Field Change
For information regarding automation of user field based triggers refer to Document Triggers
If your trigger is based on a user field changing, you’ll see extra options.
Choose a User Field
Supported user field types: checkbox, radio buttons, select and cascading.
You can trigger on user fields inside or outside list tables.
If the trigger user field is outside a list table, you can only update other user fields outside a list table.
If the trigger user field is within a list table, you can only update user fields in that same list table.
Value (Operator)
Equals - must equal the options selected.
Contains - can include one or more of the selected options.
Option
After you choose a user field, its available options appear. Select the option you want the trigger to match or contain.
Add Condition
Use Add Condition to add requirements for the trigger. If you choose more than one criterion, all must match for the trigger to activate.
Based on New (Before Submission)
Update a user field value prior to form being submitted.
Action Performed By
Leave this blank if anyone can trigger it, or list users allowed to activate it.
Clear Fields When Condition is not Matched
If enabled, fields auto‑filled by the trigger clear when the condition is no longer true.
For example, if the trigger autofills the User ID and date when the checkbox is 'Y', the following applies:
If the checkbox is not ticked: Changing the value to anything other than ‘Y’ will not remove the User ID or Date — those values remain on the form.
If the checkbox is ticked: Changing the value to anything other than ‘Y’ will automatically clear the User ID and Date from the form.
Choosing What the Trigger Should Do (Do This....)
Choose an Action
Choose an action to update.
Choose Action |
|
|---|---|
Update current form
| Update the selected event field (see next table) for the current form only. Available for all trigger actions. Force Preview Notification for Create New Form Triggers When this option is ticked, each time the trigger runs it forces all assigned users to receive a form preview email, even if they have disabled preview notifications in their personal settings. This helps compliance workflows like SOPA, where visibility is mandatory. Include Addressed Users in Info for Create New Form Triggers When this option is ticked, each time the trigger runs it copies addressed users (Action or Info) from the original form into the Info field of the new form. The original form's author will be set as the Action user of the newly created form. This does not change. If the Force Preview Notification setting is ticked, these Info users will receive a preview email even if their personal preferences are off. This option is retained when duplicating triggers or copying to another project. |
Update most recently issued linked form of a certain type | When you choose a form type, the trigger updates the chosen event field (see next table) in the most recently issued linked form of that type. See an example at Document Triggers Not available for Based On User Field Change and New (Before Submission). |
Update form linked to a tender package | Updates the selected event field on the chosen form type when the form links to a tender package. Not available for Based On User Field Change and New (Before Submission). |
Create new form Document Triggers for forced preview email notifications. Document Triggers to carry Action and Info users to the new form automatically. | The trigger will create the chosen form type. Not available for Based On User Field Change and New (Before Submission). |
Trigger a URL | Not available for Based On User Field Change and New (Before Submission). The Trigger a URL feature lets users call an external API using GET, POST, PUT, or DELETE. Users paste a custom URL, and CX automatically replaces placeholders with actual project and document values before sending the request. Placeholders such as: ProjectName, DocumentId, DocTypeCode (e.g. GEN, RFI, CTR, CLM etc.) in the syntax. Refer here for more information REST. These placeholders can be inserted into the URL or request body. CX replaces them at runtime and sends the request to the specified endpoint. GET
POST
PUT
So in API terms:
DELETE
A 3rd party developer/code writer would need to be engaged to ensure the trigger URL and the receiving script are designed to do what you want. CX triggers can send any data that is available from the API endpoints. This means that if the API provides information such as:
…then this information can be included in the payload, as long as the URL is written to pull those fields from the API. Example of how this would work for publication space documents in theory:
|
Choose Update Event Field
Select which user field should be updated.
Select an action “what will happen to that user field”.
Document Triggers support changing the Action user field of a form using a contact field.
User field value from trigger form — works when you choose these actions: Update most recently issued linked form of a certain type, and Update from linked to a tender package.
Prerequisites
The following user fields must be configured before you can choose them.
Choose Update Event Field | Set To |
|
|---|---|---|
Contact user field |
| |
Date user field |
| |
Text user field |
| |
Select, Cascading, Radio, Checkboxes, Attachment List user fields | Use this option with “Choose Action” = Update most recently issued linked form of a specific type OR Update form linked to a tender package |
|
User Field Value from Trigger Form
Choosing this option updates the selected user field on the new or selected form from the form that triggered it.
Specific Value
If the Specific value option is chosen for a created trigger, the selected user field will be automatically filled with the value the administrator chooses when the form is created. This means fields such as discipline, phase, or inspection type can be set to a predefined value straight away, instead of requiring the user to manually select the value or copy it from another form.
The trigger will only run when the form is created in the configured Form Status, and it only applies to the form type where the trigger has been set up. If several fields are included in the same trigger, each field can either use its own specific value or take a value from the trigger form, depending on how the administrator configures it.
Overwrite Function
If enabled, the trigger replaces existing values each time it runs.
If disabled, the trigger fills the field only the first time.
Calculation, Coordinate, Currency, Document List and Number user fields are NOT available to be chosen for this feature.
Click Save when done.
Example of Updating Most Recently Issued Linked Form of a Certain Type
If two forms are linked, a trigger can copy values from one to the other when the first form is updated.
Steps taken:
Create a GENTEST form with the CASCADING01 user field fill in.
Create an RFI1 with the CASCADING01 user field not filled in.
Link the RFI1 to the GENTEST form.
Respond to the GENTEST form and change the status.
RFI1 form CASCADING01 user field is populated with the value that was on the GENTEST form.
Example of Trigger with User Fields Outside of a List Table
Below is an example trigger that updates the contact and date user fields outside the list table when the checkbox is set to Yes.
Example of Trigger with User Fields Inside of a List Table
Below is an example of a trigger configured to update contact and date user fields within a list table when the checkbox is ticked as Yes.
As the trigger is applicable to the whole list control, each row can be updated with the same trigger.
Automation of User Field Based Triggers
Auto Tick Checkbox if Associated Form is Closed
This function is best explained with an example. Here, a LOT form checks the Related user field in a list table: if it shows a Test Request form marked as 'Closed', the Checkbox is set to Yes automatically. The key takeaway is that the Checkbox can be set to Yes automatically rather than clicked manually.
Add a document list user field to the list table on the form.
In Security set the mode to 'Manual'.
Choose to display a 'List of Forms'. This ensures the document list shows forms related to this LOT (for example, Test Request, Action Point).
Configure the trigger. Refer to Document Triggers for the trigger creation location.
For this example:
Choose Form Type : LOT
Choose Trigger Action : Based on user field change
Choose User Field : Related (which is in the Document List)
Status Category Lookup: When using a document list user field in the criteria, the system will look up the status category type 'Option' of the forms in the document list user field.
Configurable Status Category 'Option' : Users can set criteria, for example Doclist User Field Status Category 'Option' to 'Closed'.
Trigger Logic: When a form with this trigger is responded to, the system checks the document list user field. If the forms meet the configured criteria (for example, all are in the closed status category), the trigger runs and updates the post actions.
Action Performed Selection: For these types of triggers you can configure which user must perform the action in order to run the trigger. e.g. 'Amy Sanford' needs to 'Close' the form in order to run the trigger.
Configure the chosen user fields in the post-action section “Do This”
On the Security tab for those user fields, an option labelled “only populate based on trigger” appears.
When ticked, a list of triggers that update this user field appears.
If related forms exist for that row, the field becomes non-editable and updates only from the trigger.
On rows without related forms, you can edit the checkbox manually.
If this step is not configured, users with edit rights can edit each row manually regardless of linked documents in the document list user field.
When you hover over a user field updated by triggers, a is message displayed: "This field cannot be edited manually. It will be updated by the following triggers: [Trigger name]."
Configure Multiple User Field Based Trigger Conditions
Empower users to streamline workflows effortlessly with the ability to add multiple trigger conditions based on user field changes. With this feature, users gain greater control and precision in automating actions, ensuring tasks are executed precisely when needed.
You can add two or more conditions when the trigger action is based on a user field change, and include multiple user fields in the trigger conditions.
Update User Fields Based on the Value of Another User Field
Populate additional selectable user fields based on the value of other user field(s). Previously, a trigger could only update Contact and Date user fields.
Supported User Fields:
Select (can set 1 or more options based on what is allowed in the user field)
Checkbox (can set 1 or more options based on what is allowed in the user field)
Cascading (can set 1 or more options based on what is allowed in the user field)
Radio (only supports setting 1 value at a time)
Update a Date Field Based on the Code of a Select Field
Date fields can now be updated based on the code of a select field.
The reference select fields codes must be configured as follows
A number followed by M or D
M is months
D is days
W is weeks
Possible options
Select Field Code | Description |
|---|---|
01M | Add 1 month to current date or date field value |
1M | Add 1 month to current date or date field value |
2M | Add 2 month to current date or date field value |
10D | Add 10 days to current date or date field value |
Date fields can be populated in these ways
Update method | Explanation |
|---|---|
Project date and time | Update date field with current date and time |
Specific date and time | Set a specific date and time value |
User field value from trigger form | Update date field from a trigger form |
Based on select field code | Update date field based on a select field code. |
In the example below we have configured a Date field (Auto date) to be updated based on a select field value (Daysmonths)
The select field options are populated as follows
To see how triggers can be used in date calculations, click Calculation User Field
Similar method can be used for scenarios where you want to assign the form to a different team based on user's selection
- 1 Create a Trigger
- 2 Completing Trigger Config
- 2.1 Trigger Name
- 2.2 Setting Up When the Trigger Should Run (When This Happens....)
- 2.2.1 Choose Form Type
- 2.2.2 Choose Trigger Action
- 2.2.3 Based on Status
- 2.2.4 Based on User Field Change
- 2.2.4.1 Choose a User Field
- 2.2.4.2 Value (Operator)
- 2.2.4.3 Option
- 2.2.4.4 Add Condition
- 2.2.5 Based on New (Before Submission)
- 2.2.6 Action Performed By
- 2.2.7 Clear Fields When Condition is not Matched
- 2.3 Choosing What the Trigger Should Do (Do This....)
- 2.3.1 Choose an Action
- 2.3.2 Choose Update Event Field
- 2.3.2.1 User Field Value from Trigger Form
- 2.3.2.2 Specific Value
- 2.3.3 Overwrite Function
- 2.4 Example of Updating Most Recently Issued Linked Form of a Certain Type
- 2.5 Example of Trigger with User Fields Outside of a List Table
- 2.6 Example of Trigger with User Fields Inside of a List Table
- 2.7 Automation of User Field Based Triggers