0 Replies Latest reply on May 6, 2011 5:49 AM by SSzretter

    Laying out Form items both vertically and horizontally?

    SSzretter

      I am trying to create a simple form in flex (flash builder 4). I placed a form container and FormItems inside. The form items are for example standard "customer" fields such as First, Last, Address, City, State, Zip.

       

      By default it lays the fields out vertically and makes the field labels right justified, which looks nice.

       

      However, I would like some of the fields to be horizontal - for example, something like this:

       

        First __________   Last ___________
      Address _____________________
        
      City ___________    St ___  Zip ____

      I tried putting the first/last in an HGroup container, but that does not quite work - I loose the right justification of the labels, looks something like this:

       

      First __________  Last ___________
      Address _____________________
      City ___________  St ___  Zip ____

      It's almost like I need a sort of table layout with colSpan ability, or ?

       

      Also, are there any good books / sites / etc that discuss user interface design / form design and similar in Flex that I can browse?