Pop Up Error Message when Start/End Date is not today

Jeck Manalo
Tera Guru

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.

JeckManalo_2-1707887610010.png

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.

 

 

2 ACCEPTED SOLUTIONS

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.

 

SohailKhilji_0-1707889069509.png

 


☑️ Please mark responses as HELPFUL or ACCEPT SOLUTION to assist future users in finding the right solution....

LinkedIn - Lets Connect

View solution in original post

Thanks for this but I think I already do it using onLoad using below script. but thanks for idea 🙂

 

JeckManalo_1-1707894872901.png

 

 

View solution in original post

6 REPLIES 6

Sohail Khilji
Kilo Patron
Kilo Patron

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....

LinkedIn - Lets Connect

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.

JeckManalo_0-1707888416297.png

What I need now is to prevent saving if start date and end date is future date.

 

 

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.

 

SohailKhilji_0-1707889069509.png

 


☑️ Please mark responses as HELPFUL or ACCEPT SOLUTION to assist future users in finding the right solution....

LinkedIn - Lets Connect

Thanks for this but I think I already do it using onLoad using below script. but thanks for idea 🙂

 

JeckManalo_1-1707894872901.png