We're reclaiming inactive PDIs to keep them available for active builders. Learn what's changing, who's affected, and how to protect your work. Read More

auto populate values based on another field value

Not applicable

I have a field which is referenced to "sys_user" table . If i select a value from user table then value of some other fields populate automatically . Below are the fields

find_real_file.png

Do i need to Business rule or client script to archive this ? How

1 ACCEPTED SOLUTION

hvrdhn88
Giga Patron

Hi Dinesh,



Please try with script below.



function onChange(control, oldValue, newValue, isLoading) {


    var caller = 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',caller.email);


  g_form.setValue('phone',caller.mobile_phone);


  g_form.setValue('phone',caller.location);


}



Please change the variable name that you have exactly on your catalog form.


View solution in original post

10 REPLIES 10

Hi @hvrdhn88 
I have one requirement, where I have 'LIST' field and i want to populate the values of parent field's irm domain into the new record of irm domain. and also say while creating a new record i have already field the irm domain and later when i fill parent field it should populate the parent's irm doamin keeping the old once as well (old value + populated value) ,
How can i do this can u help me with this

NAIDILES_0-1699601839107.png