• Pavan Kumar
    July 15, 2020 at 10:03 pm #5783

    Hi ALL,

    I have a radio button group with boolean variable binding. Even though variable is initialized by default false(No) is showing in UI as selected option.

    Kindly let me know how to fix this.

    Static values in config  : true Yes , false No

     

     

    Pavan Kumar
    July 15, 2020 at 11:01 pm #5784

    Hi ALL,

    I have a radio button group with boolean variable binding. Even though variable is NOT initialized by default false(No) is showing in UI as selected option.

    Kindly let me know how to fix this. Thanks in advance.

    Static values in config  : true Yes , false No

    SPARK Support
    July 16, 2020 at 2:27 pm #5785

    Hi Pavan,

    The name properties in the static list are being evaluated as String types “false” and “true”, not Boolean false/true.  If you bind the Radio Button Group control to a String variable, and set the default to “false”, “true” or null, you will see either button selected or none selected.

    The Checkbox control binds to a Boolean by default.

    Regards,

    Stephen P.

    Pavan Kumar
    July 16, 2020 at 10:54 pm #5786

    Hi Stephen,

    Thanks for reply.

    As we are upgrading old coaches to new using existing business objects. Everywhere boolean variables used for radio buttons in current implementation(7.5 version) which shows Yes and No options with none selected to user on UI load.The boolean variable data is used across many services to determine flow/visibility. Hence we cant bind the string variable.

    where as UI Toolkit radio button group is showing No as selected when we launch the screen. we would like to bind the boolean variable and show Yes and No options with none selected on load of UI.

    Radio Button Static List: name value
    true Yes
    false No

    Please let me know how to achieve this with boolean variable binding.

    SPARK Support
    July 17, 2020 at 6:44 am #5787

    Hi Pavan,

    Binding a Radio Button Group to a Boolean variable is not an option out of the box, as you have found.  You would need to evaluate the values in logic to adapt them to the control or use a different control.

    Feel free to reach out to our Sales Team if you are interested in getting information about an engagement for custom development or extending the control to a custom toolkit.

    Regards,

    Stephen P.

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.

Start typing and press Enter to search