cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Arioule
Helper III
Helper III

How to make sections (or fields) of a Entity Main Form only visible (or editable) for specific users (or specific security roles)

Hi,

 

I have created a Entity Main Form with 3 different sections : Employee, HR and IT sections.
I have also created a Business Process Flow associated to my Entity with 3 Stages that will help to gradually fill in the form.
I would like first the employee to fill in the Employee Section, then HR to fill in its dedicated section and finally IT to complete the form through the implemented Business Process Flow.

Also, I would like the Employee, HR and IT to be the only ones to be able to see (or to edit) their dedicated section.

 

How can I achieve this ?

 

Thanks,

 

Arioule

1 ACCEPTED SOLUTION

Accepted Solutions

Hi @Arioule 

 

There are multiple ways you could achieve this but what I would do is create a different form for each of the different user roles and assign security roles to those forms.  That way, when a user with a particular role opens the record they only see the form that is relevant to them.  If you keep it as one form like you have at the moment then you are going to need JavaScript and some custom logic to show and hide the sections based on some parameter of the user.  I would avoid this.

 

As for the business process flow.  A user can either see the entire business process flow or not see it.  You can't hide sections of a business process flow.  What you could do is use Field Security to hide the details of fields that each role should not see, but this is a lot of work and maintenance.  If you went with the 1 form per user role then I question the need to have a business process flow.  Business process flows are designed to guide a user through the steps of a process whereas in your situation each user is just doing 1 part of the process and sounds like they do not need to know about the other steps.

 

Hope this helps

View solution in original post

2 REPLIES 2

Hi @Arioule 

 

There are multiple ways you could achieve this but what I would do is create a different form for each of the different user roles and assign security roles to those forms.  That way, when a user with a particular role opens the record they only see the form that is relevant to them.  If you keep it as one form like you have at the moment then you are going to need JavaScript and some custom logic to show and hide the sections based on some parameter of the user.  I would avoid this.

 

As for the business process flow.  A user can either see the entire business process flow or not see it.  You can't hide sections of a business process flow.  What you could do is use Field Security to hide the details of fields that each role should not see, but this is a lot of work and maintenance.  If you went with the 1 form per user role then I question the need to have a business process flow.  Business process flows are designed to guide a user through the steps of a process whereas in your situation each user is just doing 1 part of the process and sounds like they do not need to know about the other steps.

 

Hope this helps

Thanks a lot for your help

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Users online (3,511)