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 / Need to make a text bo...
Power Apps
Unanswered

Need to make a text box visible if a button is pressed

(1) ShareShare
ReportReport
Posted on by 40

Hi, 

 

I would like to have the  "custom discount" text box below appear only if the "Custom Discount" button has been pressed, how do I accomplish this? 

 

marcoagastelum1_0-1603498117736.png

 

Thank you in advance!

Categories:
I have the same question (0)
  • Verified answer
    WarrenBelz Profile Picture
    153,026 Most Valuable Professional on at

    Hi @marcoagastelum1 ,

    On the OnSelect of the button, set a Variable

    UpdateContext({varShowDisc:!varShowDisc})

    The Visible on text box

    varShowDisc

    On Screen OnVisible

    UpdateContext({varShowDisc:false})

     The button will toggle the visibility on and off.

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

  • WarrenBelz Profile Picture
    153,026 Most Valuable Professional on at

    Hi @marcoagastelum1 ,

    Just checking if you got the result you were looking for on this thread. Happy to help further if not.

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

  • marcoagastelum1 Profile Picture
    40 on at

    @WarrenBelz 

     

    That worked perfectly, thank you very much!

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard