Expand my Community achievements bar.

Question about Custom Layout control for Subform

Avatar

Former Community Member
Hello everyone,

I have a subform that has approximately 9 TextFields added to it, each pre-populated from an XML data source and through Javascript, I control whether or not each TextField is visible or hidden. I am using Flow Layout to control where the fields are placed in the subform. However, I have a unique requirement to actually have the layout work from tb - lr instead of lr-tb. I was wondering if there was a way to set the height of the subform to a specific value then have the layout control how many components are visible in each column instead of row in the subform.



Example :



Typical Layout set to lr-tb :



TEXTFIELD 1 TEXTFIELD 2 TEXTFIELD 3

TEXTFIELD 4 TEXTFIELD 5 TEXTFIELD 6

TEXTFIELD 7 TEXTFIELD 8



What I actually need is (tb - lr) :



TEXTFIELD 1 TEXTFIELD 4 TEXTFIELD 7

TEXTFIELD 2 TEXTFIELD 5 TEXTFIELD 8

TEXTFIELD 3 TEXTFIELD 6



To this point, if I need to supress the viewing of one of the above mentioned components (TEXTFIELD 5), the layout would adjust accordingly :



Typical Layout set to lr-tb :



TEXTFIELD 1 TEXTFIELD 2 TEXTFIELD 3

TEXTFIELD 4 TEXTFIELD 6 TEXTFIELD 7

TEXTFIELD 8



What I actually need is (tb - lr) :



TEXTFIELD 1 TEXTFIELD 4 TEXTFIELD 8

TEXTFIELD 2 TEXTFIELD 6

TEXTFIELD 3 TEXTFIELD 7



I have tried some variations of having each TEXTFIELD on it's own subform and then using addInstance, moveInstance, removeInstance methods in an attempt to move fields from one subform to another but I have not been successful. Can you please let me know if this is at all possible?



Thanks in advance.



Shane McCullough
0 Replies