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 Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

Users online (2,855)