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 / Make two buttons invis...
Power Apps
Unanswered

Make two buttons invisible

(0) ShareShare
ReportReport
Posted on by 31

Hey,

I want to create a PDF-File of one Screen of my App but there are two buttons which should not be there in the PDF-File. Can someone tell me how I can make those two buttons temporary invisible after I clicked the Create PDF button.

jsteinkamp_0-1695281360755.png

Thank you!

Regards Jannes

Categories:
I have the same question (0)
  • Verified answer
    v-jefferni Profile Picture
    on at

    Hi @j-steinkamp ,

     

    I think you can use UpdateContext to update a variable OnSelect of the Create PDF button in front of the PDF function:

    UpdateContext({varVisble: false})

    , and use this variable in Visible of Back Button. Besides, add a Timer with duration 12000 (2 sec), Start set to !varVisible, OnTimerEnd UpdateContext({varVisble: true})

     

    Best regards,

  • gcmfaizan Profile Picture
    1,022 on at

    @j-steinkamp you can do this by passing the control name in the pdf function like this:

    Set(AlfaPDF,PDF(Container1,{DPI: 72, Margin: "25mm", Orientation: "Landscape"}))

    gcmfaizan_0-1695282350913.png

    On the right side, there is a PDF viewer but the function just generates the PDF of Container1 which contains one gallery. 1st parameter is mandatory other is optional.

     

     

    If this is the answer for your question, please mark the post as Solved.
    If this answer helps you in any way, please give it a like.

     

    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 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard