open id 

HomeForms

Passing Drop Down from Main Form to Data Repeater Messages in this topic - RSS

Justin Powers
Justin Powers
Posts: 2


11/30/2022
Justin Powers
Justin Powers
Posts: 2
Hello! I am looking to pass the information that my users select in their Drop Down List from the main form to the Data Repeater I have nested in the form.

Below is a screenshot of a test form I have been messing with to try to accomplish this.


The left side is the Main Drop Down List. The right side is the Data Repeater with the other Drop Down List I need to copy to.

Thanks in advance!
0 link
thad.roebuck@decisions.com
thad.roebuck@decisions.com
Administrator
Posts: 6


12/1/2022
thad.roebuck@decisions.com
thad.roebuck@decisions.com
Administrator
Posts: 6
Hello Justin,

Welcome to the forum! You can accomplish this with an active form flow. Basically, you'll want to set the rule flow to trigger every time the drop down field is changed, then within the flow use a set control value step to change the value(s) within your data repeater to what was just selected. I'll attach a small project I've built that does just that to hopefully give you something to play around with and figure out; additionally here's some documentation that should prove helpful. Run the wrapper flow within the project to display the form which I've populated with some sample data.

Data Repeater Documentation: https://documentation.decisions.com/v8/docs/en/creating-data-repeaters?highlight=data%20repeater

Active Form Flow Documentation: https://documentation.decisions.com/docs/active-form-flows-overview?highlight=active%20form

Hope this helps,



Thad Roebuck | Decisions Support

--


0 link
Justin Powers
Justin Powers
Posts: 2


12/1/2022
Justin Powers
Justin Powers
Posts: 2
Hey Thad! I appreciate this. It's definitely helped me in the right direction. Would you happen to be able to provide that sample project for Decisions 6? I understand it is depreciated, but the project is still implemented in 6.
0 link
thad.roebuck@decisions.com
thad.roebuck@decisions.com
Administrator
Posts: 6


12/2/2022
thad.roebuck@decisions.com
thad.roebuck@decisions.com
Administrator
Posts: 6
Absolutely; I've rewritten the project in v6 and will attach it with this post. In building the project a bug related to data form flows surfaced; essentially, trying to pass input to a data repeater which was being modified by a data flow failed because the input would disappear. A brief summary of the workaround below:

1) On your form, under Form Data > Input Data, add a new entry with the exact same name and type as the data name and type of your data repeater form control.
2) When building your data flow, ensure the output has the same name and type as above.
3) In your form Properties > Data Flows > [your data flow] > Edit Flow Outputs > Behavior: set the "Refresh all the components listening to this data" option to true (check the box)

Best,



Thad

--


0 link






Powered by Jitbit Forum 8.3.8.0 © 2006-2013 Jitbit Software