Request for Client Script for the below requirement applies in Change Table

Sirisha Snow
Tera Contributor

When change record state get changes to Schedule then Planned Start Date and Planned End should be mandatory and display warning message under planned end date field (Message: Please select start and end date).

 

Note: Using Client Script is the primary requirement or any other way around would be helpful. Thank you.

2 ACCEPTED SOLUTIONS

Rutuja Khalate
Tera Guru

Hello @Sirisha Snow ,

 

UI Policy is the efficient way for the above scenario instead of the client script. 

 

You can create UI policy on the change request table as below and create UI policy actions to make these fields 'Planned start datePlanned end date' mandatory and write one line under script in Execute if true as below 

g_form.showFieldMsg('end_date','Please select start and end date');
 
Also, change the order of custom UI policy as per your requirement to which ui policy should run first.
 
Please refer below screenshots:
 

 

RutujaKhalate_0-1709187795700.png

 

RutujaKhalate_1-1709187888736.png

 

 

 


Please mark this response as correct or helpful if it assisted you with your question.

Best Regards,
Rutuja Khalate

View solution in original post

Community Alums
Not applicable

 hi @Sirisha Snow 
You can use UI Policy instead of client script,
Here are the steps might help you
open change form -> configure -> ui policies

omkar_jadhav_0-1709188000011.png

Give below condition and script (if script field is not display go to advance view)

omkar_jadhav_1-1709188206215.png

omkar_jadhav_2-1709188350952.png

Save the changes -> Go down in ui policy action -> new
add the fields (Planned start date and Planned end date) & make them mandatory 

omkar_jadhav_3-1709188471932.png

 

View solution in original post

2 REPLIES 2

Rutuja Khalate
Tera Guru

Hello @Sirisha Snow ,

 

UI Policy is the efficient way for the above scenario instead of the client script. 

 

You can create UI policy on the change request table as below and create UI policy actions to make these fields 'Planned start datePlanned end date' mandatory and write one line under script in Execute if true as below 

g_form.showFieldMsg('end_date','Please select start and end date');
 
Also, change the order of custom UI policy as per your requirement to which ui policy should run first.
 
Please refer below screenshots:
 

 

RutujaKhalate_0-1709187795700.png

 

RutujaKhalate_1-1709187888736.png

 

 

 


Please mark this response as correct or helpful if it assisted you with your question.

Best Regards,
Rutuja Khalate

Community Alums
Not applicable

 hi @Sirisha Snow 
You can use UI Policy instead of client script,
Here are the steps might help you
open change form -> configure -> ui policies

omkar_jadhav_0-1709188000011.png

Give below condition and script (if script field is not display go to advance view)

omkar_jadhav_1-1709188206215.png

omkar_jadhav_2-1709188350952.png

Save the changes -> Go down in ui policy action -> new
add the fields (Planned start date and Planned end date) & make them mandatory 

omkar_jadhav_3-1709188471932.png