web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Pages / Power Portal Advance F...
Power Pages
Unanswered

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

(0) ShareShare
ReportReport
Posted on by 8

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.

Categories:
I have the same question (0)
  • ragavanrajan Profile Picture
    7,044 Most Valuable Professional on at

    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 }}";
     console.log(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  

     

    https://www.youtube.com/watch?v=XKkyNgByqf4&ab_channel=PragmaticWorks 

     

    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.

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.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Pages

#1
rezarizvii Profile Picture

rezarizvii 71

#2
DP_Prabh Profile Picture

DP_Prabh 36

#3
oliver.rodrigues Profile Picture

oliver.rodrigues 32 Most Valuable Professional

Last 30 days Overall leaderboard