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

Bert_c1
Kilo Patron

Hi,

 

One way is setting the "Mandatory" field to true on the sys_dictionary record for "Additional information"

 

https://docs.servicenow.com/search?q=Make%20a%20field%20mandatory

Michael James2
Tera Expert

Try adding the mandatory attribute to the HTML.

 

<textarea mandatory="true" .....  />

Ankur Bawiskar
Tera Patron
Tera Patron

@Anish9515 

try method suggested by Michael.

Also you can use onSubmit validation on UI page

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

I tired mandatory = true it doesn't work , My additional information doesn't make into mandatory