How can we write script based validators and condition scripting in RTC to display warning message for certain attributes when user wont input the value?
HI All,
In RTC, Attribute customization section Can we write script based validators for displaying warning message when user leaves the attributes without filling value in workitem?
Can anyone share the syntax for throwing warning message for validators or if it is possible in condition script based value?
One answer
You are mixing several concepts. I would really suggest to read some of the referenced articles
Making attributes required/mandatory is supported in different ways
1. For work item type and state
2. For conditions - only for this you need JavaScript or Java extensions
There is no way to specify an "Error Message" the UI will show a marker at the attribute and saving will fail if there is no value in a required attribute.
Validations can be specified as well. The "Error Message" is basically specified in the configuration of the validation and not in the script - the script basically only returns an error or a warning or OK.
Read:
For a more detailed how to with examples: https://jazz.net/library/article/1093