Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Variable optional on one task and required on another

CathyD
Tera Contributor

I have a catalog item that creates multiple tasks. The requirement is for a variable to be optional on one task and then required on another task. Any suggestions?

1 REPLY 1

AshishKM
Kilo Patron
Kilo Patron

Hi @CathyD

Write a catalog client script and check the specific task vai some hardcode keyword or some order number ( like first or second task of that RITM ).

 

You can also think about creating a variabe ( hidden on form ) and set some value on that specific task for catalog client script to validate for mandatory. 

 

-Thanks,

AshishKM


Please mark this response as correct and helpful if it helps you can mark more that one reply as accepted solution