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 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;    
    }
setPreference('glide.ui.incident.stream_input', 'comments');
}

As things are working by using above code.

Thanks,

Shashank Sharma