-> Planned start date -> should be in future and before the planned end date.

purnendu
Tera Contributor

On Change form, do the following date Validations:

     -> Planned start date -> should be in future and before the planned end date.
For example , if the planned start date is filled in after the planned end date , it should consider the value of planned end date and validate if it is in future as well as before the Planned end date.
     -> Planned End Date -> should be in after the Planned start date and in future(CHANGE_REQUEST) –>>SCHEDULE->>Start Date & End Date

In case , these conditions are not met , clear the dates and display a field message with appropriate information.


How can we achieve this...by using client script

Any help is appreciated, Thanks in Advance.

1 ACCEPTED SOLUTION

J Siva
Tera Sage

Hi @purnendu 
90% of your requirements have already been met by the OOB client scripts. You need to create two new UI policies to check if the dates are in the future.

OOB Client scripts:

JSiva_0-1744877202196.png

Add the below highlighted line in the above client scripts to clear the field value.

JSiva_1-1744877395794.png

 

UI policies:

JSiva_2-1744877433862.pngJSiva_3-1744877504154.png

Create a similar UI policy for Planned end date.

Regards,
Siva

 

 

View solution in original post

3 REPLIES 3

J Siva
Tera Sage

Hi @purnendu 
90% of your requirements have already been met by the OOB client scripts. You need to create two new UI policies to check if the dates are in the future.

OOB Client scripts:

JSiva_0-1744877202196.png

Add the below highlighted line in the above client scripts to clear the field value.

JSiva_1-1744877395794.png

 

UI policies:

JSiva_2-1744877433862.pngJSiva_3-1744877504154.png

Create a similar UI policy for Planned end date.

Regards,
Siva

 

 

purnendu
Tera Contributor

@J Siva  Ty Brother.

No problem