Showing results for 
Search instead for 
Did you mean: 
Regular Visitor

Power Portal Advance Form Steps to Show/hide based on current user type

I have created one Power Portal Advance Form with several steps and I want to show/hide specific steps based on the current user type. Is there any feature or customization available to achieve this?  I didn't find any solution or workaround so far for this.

Super User
Super User

Hi @Hiral2010 


     You can try the following approach, inspect the advanced form steps and check if there is any id or CSS class you can find. 


In the advanced form steps custom javascript section, add the following javascript code from @OliverRodrigues 


$(document).ready(function () {
    var roles = "{{ user.roles }}";
    if(roles.contains("Administrators") > 0)
        alert("I am Admin");

 then the below video is for your reference as an example to show/hide fields. But if you can find the tab element id then you can apply the same logic with above code 


Please give it a try and let us know. 

PS: I haven't tried this yet personally. But assuming the logic will work. 


Hope it helps. 

If you like this post, give it a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users to find it.

Helpful resources

PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.


Power Apps Community Call

Please join us on Wednesday, October 20th, at 8a PDT. Come and learn from our amazing speakers!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Users online (1,836)