Hello, I am working on a APP which needs IF statements to make sure the app only does certain things if they are true. I am currently experience issues with one of my buttons and I am unable to solve it.
On "page1" I select a specific value which I use to filter a gallery on "page2.
Page 1:

When I press the button in the bottom of the Page1 I have the following code:
Set(VariableOne, 'ItemID Text Box'.Text);
Refresh(SharePointTable);
Navigate(Page2);
On Page 2 I filter the Gallery with Filter(SharePointTable, ItemIDLocation = VariableOne&'Location text box'.Text.

I have added two text boxes in the bottom of the screen which says:
If(Len(GalleryPickingLocationTextBox.Text) >0 , "Gallery Not Blank", Gallery Blank")
If(!Isblank(GalleryPickingLocationTextBox.Text), "Gallery Not Blank", "Gallery Blank)
As can be seen in the picture above the test says "Gallery Not Blank".
However, if I now navigate back to the Page 1 and use another ItemID, Page 2 i all of the sudden saying that the Gallery is blank. However, the Gallery is displaying the correct values.


I have in the top corner of Page 2 a refresh button where I have function:
Refresh(SharePointTable)
And if I press this button the functions suddenly says the gallery is not blank:

In my button in the bottom of Page 2 I have the code:
Refresh(SharePointTable);
IF(!IsBlank(GalleryPickingLocationTextBox.Text, Navigate(Page3), false)
I am unable to use this button when the text says "Gallery Blank" even if I have added a "Refresh" before the If statement. However If I "double klick" on the button it works of course because after I have refreshed the the table it works the 2nd time.
I don't understand what I need to here to make it work. I have a Refresh on the previous page before I navigate to this page and I have a Refresh on the actual button, but for some reason I need to do a manual refresh of the SharepointTable before !IsBlank funktion is working. But as you can see form the picture the Gallery is not empty. It Contains the right values.