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 / 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!
 
Screenshot 2024-11-07 at 14.52.20.png
Categories:
I have the same question (0)
  • ronaldwalcott Profile Picture
    3,862 Moderator 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,862 Moderator 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

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!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 542 Most Valuable Professional

#2
Haque Profile Picture

Haque 206

#3
Kalathiya Profile Picture

Kalathiya 201 Super User 2026 Season 1

Last 30 days Overall leaderboard