asked 7 hours ago
Hi All,
I'm on LF12. Can someone help on this issue? FieldID: 158 is box selection. FieldID: 234 and Field: 76 are radio buttons. I would like to populate both of these field and disable both fields when Label: "Petty Cash" that has a value of V_4. i haven't gotten to the disable code just yet. The console.log does show the result of 'V_4'
LFForm.onFieldChange(function() {
let pettycashbox = LFForm.getFieldValues({ fieldId: 158 }).value;
console.log(pettycashbox);
if (pettycashbox === "V_4") {
LFForm.setFieldValues({ fieldId: 234 }, { value: "NA"});
LFForm.setFieldValues({ fieldId: 76 }, { value: "EXACT" });
} else {
}
}, { fieldId: 158 });
0
0