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 Call June 2022 768x460.png

Power Platform Community Call

Join us for the next call on August 17, 2022 at 8am PDT.

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.

Users online (2,062)