Pavan KumarJuly 15, 2020 at 10:03 pm #5783
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 NoPavan KumarJuly 15, 2020 at 11:01 pm #5784
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 NoSPARK SupportJuly 16, 2020 at 2:27 pm #5785
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.
Stephen P.Pavan KumarJuly 16, 2020 at 10:54 pm #5786
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
Please let me know how to achieve this with boolean variable binding.SPARK SupportJuly 17, 2020 at 6:44 am #5787
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.
You must be logged in to reply to this topic.