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.

UI Page How to make mandatory text area field

Anish9515
Tera Contributor

Hi @ANKUR BAWISKAR

How to make mandatory text area field  in UI page?
Let me know how to client script in ui page 
I wanna use this UI pages on change request table  , Some one changes Planned start& end date to past date they mentioned additional information makes mandatory , Below screenshot when i on click uiaction button on change request table

 

whatever reflects UI page output should reflect on my Change request table

Please help me on this @Ankur Bawiskar 

 

Regards ,

Suresh

12 REPLIES 12

@Anish9515 

then use onsubmit validation using client script

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

 

It's working fine on UI pages when i click on try it option it works good but come to change request table it's doesn't work 
I mean additional information field doesn't validate on table level ui pages doesn't work properly

@Anish9515 

I believe it should work the same way when UI page is called from table record using UI action

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

 table level dialog it doesn't show any mandatory for additional information or while submit empty additional information it's submitted without validation

 

 

 

@Anish9515 

Client script within UI page will behave the same when it's called from UI action or directly

Did you debug by adding alert?

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader