Visibility of email when additional assignee field is not empty on incident form.

Atchutaram
Tera Contributor

Atchutaram_0-1710833711003.png

 

How can I made this email button visible only when additional assignee is not empty. 

So i have configured the additional assignee should be visible only when state is on hold and on hold reason is not awaiting vendor. so when we fill additional assignee list this email should be visible. How can i get the additional assignee list email or user name on that email template?

 

Best Regards,

AtchutRam

9 REPLIES 9

Arun_Manoj
Mega Sage

Hi @Atchutaram ,

 

You can also do this with help of onLoad /onchange client script by writing something as below.

 

if(!field_name){
$('email_client_open').hide();
}

arunm1_0-1710834888503.png

 

Please mark it as helpful, if the solution is fine,

 

Thanks

Arun

hi @Arun_Manoj in on change client script. i should write that script right? if yes, should i give in ! field name as !Additional_assignee_list?

 

Could you explain what is that screenshot?

Hi @Atchutaram ,

please check the field is empty or not, then apply

 

function onChange(control, oldValue, newValue, isLoading)

{

if (isLoading || newValue === '') {

return;

}

var fieldValue = g_form.getValue('your_field_name');

if (!fieldValue) {

$('email_client_open').hide();

} else {

$('email_client_open').show();

}

}

 

Please mark it as helpful, if the solution is fine,

 

Thanks

Arun

 

Hi @Arun_Manoj , i tried this but this is not working. that email, should be visible on when state is on hold and on hold reason is awaiting vendor. In all other states it should not be visible. Can we do this using system property?