You are viewing limited content. For full access, please sign in.

Question

Question

Set value from a box selection

asked on November 16

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

Replies

replied on November 16

Hi Carlos,

The LFForm provides a function "disableFields" to disable a specific field, I think that's what you are looking for. You can find the full reference from https://doc.laserfiche.com/laserfiche.documentation/12/userguide/en-us/content/process-ex-ref-js.htm?tocpath=Laserfiche%20User%20Guide%7CAutomating%20Laserfiche%20Processes%7CAutomating%20with%20Forms%7C_____7#disableFields

1 0
You are not allowed to follow up in this post.

Sign in to reply to this post.