u/Orvenwolf292

SharePoint Form visibility issue – How to persist DataCard visibility regardless of browser refresh?

In a form customized from a SharePoint Online list, I have three buttons (First, Second, Third) where each button's OnSelect sets varVisibleField to the name of the button. The First Datacard is set to be visible when varVisibileField = “First” and the same for Second and Third DataCards. Pretty basic.

When the submitted form is opened in SharePoint, only the fields that are set to be visible should be visible, whether the browser has been refreshed or not refreshed. Example, if the First button was clicked and the First DataCard's Text Input had data entered in it, only the First field should be visible when the form is opened later from the list, regardless of browser refresh or not.

What is happening is after submitting, for example, a new form with the First field entered, without refreshing the browser, if I open an existing item in the list for example with the Second field entered, the field that displays in the form is an empty First field. I understand that this is because the data in the "session" persists rather than the variable set by the button.

What can I do to always display a DataCard that should be displayed by anticipated behavior regardless of when a new form or existing form is opened, regardless of what instance of a form was opened prior to it, and regardless of if the browser has been refreshed or not?

reddit.com
u/Orvenwolf292 — 9 hours ago