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

Discussion

Discussion

Radio Button Change

posted on July 23

Hi, I'm using Laserfiche 11 new designer. I have two radio button fields. I want to make the second radio button null every time i make a change on the first radio button. Here is my code.

LFForm.changeFieldOptions({
    LFForm.setFieldValues({ fieldId: 2 }, {value: ""});
}, { fieldId: 1});

 

0 0
replied on July 23

This worked. Thanks Mrs. Angela!!!

1 0
replied on July 23

Try this: 

// Trigger when Field 1 changes
LFForm.onFieldChange(async () => {
  // Clear the value of Field 2
  await LFForm.setFieldValues({ fieldId: 2 }, { value: "" });
}, { fieldId: 1 });

 

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

Sign in to reply to this post.