- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-13-2024 09:16 PM
Hello,
I created a filter that when detected that the date is not today for actual start/end there will be a message.
But once I save it, it still able to save.
I use onchange for this one.
Any idea how can the pop-up message appear to prevent and make the user change the actual start date and actual end date to past date not in a future date.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-13-2024 09:39 PM
Hi @Jeck Manalo ,
Yes this was my recommendation , use UI policy to restrict future date selection...
If the use selects any future dates from the calender the UI policy would clear the field value starting 'No future dates allowed for selection...' and hence the value get cleared from the field unless correct date is selected.
Eg below is for past dates , you can apply conditon 'Planned start date' after today.
create ui policy action to clear the field value and show error message from script.
☑️ Please mark responses as HELPFUL or ACCEPT SOLUTION to assist future users in finding the right solution....
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-13-2024 11:14 PM
Thanks for this but I think I already do it using onLoad using below script. but thanks for idea 🙂
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-13-2024 09:22 PM
Hi @Jeck Manalo ,
You dont need to use Onchange client script for this. You can make use of UI Policy attain this..
Use clear value check box if the condition is not met so that you enforce the user to update the required info...
I hope this helps...
☑️ Please mark responses as HELPFUL or ACCEPT SOLUTION to assist future users in finding the right solution....
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-13-2024 09:28 PM
Hi Sohail,
What I want is like this there will be a pop up message like this.
As I know there is an OOB for Planned Start/Validation which preventing saving if the actual end date is greater than to actual start date.
What I need now is to prevent saving if start date and end date is future date.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-13-2024 09:39 PM
Hi @Jeck Manalo ,
Yes this was my recommendation , use UI policy to restrict future date selection...
If the use selects any future dates from the calender the UI policy would clear the field value starting 'No future dates allowed for selection...' and hence the value get cleared from the field unless correct date is selected.
Eg below is for past dates , you can apply conditon 'Planned start date' after today.
create ui policy action to clear the field value and show error message from script.
☑️ Please mark responses as HELPFUL or ACCEPT SOLUTION to assist future users in finding the right solution....
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-13-2024 11:14 PM
Thanks for this but I think I already do it using onLoad using below script. but thanks for idea 🙂