How can I dynamically resize/reorient fields in a Data Repeater?

I have a Data Repeater which shows various fields. Some of these fields are dynamically shown/hidden using some Active Form Flows within the Data Repeater.


How can I dynamically resize/rearrange the fields with respect to the currently displayed fields?

Comments

  • Cody_Decisions
    edited June 18

    Hey there,


    By placing the Data Repeater fields within a Horizontal Stack Layout, you can achieve a collapsible/expandable Data Repeater.


    Horizontal and Vertical Stacks: https://documentation.decisions.com/docs/horizontal-and-vertical-stack-layouts?highlight=Horizontal



    As the hide/show conditions are met, the respective field is hidden/shown and the fields are dynamically relocated (without leaving a space in-between).


    The default Form with the Data Repeater:



    When the Date Of Birth field is hidden:




    When the Date of Birth Field is shown:


    I have attached a sample project which demonstrates the above functionality. 


    When “Show” is placed in the Name field, the Date of Birth field is shown. When “Hide” is placed in the Name field, the Date of Birth field is hidden.


    I hope this helps!


    -Cody


Sign In or Register to comment.