37
Views
3
Comments
Reactive Radio Button Empty But Showing As Checked
Question

I have an application with radio buttons on two screens. This is happening with both screens.  When I select the back button or hit the app icon in the header, the screen opens but the radio buttons don't show anything selected. The data in the data grid is filtered as expected.

When I look in Edge, I can see that the option is checked, even though it's not showing on the screen. 

  • The back buttons are set up to go to the screen itself (I tried Previous Screen and that didn't work either).
  • The app icon in the header is redirecting to the URL.
  • I'm using a client variable for the radio button group. 
  • The button values are 0 - 4
  • The client variable default is 2.
  • The only places the client variable appears is in the Radio Group definition, in the Data Action and in a Clear Filters action where I set it back to 2.
  • There are instances where I can see the button start to fill but then it blanks out.

Any suggestions would be appreciated!


2024-12-27 06-34-00
Suryanarayana Vundru

Hi @Donna Williams ,

Please try below 

create a local variable and use it for radio group.

on the OnInitialize event of the page assign the value in the client variable to local variable which is used for radio group.

while navigating back or moving forward assign the value from local variable to client variable.

Always reset the client variable to default value in OnInitialize of app landing page.


Thanks&Regards,

Surya


2025-04-14 11-22-14
Aditi Saraswat

Hi @Donna Williams,

If you need to set a default selected radio button, use a local variable for the radio group. You can assign the value from the client variable to the local variable on Oninitialize of the screen for  the selection. Additionally, make sure to reset the client variable to its default value when navigating to that page to ensure a consistent state. 

Hope this helps

Thanks

2025-03-12 07-08-15
Nilesh Trivedi
Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.