UI Builder

choudharysh
Tera Contributor

how to make a custom field  as manadatory which is created in modal in UI Builder? i dont see any option to make it mandatory, only for OOTB fields have option as required property in config panel.

1 REPLY 1

Tanushree Maiti
Tera Patron

Hi @choudharysh 

 

In the UI page which has been used in modal you can add "required" attribute in input tag.

 

Refer:

https://www.servicenow.com/community/developer-forum/set-fields-mandatory-on-a-custom-widget-modal-f...

 

https://www.servicenow.com/community/developer-forum/how-to-set-a-field-to-mandatory-in-a-ui-page/m-...

 

 

Please Accept the solution if it assisted you with your question & Mark this response as Helpful.
Regards
Tanushree Maiti
ServiceNow Technical Architect
LinkedIn: https://www.linkedin.com/in/tanushreemaiti