Hi @Anonymous ,
Could you please share a bit more about your issue?
Do you create a custom form using PowerApps within your SP List?
Further, do you want to initialize/set a variable when you open a new form (click "+ New" button)?
Based on the issue that you mentioned, I suppose that you created a custom form using PowerApps in your SP List, is it true?
According to the issue that you mentioned, I think this issue may be related to the OnVisible property of the FormScreen.
If you created a custom form using PowerApps within your SP List, there are some limits on OnStart property and OnVisible property you need to know. The OnStart property and OnVisible proeprty of the FormScreen would be executed only once while the list is loaded.
In other words, when you load your custom form in your SP List first time, the OnStart property and OnVisible property would be fired. Then when you load the form again to create another new record, the OnStart property and OnVisible property would not be fired again.
Please check the following article for more details:
https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/sharepoint-form-integration#customize-the-default-form
As an alternative solution, you could consider set your variables within the OnNew property of SharePointIntegration control. On your side, please set the OnNew property of the SharePointIntegration control to following:
Set(Variable1, "value1"); /* <-- Set your variables here. These variables would be set when you load a New Form via clicking "+ New" in your SP List */
Set(Variable2, "value2");
...
NewForm(SharePointForm1)
If you want to set variables when you edit a form, please consider set the OnEdit property of the SharePointIntegration control to following:
Set(Variable1, "value1"); /* <-- Set your variables here. These variables would be set when you edit a form via clicking "+ New" in your SP List */
Set(Variable2, "value2");
...
EditForm(SharePointForm1)
Please consider take a try with above solution, then check if the issue is solved.
Best regards,