SOLVED

Dynamic number of form elements based on answer

Copper Contributor

Hello, I was wondering if it is possible to create form that displays dynamic number of controls based on user answer. Maybe example of what I'm trying to achieve will make things more clear.

 

Lets assume that I want to create form that allows user to provide some "ideas". The single "idea" consists of 2 properties: name and description. Upon entering the form user is asked, "how many ideas would you like to submit" and he can answer that question with a number between 1 - 10. Based on number provided by the user I would like to display dynamic number of fields where user can provide his answers. For example user enters 3 in number of ideas field, and form looks like this:

 

Number of ideas: 3

Idea 1

Name: .........

Description: .........

Idea 2

Name: .........

Description: .........

Idea 3

Name: .........

Description: .........

 

If user changes the values of number of ideas field, the form updates automatically to display provided number of fields.

 

Thanks in advance for any help :)

 

 

 

6 Replies
best response confirmed by dex2l (Copper Contributor)
Solution

@dex2l there is nothing in Forms that enables you to do that.

 

Rob
Los Gallardos
Microsoft Power Automate Community Super Use

@RobElliottThank you for your answer, unfortunately I expected that. One last thing. Please confirm if I understand this correctly. The number of fields/inputs on form is fixed and there is no way to dynamically add/remove anything to the form based on user input? I know about branching feature but doesn't fit my needs.

@dex2l you are correct, the number of questions is fixed and there is no way to dynamically add or remove anything based on a user's answer. You'd have to create an app in Power Apps to achieve this.

 

Rob
Los Gallardos
Microsoft Power Automate Community Super User

Yes you can.

 

You may use Branching and achieve the requirement.

The only hiccup in this way is that you need to create 10 Sections with respective number of Fields

Eg: Section 5 will be having Forms elements to enter 5 Ideas, Section 6 will be having Forms elements to enter 6 Ideas, Etc.

Once you done this, Just enable branching and then select appropriate flow of sections to achieve the result

My idea would be to create 10 idea fields by default, then send the user to the desired idea field by the choice they make.

Example:
If the user selects "I want to enter 1 idea" => Send to the 10th (last) idea form element.
If the user selects "I want to enter 4 ideas" => Send the user to the 6th idea form element.
If the user selects "I want to enter 9 ideas" => Send them to the 2nd idea form element.
and selecting 10 would send them to the first idea form element.

This way, they will end up with enough fields to enter the amount of ideas they selected in the first question.
Yes with branching that would be do-able without any problem.
1 best response

Accepted Solutions
best response confirmed by dex2l (Copper Contributor)
Solution

@dex2l there is nothing in Forms that enables you to do that.

 

Rob
Los Gallardos
Microsoft Power Automate Community Super Use

View solution in original post