I've created a Forms based on a gallery, and I'm checking if there is any blank field when a button is selected, so the app doesn't move to the next screen while there are blank fields.
I realized that when I initiate the app for the first time (literally when I launch the app), my check doesn't work if I haven't filled any field yet. Which means that it considers all fields filled (and enables to move to the next screen), even if I select the button more than once.
On the other hand, if I select any field (I don't need to fill) and then click the button, it works. Here is the code:
Button.OnSelect =
ForAll(Gallery11.AllItems,
If(
Or(
And([@TextInput3_37].Visible = true, IsBlank([@TextInput3_37])),
And([@TextInput3_38].Visible = true, IsBlank([@TextInput3_38])),
And([@TextInput3_39].Visible = true, IsBlank([@TextInput3_39])),
And([@TextInput3_46].Visible = true, IsBlank([@TextInput3_46])),
And([@TextInput3_47].Visible = true, IsBlank([@TextInput3_47])),
And([@TextInput3_48].Visible = true, IsBlank([@TextInput3_48]))
) = true,
Collect(CollectionTF, {Boolean: false}),
Collect(CollectionTF, {Boolean: true})
))
Is there a way to "force" the app to initiate the fields to make it work?
Thank you!