Cab date Shouldn't be after planned start date.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-22-2023 08:55 PM
Hi Folks,
I have created a scenario where Cab date Shouldn't be after planned start date in Change Request.
It is giving me Erros even when I am selecting dates before Planned start date.
Please share your thoughts,
Thanks in advance.
Client Script -
Script Include -

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-22-2023 09:04 PM
Hi @AbidSiddiqui You donot need client script and script include for this. You can have a Before update/insert BR on change request table
Cond: cabdate changes or cabdate is empty
Script:
Harish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-22-2023 10:06 PM
unfortunately, this is also not working,
Thanks for response though.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-22-2023 10:14 PM
Hi @AbidSiddiqui I tested in PDI it works fine for me .
make sure field names and conditions are correct
Harish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-22-2023 09:11 PM
Hi @AbidSiddiqui,
I would suggest to use the UI policy for data validations instead of Client scripts.
Condition:
Cab date ISMORETHAN 0 HOURS AFTER Planned start date
Execute if true:
function onCondition() {
g_form.clearValue("cab_date_time");
g_form.showFieldMsg("cab_date_time", "Cab date Shouldn't be after planned start date in Change Request" , "error");
}
For reference:
Note: It will only allow Cab date before Planned state date.
If my response helps you resolve your issue. Kindly mark it as helpful & correct. It will be helpful to future readers! 👍🏻
Thanks,
Sagar Pagar