You can set dynamic validations for workflows. You can define dynamic validation for a field to display different validation messages based on workflow type.
To create a system choice list for error messages
First, you need to create a list of error messages that can be dynamically displayed during workflows.
1. Navigate to the Admin Tools tab.
2. Click the Data Management node, and select System Choice Lists.
For detailed information on system choice lists, refer to the article, "Adding and Updating the System Choice Lists"
3. Create a new choice list (for example, WF Errors) as shown in the following figure:
4. Click Edit to edit this choice list.
This displays the following screen:
5. Add items in this choice list as shown in the following figure:
6. Click Save and Close.
To set dynamic validations for workflows
After defining error messages in a system choice list, create a tagged text expression that references both the choice list name (error message choice list) and the workflow name.
- Open the job template editor.
- Select the building block for which you wish to set the dynamic validation.
Identify the field for validation within the workflow. Use tagged text to conditionally display this field only when a job is in revision.
- Click the Edit icon on the required block.
- Select the This Block Has Validations checkbox.
- Click Edit on the Tagged Text Expression block.
This displays the tagged text editor:
- Enter the required tagged text and click Save and Close.
For example, you can use the following tagged text expression:
The tagged text should have a reference of the error choice list (in this example WF_Errors) and the workflow name (Workflow name).
- Click Close Form.
- Click Save and Close.
- Click Save and Close.
Comments
0 comments
Please sign in to leave a comment.