Do you have script for "Enforcing attributes based on conditions"?
I want to achieve the below scenario, which I understand by now, is not available in RTC out of the box.
This must have been a common scenario for many, hence wanted to check if you have ready script for this?
Scenario1:
I want to make two attributes of type "Date" and "textbox" to become
required/mandatory depending on the value selected from another
dropdown attribute. For e.g., I have a dropdown attribute named
"SelectType". Attributes "RegulationReference" (textbox) and
"RegulationLetterIssueDate" (date) should become mandatory if the
values in "SelectType" dropdown is either of "NewPolicy", or
"PolicyRedesign". They should not become mandatory for any other values
selected in the dropdown.
Scenario2:
If value from the enumeration "ReleaseNotesRequired" is selected as "yes", then the attribute "EnterReleaseNotes" (description kind) should become mandatory.
I have never done scripting hence taking time to understand it.
Please share if you have the script.
One answer
Hi Pravin,
To accomplish both scenarios, you will need to add the Precondition "Required Attributes for Condition" and then you will have to write a condition script.
I can help you providing some sample scripts we have documented in the links below:
Configuring dynamic required attributes
Check "Custom Read-only and Required Attributes" section
https://jazz.net/library/article/1003/#attributecustomization