Page 1 of 1

Using onload event to move a Field Set position

Posted: Sat Feb 09, 2013 12:48 am
by Shon
I have a display with both a subfile grid and about 30 additional fields below the grid. I'm using an onload event to change the number of rows in the grid. All the fields below the grid are part of a field set. When I move the field set in designer, all the fields move with it. I added another onload event to change the 'top' value of the field set, because I need all the fields below the grid to move up based on the bottom of the grid (number of rows). When I run it, the field set moves, but all of it's fields remain in their originally designed locations. I thought that the whole purpose of the field set was to group fields relative to one another and the field set. Am I doing something wrong? Do I need to try another container? I am not using tab panels. Thanks for any help.

Re: Using onload event to move a Field Set position

Posted: Fri Mar 01, 2013 10:45 am
by David
Unfortunatley, the field set widget is not a 'true' container -- meaning that the runtime rendering does not place the widgets inside the field set component. Rather 'on top'.

That said, we have implemented 'true' containers in recent releases. Try putting the field set and all other components inside of a 'simple container layout' (found under Layouts category in the toolbox).

This is a real container that the items will render into. If you hide/move/etc. it, the contained items will go along with it.