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 / Conditionally show/hid...
Power Pages
Answered

Conditionally show/hide steps in multistep form !!

(1) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi everyone,

 

I am stuck on one issue but I am not sure how to solve this. I have created a multistep form. It is based on a single table in the dataverse. I want to show/hide next steps based on the user selection. Let's say in the below form, if user selects 2 options as yes, then the 2 steps should be visible instead of 3.  For example, if user selects to apply for "Category B" and "Category C", then only those 2 forms should open for him and the "Category A" should be hidden. How can I achieve this?

 

@saudali_25 , @Lucas001 , @Fubar , @ragavanrajan  tagging you experts as you might have already solved this issue.

 

hafizsultan242_0-1689324095143.png

 

Kind Regards,

Hafiz

 

Categories:
I have the same question (0)
  • Verified answer
    Saud Ali Profile Picture
    812 Super User 2024 Season 1 on at

    Hi @Anonymous ,

     

    Thanks for mentioning on topic. 

     

    A multistep form step can be a Condition type that indicates the step should evaluate an expression. If the expression evaluates to true then the next step is displayed. If the expression evaluates to false and if the Next Step If Condition Fails has been specified, that step will be displayed. The current table is the target used to evaluate the expression against. Record Source defaults to the Record Source of the previous step.

     

    Please go through this official link which explains how you can add conditional steps based on your expression.

     

    Here is another article with conditional steps example just like yours use case. Or you can watch this video.

     

    Feel free to ask, if you have any questions.

     

    Thanks,

    Saud

     

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

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi @saudali_25 , 

     

    Thank you so much for your response. However, it is not working for me. May be I am making some mistake.

     

    Below is my configuration:

     

     

    1. Put the condition on the first page. ("Information page where next step is CategoryA)

    hafizsultan242_0-1689344304100.png

     

    2. Set the condition that if step fails, then it should go to the CategoryB. 

     

    hafizsultan242_3-1689344578656.png

     

     

    However, I am getting following error:

     

    hafizsultan242_1-1689344418677.png

     

    My form is below:

     

    hafizsultan242_2-1689344495932.png

     

     

    Can you please check and guide me? Many thanks !!

     

     

  • Saud Ali Profile Picture
    812 Super User 2024 Season 1 on at

    Hi @Anonymous ,

     

    Assuming you're using two option field on you form. The values of two option are true/false. So, your conditional expression should look like this:

    fuj_CategoryA = true

     

    Please give it a try and let me know if you have any issues.

     

    Thanks,

    Saud

     

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

  • Lucas001 Profile Picture
    2,541 Super User 2026 Season 1 on at

    Hi @Anonymous ,

     

    keep trying what @saudali_25  suggested in the last post.

    You will face the addition that when all categories are selected as "no" the button still states "next" but will submit the form. A behaviour you probably don't like.

    For that add some custom javascript to your StartStep to change the .val() of your button.

     

    Hope that helps additionally.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi @Lucas001 , @saudali_25 

     

    Thank you so much for your quick support. I have given it a go using the solution mentioned by @saudali_25 but it is still providing the same error. I am putting the condition on the first page. I have tried using false as a condition but the result is same.

     

    hafizsultan242_0-1689348436059.pnghafizsultan242_1-1689348462726.png

     

    hafizsultan242_2-1689348530154.png

     

     

    If I do not use "Condition", forms loads successfully. 

     

    @Lucas001 you are right. If nothing is selected, form should not be submitted. Can you please suggest a java script and how it will work as I am not expert in javascript? 

     

    Thanks again !!

     

     

     

     

     

  • Saud Ali Profile Picture
    812 Super User 2024 Season 1 on at

    Hi @Anonymous ,

     

    I think the only missing configuration from your screenshots is when you're adding a conditional step on your form and defining your step if condition fails, please navigate to that targeted form step -> Form Definition -> Record Source section. Add Source Type as "Results From Previous Step" and Entity Source Step as "Your Conditional Step" Please check below screenshot.

     

    saudali_25_0-1689366163953.png

     

    After adding this configuration, it should work. Please give it a try and let me know if you face any problems.

     

    If this solves your problem, you can mark it as Solution and open another ticket for next issues that is probably restricting form submission if no option is selected.

     

    Thanks,

    Saud

     

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

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi @saudali_25 ,

     

    Thank you for your guidance. It really makes sense what you are saying and I have given it a try. Somehow, I am getting exactly the same error. Below are my new configurations:

     

    hafizsultan242_0-1689396651522.png

     

    hafizsultan242_1-1689396669956.png

    Now, I have set up the configuration below as you recommended. I am getting the same error. However, I have observed that when I click save & close, it does not give me any notification or error when I save. After saving and syncing, when I try, I get the same error I mentioned. However, when I come back to see this configuration, I see that this configuration is set to empty (default configuration)

     

    hafizsultan242_2-1689396722577.png

     

    hafizsultan242_3-1689396859861.png

     

    Do you have any suggestions to implement this? Does it work with you if you give it a try?

     

    Kind Regards,

    Hafiz

     

     

     

     

     

     

  • Verified answer
    Saud Ali Profile Picture
    812 Super User 2024 Season 1 on at

    Hi @Anonymous ,

     

    I tried it myself and it works for me. You're right if you sync your changes and come back the lookup would be empty but if you select source type again you will see your changes. May be a bug on this page. 

     

    One last thing, for the conditional step you've to use your column's logical name for conditional expression not schema name. Can you make sure if you're using right logical name? It seems you're using schema name. Please double check and share.

     

    Thanks,

    Saud

     

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

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi @saudali_25 , 

     

    Thank you so much for your support in solving this problem. As per your suggestion, issue is fixed and now I can control conditionally change/select the steps. The following video was also helpful to understand the concept.

     

    https://www.youtube.com/watch?v=mHbkNn-Zx7o

     

    Kind Regards,

    Hafiz

     

  • inanoffice23 Profile Picture
    299 Moderator on at

    In my case that error was because one of the 'Choices' was a 'Yes/No', but creating it as a 'New choice' and 'sync with this choice' did the trick, that error is very vague but finally I found the answer

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