- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-19-2024 12:45 PM
Hi
I want to make Work Notes field mandatory if there any changes in Time worked field. I have tried this onchange client script but it is not working. Here I made field name as Time Worked.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2024 01:38 PM
Hi @abusaleh_quader,
The 'time_worked' field on task and all of its child table is type "Timer". Your client script works on a string field, but not 'time_worked' on any task record due to it being type "Timer". You will need another means to achieve your goal. Maybe a business rule that runs and displays an Error and aborts the transaction if that value changes and 'work_notes' is empty.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2024 09:38 AM
You must evaluate the time worked field- ie add another line that checks if its changed from default value/blank/ 00:00:00/ . Then if it is not the default value then you require the work notes. - You are watching for a change and you got the end, but the middle part is evaluating the value .
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2024 01:38 PM
Hi @abusaleh_quader,
The 'time_worked' field on task and all of its child table is type "Timer". Your client script works on a string field, but not 'time_worked' on any task record due to it being type "Timer". You will need another means to achieve your goal. Maybe a business rule that runs and displays an Error and aborts the transaction if that value changes and 'work_notes' is empty.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2024 05:13 AM
Thanks we have created a business rule and client script. It's working.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2024 02:33 AM
@abusaleh_quader Hi, we are trying to achieve something similar, would you be able to share you client script and business rule with me please?