cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
szybak
Regular Visitor

Fields are visible based on previous item entered

I have created a PowerApp from a SharePoint list with yes/no columns. The columns are main fields and subfields, where I created If statements in the subfield based on the main field being selected... For example, the main fields are 1, 2, 3, 4, 5... and then there are subfields 1.1, 1.2, 1.3, etc. which are only visible if the main field is selected. I've already added If statements under each subfield to only be visible if the main field is selected and they all work when testing the app but then whenever I create a new item, it shows the fields from the last item entered into the list. 

 

In the picture attached, you can see that I just created a new item but the previous item that was entered had field 3 selected so all of the subfields under field 3 are already visible even though field 3 hasn't been selected for the new item yet.... How do I make sure everything has been reset between items to get rid of this "artifact" left over from the previous item??

2 REPLIES 2
Paulo_VS
Advocate I
Advocate I

Hi Guy,

 

In the previous screen, try to put a function on the "OnVisible" that resets the values
example: Reset (ComboBoxTest)
               Reset(TextLabel)
              Reset(ComboBox2)
Or when the button send is clicked try put the Reset on end expression

I'm not sure where I would do that because this is a single screen app created from a SharePoint list.

Helpful resources

Announcements
PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

Top Solution Authors
Top Kudoed Authors
Users online (1,588)