g_form.getValue() return the value and not the name.

Santhana Rajhan
Mega Sage

Below is the code i use for the record producer. I need to get the Name but it returns the value.

function onChange(control, oldValue, newValue, isLoading) {
if (isLoading || newValue == '') {
return;
}
alert ('load');
var choice = g_form.getValue('pay_discrepancy_type');
alert (choice);
g_form.setValue('pay_dependancy_inquiry', 'Please ' + choice + ' attach');

}

10 REPLIES 10

I tried that too, it didnt work.