- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-19-2023 09:26 PM
If a variable of type date/ time or just date is created then in the client scripts what should be coded if the user enters previous/future date where the variable accepts only future/previous date, for this an error message should pop up just around the variable field?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-19-2023 09:31 PM
Hi @SUDCHAK ,
U can create a UI policy for this mentioning in the condition if date field is before today . Then go to ur script tab n select run for all n under when condition is true u can specify the alert or field message
Thanks,
Danish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-19-2023 09:51 PM
Hi @SUDCHAK ,
In order to showcase error for a respective field u can try this
g_form.showFieldMsg('variable_name','Enter your message here','error');
Thanks,
Danish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-19-2023 10:02 PM
Hi @SUDCHAK ,
Plz do not use at or before as it will consider today as well I mean if some1 selects today then also error will show.
N instead of date select today from drop-down. Else it will always consider 19 as the reference.
N yes make the UI type as ALL if u r running on portal.
Thanks,
Danish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-19-2023 09:48 PM
Can you share your screenshot of UI policy and it's script?
Thanks and Regards,
Saurabh Gupta
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-19-2023 09:53 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-19-2023 09:57 PM
Are you trying it from portal or backend native view?
Run scripts in UI type should be "ALL"
Thanks and Regards,
Saurabh Gupta
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-19-2023 10:02 PM
Hi @SUDCHAK ,
Plz do not use at or before as it will consider today as well I mean if some1 selects today then also error will show.
N instead of date select today from drop-down. Else it will always consider 19 as the reference.
N yes make the UI type as ALL if u r running on portal.
Thanks,
Danish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-19-2023 09:31 PM
Hi @SUDCHAK ,
U can create a UI policy for this mentioning in the condition if date field is before today . Then go to ur script tab n select run for all n under when condition is true u can specify the alert or field message
Thanks,
Danish