Hi, hope you are well and thanks for reading.
I need help with a power apps form that is linked to my SHP list. I need that according to the mails that are stored in the Editors list of my ListA, certain fields are edit or read only.
From what I researched I need to apply in DisplyMode the following configuration:
If(
User().Email in UserListWithEdit,
DisplayMode.Edit,
DisplayMode.View
)
But when I want to create as collection ListaDeUsuariosConEdicion I have problems because it does not recognize in the ONSTART the Collect nor the ClearColeect it tells me that a +, * or & operator was expected and the name ListaDeUsuariosConEdicion marks it as name not recognized. Someone is so kind to help me please.
Thanks for taking the time to read.
You need to share that code that has the error please. I have some guesses, but its hard to tell you without seeing a screenshot of the error/code.
Usually this happens, because you are doing a Collect/ClearCollect on something that hasn't been defined before, OR has been defined in other places and dooesn't match.
So please share the code/OnStart please.
Also try this,
At the top of the AppOnStart. Before Any other Code, put ClearCollect(ListaDeUsuariosConEdicion, {});
Was this reply helpful?YesNo
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.