Add worknotes date and time into incident field

Ramakrishna6
Tera Contributor

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

1 ACCEPTED SOLUTION

Mike_R
Kilo Patron
Kilo Patron

You can create a business rule

Example

Mike_R_0-1667930137530.png

 

Mike_R_1-1667930162948.png

 

View solution in original post

6 REPLIES 6

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);
   

}

 

 

Mike_R_0-1668004737623.png

 

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