How to configure date field which should not take past date ?

1_DipikaD
Kilo Sage

Hi All,

 

I have a date field on a form . When user select past date other than current date or upcoming date , the date field shouldn't take the value and will show a error message that "The due date should be current or future date". Can we do it both on both UI side and server side ?

 

Thank You

 

1_DipikaD_0-1755840720858.png

 

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron

@1_DipikaD 

yes both is possible i.e. client and server

1) UI policy - no code

No Code date validations through (Catalog) UI Policies 

OR

2) before insert/update business rule with no script

Something like this

AnkurBawiskar_0-1755842110723.png

 

AnkurBawiskar_1-1755842142823.png

 

If my response helped please mark it correct and close the thread so that it benefits future readers.

View solution in original post

6 REPLIES 6

Dr Atul - LNG
Tera Patron

Dr Atul - LNG
Tera Patron

Hi @1_DipikaD 

 

DrAtulGLNG_0-1755840958961.png

 

DrAtulGLNG_1-1755840977825.png

 

Ankur Bawiskar
Tera Patron

@1_DipikaD 

yes both is possible i.e. client and server

1) UI policy - no code

No Code date validations through (Catalog) UI Policies 

OR

2) before insert/update business rule with no script

Something like this

AnkurBawiskar_0-1755842110723.png

 

AnkurBawiskar_1-1755842142823.png

 

If my response helped please mark it correct and close the thread so that it benefits future readers.

@1_DipikaD 

Hope you are doing good.

Did my reply answer your question?

If my response helped please mark it correct and close the thread so that it benefits future readers.