- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2024 10:18 PM
Hi,
I have catalog item with 2 variables i.e. Start Date and End Date .
From this item, I have 2 reqs. as below:
1. New variable var1 (radio button) should be populated as success if Task creation date is 5 days before Start Date else failure.
2. New Variable var2 should be populated as success if var1 is success and Task closed date is before End Date else failure.
please let me know how shall we implement this if it's feasible to do .
thanks,
Vivek
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2024 11:16 PM
Hi @vivek72 you can create 2 client scripts on request table like below
1. Create a on Load client script to set start date for success/failure
Harish

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2024 11:16 PM
Hi @vivek72 you can create 2 client scripts on request table like below
1. Create a on Load client script to set start date for success/failure
Harish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-15-2024 01:12 AM
Hi @Harish KM : Thanks for replying.
1st script is clear to me and will try but I have a doubt on second script, 'closed at' is not available till task is closed.
How onSubmit script will work here ?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-15-2024 01:19 AM
Hi @vivek72 good point then change it to onLoad.
Harish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-15-2024 01:28 AM
Hi @Harish KM : ok, so when user will close task manually , this 2nd onLoad catalog client script will run and set the catalog variable var2 as success?
Will give it a try, thank you so much for guiding and suggest a starting point here 🙂