Field that would auto populate e-mail from the consumer table. - CSM

marketa_w
Tera Expert

Hi all,

 

this question is CSM related. We want to have additional field on a catalog item for creating a new case. The field should be automatically filled and show the user his notification e-mail from the consumer table.

Unfortunately we are not able to accomplish this via no code setting or client script that would work.

 

Is here anyone with experience in this and could give us an advice?

 

Thank you. 

 

 

1 REPLY 1

Sid_Takali
Kilo Patron
Kilo Patron

Hi @marketa_w you need to write an onChange Client Script on Catalog Item

 

function onChange(control, oldValue, newValue, isLoading) {
   if (isLoading) {
      return;
   }
   var usr = g_form.getReference('USER_VARIABLE_NAME', callBack);
}
function callBack(usr)
{
	g_form.setValue('EMAIL_VARIABLE_NAME', usr.email);
}

SiddharamTakali_0-1712690522222.png

 

 

SiddharamTakali_0-1712690199082.png

Please Mark my answer Correct/Helpful, If I'm able to resolve your issue

Regards,

Siddharam