- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-01-2025 09:24 AM
Hello,
I am trying to do a script that says if the audit source is external then carry over the requested completion date over to the negotiated completion date. But my script is not working.
Any assistance is appreciated.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-01-2025 09:36 AM
Hi @Darlene York ,
Try:
var start_date = getDateFromFormat(newValue, g_user_date_format); start_date.addDays(-3); g_form.setValue('the_other_date_field', start_date);
So with this, you can use an onChange client script, choose the field as the start date, then just change "the_other_date_field" to the name of the other date field and it should do the rest.
Please mark reply as Helpful/Correct, if applicable. Thanks!
Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!
Abin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-01-2025 09:36 AM
Hi @Darlene York ,
Try:
var start_date = getDateFromFormat(newValue, g_user_date_format); start_date.addDays(-3); g_form.setValue('the_other_date_field', start_date);
So with this, you can use an onChange client script, choose the field as the start date, then just change "the_other_date_field" to the name of the other date field and it should do the rest.
Please mark reply as Helpful/Correct, if applicable. Thanks!
Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!
Abin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-01-2025 09:46 AM
Thank you for the quick reply! I appreciate it. Have a nice day!