Field that would auto populate e-mail from the consumer table. - CSM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-09-2024 11:25 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-09-2024 12:15 PM - edited 04-09-2024 12:20 PM
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);
}
Please Mark my answer Correct/Helpful, If I'm able to resolve your issue
Regards,
Siddharam