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 / Setting a field to bla...
Power Apps
Unanswered

Setting a field to blank or 0 when it gets hidden

(1) ShareShare
ReportReport
Posted on by 203
Hey there friends,
I have this powerapp that works as a form, where based on the selections made in a dropdown, other fields will show or get hidden. Users can use the same form to edit the details of an entry, and might thus un-select items in the dropdown which will result in hidding previously shown fields.

My issue: I am trying to set fields that are/get hidden to a blank value or 0. I've read about the reset function in a few other posts, which basically will reset the fields to the default value (currently: Parent.Default) upon change in the dropdown.
 
However this will reset the hidden field to the previously saved value and not to blank or zero. If I change the default to Blank(), when I save the form, then later go back to edit, it would make the field blank, because the form resets OnSuccess...

Any tips on how I should approach this?
Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    153,084 Most Valuable Professional on at
    Hi  julienvdc 
    Set the Default to
    If(
       Self.Visible,
       Parent.Default,
       Blank()
    )
     
    Please click Does this answer your question 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 a Like.
    MVP (Business Applications)     Visit my blog Practical Power Apps    Buy me a coffee
  • julienvdc Profile Picture
    203 on at
    Thanks Warren. Simple.

  • WarrenBelz Profile Picture
    153,084 Most Valuable Professional on at
    I assume this is now solved ?
  • julienvdc Profile Picture
    203 on at
    Hey Warren, yes it is solved. Sorry for not marking it... but since the change of forum platform I am having issues marking best answers and receiving notifications...

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