On Change Client Script: Planned Start and End Date (1st time not working, but second time works)

VigneshR8273606
Tera Contributor

Hi Everyone,

 

As an implementer, we implemented a change for Normal or Emergency. And we've got a requirement to select a check box (check or uncheck) based on day-time activity.

 

If it is 1 to 6 AM, the check box should be unchecked, and the reset of the timings should be considered a daytime activity (the check box should be checked).

 

We wrote a client script called Planned Start and End Date, along with script include. This is working only for the second time if you change timings, but on the go or fly, it's not validating for the first time.

 

Kindly help to suggest any solution or ideas to fix this issue.

4 REPLIES 4

Sonam_Tiwari
Kilo Sage

Have you written it onChange?

How about making it run on load as well? 

 

you can try removing isLoading from below and test again.

 

sonamtiwari_0-1706511104669.png

 

Hi @Sonam_Tiwari,

 

Thanks for your input. Yes, it's an onChange, and I tried removing isLoading, but no luck.

 

Cheers,

Vignesh

Anil Lande
Kilo Patron

Can you please share your configuration? (client script)

 

Hi @Anil Lande,

 

Thanks for the update. I've attached here the planned Start and End Time client script (zip) for your review and suggestions.

 

Thanks,

Vignesh