There is certain issue with the cascading of the radio button component. T

There is certain issue with the cascading of the radio button component.
The scenario which doest work is :
1) We have two SAIL components, drop down and radio button, the value of the radio button depend on the dropdown selected.
2) Radio button gets the value initially when we select the drop down field.
3) But now when we choose the radio button and than select the dropdown the radio button doesnt reflect the change.

Note: if we replace the radio button with the checkbox the changes are reflected

I have attached the code for better understanding

RadioButtonIssue.txt

OriginalPostID-199350

OriginalPostID-199350

  Discussion posts and replies are publicly visible

Parents
  • Hi Nilesh,

    Try using rule input variable for radiobutton instead of a local variable. Like the below code snippet.

    a!radioButtonField(
    label: "Selected Radio Button",
                        placeholderLabel: "Please select",
    choiceLabels: {
    "Yes",
    "No"
    },
    choiceValues: {
    "Yes",
    "No"
    },
    value: if(isnull(ri!radioButtonFieldValue),null,ri!radioButtonFieldValue),
    saveInto: ri!radioButtonFieldValue
    )
              
    Give it a try using ri!radioButtonFieldValue. It may run fine probably.

    And to prepopulate the value of radiobutton to "No", you can always do that by passing a default value from outside the form for radiobutton.
Reply
  • Hi Nilesh,

    Try using rule input variable for radiobutton instead of a local variable. Like the below code snippet.

    a!radioButtonField(
    label: "Selected Radio Button",
                        placeholderLabel: "Please select",
    choiceLabels: {
    "Yes",
    "No"
    },
    choiceValues: {
    "Yes",
    "No"
    },
    value: if(isnull(ri!radioButtonFieldValue),null,ri!radioButtonFieldValue),
    saveInto: ri!radioButtonFieldValue
    )
              
    Give it a try using ri!radioButtonFieldValue. It may run fine probably.

    And to prepopulate the value of radiobutton to "No", you can always do that by passing a default value from outside the form for radiobutton.
Children
No Data