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.

Mandatory text after default value text?

alex2410
Tera Contributor

Hi All,

 

I have variables with a default value but would like to make this field mandatory, e.g. the user has to put in extra text in order to submit the catalogue item - 

 

Capture.PNG

How do I achieve this?

 

Any help would be much appreciated!

Thanks,
Alex

5 REPLIES 5

Voona Rohila
Mega Patron
Mega Patron

Hi @alex2410 

You can use 'Example Text' which shows the sample text and when user types the example text fades of.

VoonaRohila_0-1686653095180.png

Example:

Looks like this

VoonaRohila_0-1686653306477.png

When user types something then the text will be faded.

VoonaRohila_1-1686653348869.png

 

You can then simply make those 2 fields mandatory on variable level.(check mandatory checkbox)


Mark it helpful if this helps you to understand. Accept solution if this give you the answer you're looking for
Kind Regards,
Rohila V
2022-25 ServiceNow Community MVP