Hello,
Juilding javascript to pull hidden fields filled via lookup rules and filling out a form. I've got the fields used to successfully build an array and fill out checkboxes, including the "_other" checkbox but can't get the value in the text box to fill out. Any help would be appreciated! Code attached that works, but my attempts to get the otherChoiceValue syntax has failed
const checkBoxArray = []; if (LFForm.getFieldValues({fieldId:41}) == "True") { checkBoxArray.push("choice1"); } if (LFForm.getFieldValues({fieldId:42}) == "True") { checkBoxArray.push("choice2"); } if (LFForm.getFieldValues({fieldId:43}) == "True") { checkBoxArray.push("choice3"); } if (LFForm.getFieldValues({fieldId:44}) == "True") { checkBoxArray.push("choice4"); } if (LFForm.getFieldValues({fieldId:45}) == "True") { checkBoxArray.push("choice5"); } if (LFForm.getFieldValues({fieldId:46}) == "True") { checkBoxArray.push("choice6"); } if (LFForm.getFieldValues({fieldId:47}) == "True") { checkBoxArray.push("_other");//This is where i need the otherchoicevalue }