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
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Power Platform Call June 2022 768x460.png

Power Platform Community Call

Join us for the next call on June 15, 2022 at 8am PDT.

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.

PA.JPG

New Release Planning Portal (Preview)

Check out our new release planning portal, an interactive way to plan and prepare for upcoming features in Power Platform.

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