client script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-25-2023 03:18 AM
how to make short description field mandatory in table
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-25-2023 03:44 AM
Hello @soniya patil,
You can write below code in client script onSubmit condition
Please mark my answer as helpful if it helped in finding solution
Thanks,
Priyanka
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-25-2023 03:46 AM
Below are multiple ways to make a field mandatory ,but need to select it based on your requirement
1.Dictionary
2.Ui policy
3.Client script
As a best practice suggested by ServiceNow we should go with ui policies
If you want to make field mandatory on Onload of form or Onchange of a field you should go with Ui policy
Explain your requirement in detail so i can help you
If my answer solved your issue, please mark my answer as ✅Correct & 👍Helpful based on the Impact
Thanks,
Manjusha Bangale
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-25-2023 03:56 AM
I could see multiple responses to your question.
But I would like to know what did you try so far and where are you stuck?
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader