record producer dot walking

prabhakarreddy
Kilo Explorer

I created one record producer but I need auto population of two fields which are belongs to reference(dot walking) same as form dot walking is it possible?

1 ACCEPTED SOLUTION

Deepa Srivastav
Kilo Sage

Please check below example if it helps:-



var user = g_form.getReference("variables.user_name");  


dot-walk the user object to retrieve the user's contact number.


g_form.setValue("variables.contact_number", user.u_contact_number);          



Mark Correct if it solved your issue or hit Like and Helpful if you find my response worthy.


View solution in original post

2 REPLIES 2

Uncle Rob
Kilo Patron

Are the references already stored in variables?   Because you can dot-walk through those...



producer.variable.<source field>


Deepa Srivastav
Kilo Sage

Please check below example if it helps:-



var user = g_form.getReference("variables.user_name");  


dot-walk the user object to retrieve the user's contact number.


g_form.setValue("variables.contact_number", user.u_contact_number);          



Mark Correct if it solved your issue or hit Like and Helpful if you find my response worthy.