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 / How to hide text field...
Power Apps
Answered

How to hide text field on initial page load

(0) ShareShare
ReportReport
Posted on by 30

Hello,

 

I have a form with a Yes/No toggle that is defaulted to No. When you switch to Yes it will load a hidden text field.

 

The functionality works fine. However, when the page initially loads the text field is visible. Switching the toggle to Yes and back to No will hide the text field.

 

Text field Visible is set to: If(DataCardValue13.Value = true, true)

 

How do I hide the text field on the initial page load?

task_list.png
task_cards.png
Categories:
  • rebeccas Profile Picture
    2,591 on at

    Most likely you just need a reset on your toggle. Just making it be "true" does not reset it. On the screens on visible put =UpdateContext({ResetTgl:!ResetTgl}) and then on the Reset of the toggle put =ResetTgl

     

    If that does not fix it working as you would like you can do a local variable instead. Let me know if you need that and I will give you the steps for it. 

  • powerapp_tester Profile Picture
    30 on at

    Hi @rebeccas...thanks for the quick reply. I tried as you asked but unfortunately it did not change. Text field is still visible on initial load.

  • rebeccas Profile Picture
    2,591 on at

    Try this instead:

     

    Screen:

    OnVisible=UpdateContext({showValue:false})

     

    Toggle:

    OnCheck=UpdateContext({showValue:true})

    OnUncheck=UpdateContext({showValue:false})

     

    This says when you get to the screen don't show this (showValue is a name I put, you can use whatever means something to you) and when they toggle is changed to show true show it and when it is changed to show false hide it. 

     

    The only time this method will need a few extra steps is if you have the toggle in an edit form and sometimes the value will open as true and sometimes as false. You can still do it for that but a little different steps.

     

    Let me know if this works better for your case or not.

  • powerapp_tester Profile Picture
    30 on at

    This didn't work either. I figured it has something to do with changing the status of the toggle but just not sure how to go about it.

  • Verified answer
    rebeccas Profile Picture
    2,591 on at

    Sorry...I think I forgot this part...

     

    Change the label you want to show and hide visible property to showValue

  • powerapp_tester Profile Picture
    30 on at

    It works!! Shame on me, I should have caught that. Thank you @rebeccas so much for your quick response and help.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 382 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 329

#3
WarrenBelz Profile Picture

WarrenBelz 187 Most Valuable Professional

Last 30 days Overall leaderboard