Hi,
I am trying to do something quite simple but not so sure how to achieve this. I have done some search in here for some suggestions too. Apologies if I am asking a question that has already been answered.
I have a Form Connected to a SharePoint List. In the form ColumnX is connected to a Dropdown and the items are automatically populated from SharePoint. I want to achieve this:
When the Form is in New Mode, I want to change the Default Value in the Dropdown and when the form is in Edit mode, I would like it to be Parent.Default.
Depending on the User() who is using the PowerApp, I want to pick a different Default value for the Dropdown in the form when it is in the new mode. Something like this:
During the load of the app, a Global Variable will be initialized depending on the User:
Set(globalVariable, "")
If (User().Email = "something@something.com", gloablVariable="Value1",(if User().Email = "somethingelse@something.com", globalVariable=Value2))
if(fmMyForm.Mode = FormMode.New, globalVariable , Parent.Default)
I am very new to the whole PowerApps things, so I might be trying to do this the wrong way. Appreciate if somebody could guide me in the right direction.
Thanks