- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-08-2022 09:52 AM
I created "Additional action" custom field on incident form. Now i want to autopopulate the worknotes field date and time value into the "Additional action" field.
When we post something in work notes or additional comments that post shows date and time also right, I need that date and time value capture into newly created field "Additional action"
Please suggest any solution for this
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-08-2022 09:56 AM
You can create a business rule
Example
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-09-2022 06:39 AM
Create an onChange Client Script
function onChange(control, oldValue, newValue, isLoading, isTemplate) {
if (isLoading || newValue === '') {
return;
}
var today_date = new Date();
var today_date_time = formatDate(today_date, g_user_date_time_format);
g_form.setValue('yourFieldHere', today_date_time);
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-09-2022 04:46 PM
Hi Mike,
Thanks for sharing client script code.
I want to populate the last work notes text value into another custom field "worknotes Value" in incident form. What is the Business rule for this