Document Triggers

Document Triggers

Create a Trigger

There are a number of ways to create a trigger:

Document Triggers Utility

  1. Open Configure → Document Triggers and select Add New.

  2. Click Add New.

image-20241209-015828.png

Form Designer

  1. Click the user field in the form designer.

  2. In the properties section on the right, click Add Trigger.

image-20261019-014819.png

From Type Config

  1. Click the form in Form Types.

  2. Open the Triggers tab.

  3. Click Add new.

image-20261019-015105.png

Completing Trigger Config

Trigger Name

Name your trigger.

image-20241209-020035.png

Setting Up When the Trigger Should Run (When This Happens....)

Choose Form Type

Choose one or more form types this trigger applies to.

image-20241209-020208.png

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.

image-20261019-022641.png

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.  

image-20261019-023230.png

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.

image-20241209-023250.png

Value (Operator)

Equals - must equal the options selected.

Contains - can include one or more of the selected options.

image-20241209-023416.png

Option

After you choose a user field, its available options appear. Select the option you want the trigger to match or contain.

image-20261019-024328.png

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.

image-20261019-024613.png

Based on New (Before Submission)

Update a user field value prior to form being submitted.

image-20261019-024934.png

Action Performed By

Leave this blank if anyone can trigger it, or list users allowed to activate it.

image-20241209-022150.png

Clear Fields When Condition is not Matched

If enabled, fields auto‑filled by the trigger clear when the condition is no longer true.

image-20261019-024727.png

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

 

Choose Action

 

Update current form

image-20261019-232659.png

 

 

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

image-20260209-020848.png

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

  • Think of it as asking: “Give me this data" or "Tell me what's in the fridge".

  • Retrieves data from a server.

  • All required information is included in the URL.

  • Example usage:
    https://api.example.com?project=ProjectName&doc=DocumentId

  • CX simply calls the URL, allowing the server to execute the associated logic.

POST

  • Think of it as saying: “Here is some data—do something with it" or "Here are the groceries - put them in the fridge".

  • Sends data to a server to create or update something.

  • The URL specifies the endpoint; the data is passed in the request body, not the URL.

  • Example:

    POST https://api.example.com/user

    Body:

    {

    "name": "Alex",

    "email": "alex@example.com"

    }

  • When CX “triggers a POST URL,” it’s sending data to the server so the server can run whatever action the developer programmed—like creating a ticket, updating a record, or starting a process.

PUT

  • Think of this like “there is an out of date bottle of milk in the fridge so replace it with a new one”.

  • You’re not adding something new beside it.

  • You’re replacing what’s already there with an updated version.

So in API terms:

  • PUT updates an existing resource.

  • The old data is replaced with the new data you provide.

DELETE

  • Think of this like “there is an out of date bottle of milk in the fridge so throw it away”.

  • Removes a resource.

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:

  • Document ID

  • Document name

  • Revision

  • User details

  • Any metadata available in the endpoint

…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:

  1. A document is uploaded in CX.

  2. A trigger fires and sends a POST request to the specified URL.

  3. That POST request can contain any of the document fields exposed by CX’s API, if the 3rd party developer designs the URL and script to fetch them.

  4. The receiving script (built by the 3rd‑party developer) can then:

    • Use the document ID or file link to download the file from CX

    • And process that document according to what is written in the script.

Choose Update Event Field

Select which user field should be updated.

image-20241209-052130.png

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

 

Choose Update Event Field

Set To

 

Contact user field

 

Date user field 

image-20250311-033331.png

Text user field 

  • Edit Text - type the text that you want to be inserted onto the form.

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

image-20261020-013630.png

 

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.

ae530cf1-abb4-4f37-a142-e93a48b85cec.png

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.

image-20250311-034755.png

Steps taken:

  1. Create a GENTEST form with the CASCADING01 user field fill in.

  2. Create an RFI1 with the CASCADING01 user field not filled in.

  3. Link the RFI1 to the GENTEST form.

  4. Respond to the GENTEST form and change the status.

  5. 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.

  1. Add a document list user field to the list table on the form.

  2. In Security set the mode to 'Manual'.

  3. Choose to display a 'List of Forms'. This ensures the document list shows forms related to this LOT (for example, Test Request, Action Point).

  1. Configure the trigger. Refer to Document Triggers for the trigger creation location.

  2. 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.

  1. Configure the chosen user fields in the post-action section “Do This”

image-20261020-002041.png
  1. 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.

image-20240315-045003.png

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)

image-20240315-045644.png

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

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

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)

image-20240315-052328.png
image-20240315-052413.png

The select field options are populated as follows

image-20240315-052454.png
update date field with sel field.gif

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