break; case "required": formField.setRequired(true); break; case "option":
FormField dropdown = getFieldByName("My Radio Check") FormField other= getFieldByName("Other field") if (dropdown.getFormValue() == 'A') { other.setHidden(false) // set custom filed vlaues other.setFormValue("A choosen") other.setRequired(true) } else { other.setHidden(true) // hide any fields you like other.setRequired(false) }