Hello,
I have a Power App that has a login page that, once the password is correct, take user to a landing page. The password from this page is stored in the function: ;Set(vPassword,PasswordInput); on the Onselect property of the Login button. There are two different passwords that users can use that will allow buttons on the next screen to work or not depending on the password's value. This all works great, but I run into an issue when I try to use this variable on any screen other than the landing page.
The two buttons that I need to work are for adding new records to tables in SharePoint lists and the Onselect property code is ResetForm('GeneralProject Form');ResetForm(PMPForm); ResetForm(ProjectFundingForm);ResetForm(ProjectScheduleScreen);ResetForm(ProjectContractForm);Set(varFormDataP,Defaults('Projects Data')); Navigate('General Project');
Once I am navigated to the first screen in the sequence, the vPassword variable has no value. I am trying to set the DisplayMode of certain fields on each screen to be Edit or Disabled depending on which password the user input. Is the issue Set(varFormDataP,Defaults('Projects Data'))? How can I ensure that the vPassword variable retains value throughout the App?
Thank you in advance! I have been stuck on this for days.