I have a multi-screen form based on a SharePoint list. For this functionality, a user selects an item from a gallery on a screen, that item is saved in a variable, and the form fields are displayed with the data based on that variable.
The first time a user loads the page, two of the fields that are dependent on a choices field do not display, even though they have data. When I go back a screen and view this screen again, the fields display correctly. The Choice field displays correctly with the data for that item on opening the screen, but the fields dependent on that choice do not load until I go back and view the item again. This only happens in the published app, not in preview mode.
What would cause items to not display on first load, and is there a way to fix it?
choice options:
Choice1, Choice2, Choice3
variable:
varOptions
Screen OnVisible:
Set(varOptions, DataCardValue1.SelectedItems);
Choice Default:
ThisItem.'ChoiceColumn'.Value
Data Field Visible:
Field 1: If("Choice1" in varOptions.Value, true, false)
Field 2: If("Choice2" in varOptions.Value, true, false)
Field 3: If("Choice3" in varOptions.Value, true, false)