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
Comments
Thanks Ralph,
I am aware of making attributes required / mandatory which simple using
1)1. For work item type and state
But our use case is similar but we are following the way as MAster- Child Process Configurations.
We have Master Project Area
Where there are two child Project area using the Master PA process configuration,
But we want to make the few attributes mandatory only in one of the Child1 PA not to other child2 PA ,
Hence in this case we thought to go with script based validations or can it be achieved with conditions
Where we can give the write the script with condition
If(child PA=child1)
We wanted to display warning message and allow workitem to be saved.As you mention the script can written warning than my above use case can be achieved ?so is there any syntax related to RTC that we have to use?
JavaScript has only access to work item attribute information. You would have to determine the project area based on one of the attributes of the work item and code it into the script. Not a nice solution. I am not sure if I would take that route. You could try to use required attributes preconditions in the child project area. A much cleaner solution, I think.