How to get the difference between 2 date fields in scoped application
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2023 05:23 AM
Hi,
Please help on this ,
i want to get difference between 2 date fields (start and end dates) and populate in duration field for the scoped application by using client script
i have used the script it's worked for global but for the scoped it is not working
here are the scripts both are in same scoped application
Script include:
please modify this script if anything wrong for the scoped application
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2023 05:32 AM - edited 10-11-2023 05:39 AM
Hello @vasu17 ,
You can try it by using client script, you can use following javascript code in your client script :
Mark helpful & correct if applicable.
Thanks & Regards,
Sayali Gurav
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2023 08:03 AM - edited 10-11-2023 08:04 AM
HI @Sayali Gurav ,
When i use above code but it's not working it is showing some invalid data, please help on this
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-12-2023 01:39 AM
Hello @vasu17 ,
This script will helps you to solve your issue :
Compare this script with your script.
If this applicable for your case please mark correct & helpful.
Thanks & Regards,
Sayali Gurav
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-12-2023 03:25 AM - edited 10-12-2023 03:27 AM
Tried the same script but no luck😥
not sure which methods are work for the scoped applications
Thanks,