Hi All,

Ashok
Tera Contributor

Please suggest for the below requirement:

 

How to populate caller email id and mobile phone number in single line text field in catalog item.

 

Please suggest:

2 REPLIES 2

Sandeep Rajput
Tera Patron
Tera Patron

@ Ashok Here is how you should do it via an onLoad client script

 

function onLoad() {
    g_form.getReference('caller_id', doAlert); // doAlert is our callback function
}
 
function doAlert(caller) { // reference is passed into callback as first arguments
    g_form.setValue('email_id',caller.getValue('email'));
    g_form.setValue('phone_number',caller.getValue('phone'));
}

Hope this helps