Question & Answer
Question
How can a field be set as required when adding a new SR?
Answer
In the following example, the SR SITEID will be set as REQUIRED on New SR's within the UI.
1) Go To – System Configuration – Platform Configuration – Automation Scripting – click on Select Action – Create – Scripting with Attribute Launch Point:
2) Within the 'Create Script with Attribute Launch Point : Step 1 of 3' add the following:
Launch Point: SITEREQUIRED
Description: SITEID Required on new SR
Active: CHECKED
Object: SR
Attribute: TICKETID
Click on the 'Next' button.
3) Within the 'Create Script with Attribute Launch Point : Step 2 of 3' add the following:
Script: SITEREQUIRED
Description: SITEID Required on new SR
Script Language: jython
4) Within the Variables pane, click on New Row. Add the following:
Variable: siteid
Variable Type: INOUT
Override? CHECKED
Binding Type: ATTRIBUTE
Launch Point Attribute: siteid
5) Click on Next button. Within the 'Create Script with Attribute Launch Point : Step 3 of 3' add the following script:
if onadd == True:
siteid_required = True
Click on the Create button. Correct any error that may appear. The following dialog will be displayed:
6) Create a new SR – the SITEID field will be required:
Was this topic helpful?
Document Information
Modified date:
17 June 2018
UID
swg21648363