Hi,
so my scenario is that I have a sharepoint list which allows users to raise requests for change to process documents.
They should be able to raise new entries on the list and add attachments to the list (which requires them to have edit access due to sharepoint).
However once the item is raised they should only be able to edit a comments field all the other fields on the list should be disabled but visible to them.
This is all straightforward and is achievable in PowerApps, however I have two users who need to be able to do all the above plus be able to edit all the other fields e.g. Status, as they are the managers of that whole process
So I am thinking is there a way to have two forms on the same Power app (controlled by who is logged on) and have one which has all the fields disabled apart from the comments field, and the other to have all fields available.
How do I change the setting in the integration to recognise both forms.
Thanks
Solved! Go to Solution.
Hi @Ian_C ,
Could you please share more details about your scenario? Would you like to let only two of users be able to edit all fields of any record while other users only be able to edit comment field of a record?
If so, it is not necessary to use 2 Forms in the Screen. You could leverage If statements in all the data card of a single Form:
1\ Set a variable in App OnStart:
Set(varValid, If(User().Email = User1.Email OR User().Email= User2.Email, true, false))
If logged in User is one of that two users, the variable equals true.
2\ Set DisplayMode of Comments Data Card to:
DisplayMode.Edit
So everyone would be able to edit this field.
3\ Set DisplayMode of EACH Data Card of the Edit Form that only the two users could modify:
If(varValid, DisplayMode.Edit, DisplayMode.View)
So only the two users would be able to edit all fields.
Hope this helps.
Best regards,
Community Support Team _ Jeffer Ni
If this post helps, then please consider Accept it as the solution to help the other members find it.
Community Support Team _ Jeffer Ni
If this post helps, then please consider Accept it as the solution to help the other members find it.
Hi @Ian_C ,
Could you please share more details about your scenario? Would you like to let only two of users be able to edit all fields of any record while other users only be able to edit comment field of a record?
If so, it is not necessary to use 2 Forms in the Screen. You could leverage If statements in all the data card of a single Form:
1\ Set a variable in App OnStart:
Set(varValid, If(User().Email = User1.Email OR User().Email= User2.Email, true, false))
If logged in User is one of that two users, the variable equals true.
2\ Set DisplayMode of Comments Data Card to:
DisplayMode.Edit
So everyone would be able to edit this field.
3\ Set DisplayMode of EACH Data Card of the Edit Form that only the two users could modify:
If(varValid, DisplayMode.Edit, DisplayMode.View)
So only the two users would be able to edit all fields.
Hope this helps.
Best regards,
Community Support Team _ Jeffer Ni
If this post helps, then please consider Accept it as the solution to help the other members find it.
Community Support Team _ Jeffer Ni
If this post helps, then please consider Accept it as the solution to help the other members find it.
Hi @v-jefferni
the form consists of about 20 datacards
Many thanks
Hi, @v-jefferni
So therefore I can use test the form mode and the valid variable and then set the display mode for the data card.
Thanks
User | Count |
---|---|
170 | |
95 | |
76 | |
72 | |
59 |
User | Count |
---|---|
215 | |
166 | |
97 | |
95 | |
74 |