cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Conditionally show/hide steps in multistep form !!

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

 

2 ACCEPTED SOLUTIONS

Accepted Solutions

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.

View solution in original post

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.

View solution in original post

10 REPLIES 10

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.

Anonymous
Not applicable

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 !!

 

 

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.

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.

Anonymous
Not applicable

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 !!

 

 

 

 

 

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.

Anonymous
Not applicable

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

 

 

 

 

 

 

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.

Anonymous
Not applicable

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

 

Helpful resources

Announcements

Community will be READ ONLY July 16th, 5p PDT -July 22nd

Dear Community Members,   We'd like to let you know of an upcoming change to the community platform: starting July 16th, the platform will transition to a READ ONLY mode until July 22nd.   During this period, members will not be able to Kudo, Comment, or Reply to any posts.   On July 22nd, please be on the lookout for a message sent to the email address registered on your community profile. This email is crucial as it will contain your unique code and link to register for the new platform encompassing all of the communities.   What to Expect in the New Community: A more unified experience where all products, including Power Apps, Power Automate, Copilot Studio, and Power Pages, will be accessible from one community.Community Blogs that you can syndicate and link to for automatic updates. We appreciate your understanding and cooperation during this transition. Stay tuned for the exciting new features and a seamless community experience ahead!

Summer of Solutions | Week 4 Results |Winners will be posted on July 24th

We are excited to announce the Summer of Solutions Challenge!    This challenge is kicking off on Monday, June 17th and will run for (4) weeks.  The challenge is open to all Power Platform (Power Apps, Power Automate, Copilot Studio & Power Pages) community members. We invite you to participate in a quest to provide solutions to as many questions as you can. Answers can be provided in all the communities.    Entry Period: This Challenge will consist of four weekly Entry Periods as follows (each an “Entry Period”)   - 12:00 a.m. PT on June 17, 2024 – 11:59 p.m. PT on June 23, 2024 - 12:00 a.m. PT on June 24, 2024 – 11:59 p.m. PT on June 30, 2024 - 12:00 a.m. PT on July 1, 2024 – 11:59 p.m. PT on July 7, 2024 - 12:00 a.m. PT on July 8, 2024 – 11:59 p.m. PT on July 14, 2024   Entries will be eligible for the Entry Period in which they are received and will not carryover to subsequent weekly entry periods.  You must enter into each weekly Entry Period separately.   How to Enter: We invite you to participate in a quest to provide "Accepted Solutions" to as many questions as you can. Answers can be provided in all the communities. Users must provide a solution which can be an “Accepted Solution” in the Forums in all of the communities and there are no limits to the number of “Accepted Solutions” that a member can provide for entries in this challenge, but each entry must be substantially unique and different.    Winner Selection and Prizes: At the end of each week, we will list the top ten (10) Community users which will consist of: 5 Community Members & 5 Super Users and they will advance to the final drawing. We will post each week in the News & Announcements the top 10 Solution providers.  At the end of the challenge, we will add all of the top 10 weekly names and enter them into a random drawing.  Then we will randomly select ten (10) winners (5 Community Members & 5 Super Users) from among all eligible entrants received across all weekly Entry Periods to receive the prize listed below. If a winner declines, we will draw again at random for the next winner.  A user will only be able to win once overall. If they are drawn multiple times, another user will be drawn at random.  Individuals will be contacted before the announcement with the opportunity to claim or deny the prize.  Once all of the winners have been notified, we will post in the News & Announcements of each community with the list of winners.   Each winner will receive one (1) Pass to the Power Platform Conference in Las Vegas, Sep. 18-20, 2024 ($1800 value). NOTE: Prize is for conference attendance only and any other costs such as airfare, lodging, transportation, and food are the sole responsibility of the winner. Tickets are not transferable to any other party or to next year’s event.   ** PLEASE SEE THE ATTACHED RULES for this CHALLENGE**   Week 1 Results: Congratulations to the Week 1 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge. Week 1: Community MembersSolutionsSuper UsersSolutionsPower Pages @Inogic  1   @ragavanrajan  2 @aofosu  1 @Jcook  1Open  @OliverRodrigues  1Open  @Lucas001  1Open Open    Week 2 Results: Congratulations to the Week 2 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge.   Week 2: Community MembersSolutionsSuper UsersSolutionsPower Pages @taraubianca25  2 @EmadBeshai  2 @ALP2  2@Fubar 2 @ekluth1  2@ragavanrajan 1 @mandela  1@OliverRodrigues 1 @Ajlan  1Open   @elishafxx  1    @TA_Jeremy  1    @helio1981  1       Week 3 Results: Congratulations to the Week 3 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge. Week 3:Community MembersSolutionsSuper UsersSolutionsPower PagesInogic2@EmadBeshai 6Ajlan1@ragavanrajan 4CraigWarnholtz1@Fubar 4  @Jcook 3  @OliverRodrigues2   Week 4 Results: Congratulations to the Week 4 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge.   Week 4:Community MembersSolutionsSuper UsersSolutionsPower PagesHenryed071Fubar3Inogic1OliverRodrigues2JacoMathew1EmadBeshai2faruk11  TA_Jeremy1   shubhambhangale1   doug-ppc1   hubjes1  

Check Out | 2024 Release Wave 2 Plans for Microsoft Dynamics 365 and Microsoft Power Platform

  On July 16, 2024, we published the 2024 release wave 2 plans for Microsoft Dynamics 365 and Microsoft Power Platform. These plans are a compilation of the new capabilities planned to be released between October 2024 to March 2025. This release introduces a wealth of new features designed to enhance customer understanding and improve overall user experience, showcasing our dedication to driving digital transformation for our customers and partners.    The upcoming wave is centered around utilizing advanced AI and Microsoft Copilot technologies to enhance user productivity and streamline operations across diverse business applications. These enhancements include intelligent automation, AI-powered insights, and immersive user experiences that are designed to break down barriers between data, insights, and individuals. Watch a summary of the release highlights.    Discover the latest features that empower organizations to operate more efficiently and adaptively. From AI-driven sales insights and customer service enhancements to predictive analytics in supply chain management and autonomous financial processes, the new capabilities enable businesses to proactively address challenges and capitalize on opportunities.    

Updates to Transitions in the Power Platform Communities

We're embarking on a journey to enhance your experience by transitioning to a new community platform. Our team has been diligently working to create a fresh community site, leveraging the very Dynamics 365 and Power Platform tools our community advocates for.  We started this journey with transitioning Copilot Studio forums and blogs in June. The move marks the beginning of a new chapter, and we're eager for you to be a part of it. The rest of the Power Platform product sites will be moving over this summer.   Stay tuned for more updates as we get closer to the launch. We can't wait to welcome you to our new community space, designed with you in mind. Let's connect, learn, and grow together.   Here's to new beginnings and endless possibilities!   If you have any questions, observations or concerns throughout this process please go to https://aka.ms/PPCommSupport.   To stay up to date on the latest details of this migration and other important Community updates subscribe to our News and Announcements forums: Copilot Studio, Power Apps, Power Automate, Power Pages

Users online (1,209)