UI Page How to make mandatory text area field
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-27-2023 12:16 PM - edited 04-05-2023 11:22 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-27-2023 12:41 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-27-2023 02:00 PM
Try adding the mandatory attribute to the HTML.
<textarea mandatory="true" ..... />
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-27-2023 08:35 PM
try method suggested by Michael.
Also you can use onSubmit validation on UI page
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-27-2023 09:07 PM - edited 04-05-2023 11:23 PM
I tired mandatory = true it doesn't work , My additional information doesn't make into mandatory