how to auto populate email id in catalogue form at on load form

Suresh36
Tera Expert

how to auto populate email address in catalogue form. on load form

please help me on this.

 

1 ACCEPTED SOLUTION

Hello,

Open catalog item form, go to Email variable and add syntax I gave you in default value tab like below

find_real_file.png

Once you do , email will be auto populated, see below

find_real_file.png

Please hit like and mark my response as correct if that helps
Regards,
Musab

View solution in original post

9 REPLIES 9

Hello,

Open catalog item form, go to Email variable and add syntax I gave you in default value tab like below

find_real_file.png

Once you do , email will be auto populated, see below

find_real_file.png

Please hit like and mark my response as correct if that helps
Regards,
Musab

Hi OnLoad will work only when the form loads. What if user changes the value again? In that case it will be wrong value. You can use the same Script for onLoad as well
Regards
Harish

RC12
Tera Contributor

make a catalog on load client script and paste this script:

g_form.setValue('variable_name',gs.getUser().getEmail()) // replace the variable_name with your variable name. it will work

plz mark helpful /correct answer if this helped u

Can we use 'gs' in client script?

Balakrishna2
Tera Contributor

We have an Auto-populate section while creating a field in catalog items, there you can select the Dependent Question as a User reference field and start with the Dot walk path. In the Dot walk path you will be able to see the fields from the user table, so that you can easily auto-populate the value without writing the script. 

 

Balakrishna2_0-1715174362048.png