How to add error message in UI page?

Pratiksha_45
Kilo Sage

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:

find_real_file.png

 

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!

 

 

1 REPLY 1

Abhay Kumar1
Giga Sage
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