web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / PDF Function reset the...
Power Apps
Suggested Answer

PDF Function reset the Radio control

(0) ShareShare
ReportReport
Posted on by

When i try to export a container to pdf that have a couple of radio controls, all the radio controls are getting unchecked after the running the PDF function..

And i cannot reset the control to the default state, (the default state is checked).

Only solution that i can find for now, is to navigate away from the page, and then came back.

All others controls on the page, stay the same.

Did anyone encounter this issue?

 

Thank you.

 

Categories:
I have the same question (0)
  • YT-18100210-0 Profile Picture
    2 on at
    I encountered the same issue. All selected radios went blank after generating PDF. Textinput field values stayed in the form . I wonder if this is a bug?
  • CU17031626-0 Profile Picture
    2 Microsoft Employee on at
    I know this is many years later, but just had this issue (seems it still isn't fixed!) and only found this thread when searching for answers.
     
    A couple of alternate temporary solutions (other than navigating away and coming back) I've found to work:
     
    Stand alone radio button:
    1. Create a variable (like var_default) that's set to the default value you want selected for the radio button
    2. Set the Default property for the radio button to var_default
    3. After the PDF function executes (and clears the radio button selection):
      • Set(var_default, Blank())
      • Reset(radio button control)
      • Set(var_default, default value from Step 1.)
    Radio button(s) in a gallery:
    1.  Clear table connected to gallery
    2.  Re-collect data into table for that gallery using just Collect function (ClearCollect didn't work for me)
     
  • Suggested answer
    11manish Profile Picture
    2,430 on at

    Yes, I believe, this is a known issue with PDF()


    Radio controls lose state due to re-rendering

     Best fix:

    • Store selection in a variable
    • Bind via Default
    • Restore after PDF
    Implement like below:
     
    Step 1: Store selection
    Radio.OnChange
    • Set(varRadioValue, Radio1.Selected.Value)
    Step 2: Bind Default
    • Radio1.Default = varRadioValue
    Step 3: Before PDF, preserve state
    • Set(varRadioValue, Radio1.Selected.Value);
    • PDF(Container1)
    Step 4: After PDF, restore explicitly
    • Set(varRadioValue, varRadioValue)
    This forces rebind

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 610

#2
Haque Profile Picture

Haque 317

#3
WarrenBelz Profile Picture

WarrenBelz 315 Most Valuable Professional

Last 30 days Overall leaderboard