How to add error message in UI page?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-26-2022 05:33 AM
Hello All,
My requirement is ,add one UI action on requested item form and clicking on that button one UI page should open. In that UI page there is one date field.
Please refer attached screenshot:
If user choose date before 'opened_at' date of requested item the I need to show one error message on this UI page.
Is there any way to achieve this. Please help for this asap.
Thanks in advance!
Labels:
- Labels:
-
Scripting and Coding
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-26-2022 06:11 AM
Hi pratiksha, i am wondering why extra dialog you are displaying on page instead you can use livescheduledate field on form itself and use onchange client script. It would be easy to validate.
But any way you can refer below article to pass a file value to dialog and there you can compare both date and display g_form.addErrorMessage in form
https://servicenowguru.com/system-ui/glidedialogwindow-advanced-popups-ui-pages/
Hope this will help you