Form with a Layout Grid within Layout Grid

Issues related to forms.
Post Reply
tristan
 
 
Posts: 20
Joined: Tue Dec 17, 2019 3:21 pm

Form with a Layout Grid within Layout Grid

Post by tristan »

I don't think this has been asked before ... at least I couldn't find it.

I have created a form inside a layout grid which submits data to MySQL, it works, yay!

1. It seems the default behaviour is that form fields are the full width of the column within the layout grid, there doesn't seem to be any way to override this so that I can place a lable next to the edit box (instead of on top of each other)? I am referring to within the same cell as opposed to creating additional columns.

2. Because I can't place fields where I want it makes placing a label next to a radio buttom problimatic, so I placed a two column layout grid within the existing form layout grid. This embedded layout grid appears to operate as a seperate form ... is there anyway to get it to submit data with and in the same record as the main form please?

Thankyou for taking the time to read/respond :)
tristan
 
 
Posts: 20
Joined: Tue Dec 17, 2019 3:21 pm

Re: Form with a Layout Grid within Layout Grid

Post by tristan »

Now I had played with this for over an hour, as soon as I posted my message I found that you can go into the individual properties for a form control and turn off full width ... that solves my problem!
User avatar
Pablo
 
Posts: 23234
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Form with a Layout Grid within Layout Grid

Post by Pablo »

I assume you are using layout grid as form? Because a standard form cannot be used part of layout grid, this would break the layout structure.

You can restrict the size of a layout grid with the 'maximum width' properties.

This is documented in the FAQ:
viewtopic.php?t=71391
Post Reply