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 / ResetForm resets form ...
Power Apps
Unanswered

ResetForm resets form controls but not field visibility

(0) ShareShare
ReportReport
Posted on by 103
Hi everyone
 
In my app I've got a form linked to a SharePoint list.  This form contains a number of Y/N fields where if the user changes the value to Yes a previously hidden field will then display.  The example below shows that if the user selects Yes for a load being carried then a text box field called Load Carried will appear:
 
 
If the toggle is left as No then the user never sees the Load Carried field.  The code being used in the Visible property for the above field is simply tog_LoadCarried.Value
 
This works fine the first time a user opens the app and submits the form.  However, if they then go back into another item or create a new item using the same form, the toggle controls in the form all change back to No but the corresponding text fields are still visible.  If I change the toggle to Yes and then back to No they disappear.  I'm using the ResetForm command when the form is being opened, whether that's in edit or new mode.
 
This is strange because I've used this method of controlling field visibility in forms and can't remember coming across this issue before.  I'm not sure if something has changed?
 
I'd be grateful if anyone could tell me if they've come across this issue before, and whether it is something that used to work but now does the above as I'm doubting myself :-)  The only workaround I can think of is to set the default value of each toggle as a variable and use that to reset the toggles every time the form is opened.  However, there are quite a few toggle fields and I don't want to have to do this unless there's no other alternative.
 
Thanks in advance for any help you can give.
Categories:
I have the same question (0)

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