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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Radio Button goes blan...
Power Apps
Unanswered

Radio Button goes blank after PDF generated

(0) ShareShare
ReportReport
Posted on by 11
an image wheerHello,
I have a Power App that generates a PDF of a Container that has some Radio Buttons.
 
On the left, I have a Gallery with some student names.
On the right, I have a Container with a form (view mode) to view the the grades (in radio buttons) that the students were graded by the teachers, and that are stored on a Sharepoint List.
 
It works ok, until I generate the PDF.
 
After generating the PDF, all the radio buttons become blank (like no option selected).
If I change the student on the Gallery, it will load the grades of that student BUT if on the same radio button the grade is the same as the previous student, it stays blank.
 
Attached there's an image where we can see the radio button with no option selected and in the properties on the Default field the right value of the Sharepoint list item (taht was supposed to have the little ball on the radio box).
 
What can be the reason, and how can I solve?
Thank you very much!
 
Categories:
I have the same question (0)
  • ronaldwalcott Profile Picture
    3,847 Super User 2025 Season 2 on at
    Show the code for the OnSelect of the Gallery and the PDF generation. Also include a screenshot.
  • RuiPSampaio Profile Picture
    11 on at
    Gallery2
     
    OnSelect=Select(Parent)
     
    PDF Button
    OnSelect=
     
    And(
    Set(
    varAlunoUser,
    DataCardValue_Aluno.Text
    ),
    PDFsave.Run(
    DataCardValue_Aluno.Text & " - " & DataCardValue_Disciplina.Text & " - " & DataCardValue_Modulo.Text & ".pdf",
    varAlunoUser,DataCardValue_Turma.Text,
    {
    file: {
    name: DataCardValue_Aluno.Text & " - " & DataCardValue_Disciplina.Text & " - " & DataCardValue_Modulo.Text & ".pdf",
    contentBytes: PDF(
    Container1_1,
    {
    ExpandContainers: true,
    Orientation: PaperOrientation.Portrait,
    Size: PaperSize.A4,
    Margin: "0pt"
    }
    )
    }
    }
    ))
     
     
    I've been able to do a workaround by placing at the end of the PDF Button OnSelect a 
    ;Navigate(Menu);Navigate(Galeria)
    But was it supposed?
  • ronaldwalcott Profile Picture
    3,847 Super User 2025 Season 2 on at
    Not sure why you have too Navigates but if it is working now that is good.
  • RuiPSampaio Profile Picture
    11 on at
    Yes, don't know why also.
    But in fact, it worked as workaround.
     
    Thanks!

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard