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

I mean onSubmit client script

AishwaryaS1
Kilo Sage

Hi @Sohail Khilji  @Jeck Manalo ,

I'm having a requirement like, we need to prevent the selection of planned start date and end date during the blackout schedule. 

Aishwarya Shelake