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.
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.
This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.
Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.
User | Count |
---|---|
7 | |
6 | |
5 | |
2 | |
1 |