ByDefault show Additional comments journal field on incident form onload.

shashanksha
Tera Contributor

How to make Additional Comments (Customer Visible) field By Default visible Onload incident form, when user open the form. Currently whatever checkbox we check whether it is work notes or additional comments that jornal field is visible but i want to show Additional comments journal field every time user opens the form.

 

shashanksha_0-1727448332766.png

 

10 REPLIES 10

shashanksha
Tera Contributor

Hello @Brad Bowman  ,

 

Can you please help me out on the above part?

 

Thanks,

Shashank Sharma

As I said in the solution, I observed this in my testing, and don't know a way around this caching to get the final way there.  This should only present for the same user, immediately after updating a record, so if a user clicks the Work notes box, they should expect that Work notes will be displayed until they uncheck it.  With this solution in place, others won't have to notice the field is labeled Work notes and uncheck the box as that will be done for them when they view the record

shashanksha
Tera Contributor

Hello @Brad Bowman  ,

 

Do you have idea from where that work_notes checkbox functionality is working. As worknotes checkbox checked making entry in user preference table. Do you have idea from where it is happening?

 

Thanks,

Shashank Sharma

shashanksha
Tera Contributor

Hello @Brad Bowman  ,

 

Can you have any idea where we can control the work notes/additional comment checkbox.

So that we can handle it on while loading the form.

 

Thanks,

Shashank Sharma

shashanksha
Tera Contributor

Hello  ,

 

Can we use a Onchange client script on worknotes field and set the preference 

setPreference('glide.ui.incident.stream_input', 'comments');

on the form.

function onChange(control, oldValue, newValue, isLoading, isTemplate) {
    if (isLoading || newValue === '') {
        setPreference('glide.ui.incident.stream_input', 'comments');
        return;    
    }
}

 

Thanks,

Shashank Sharma