The following warnings occurred: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (Linux)
|
Checkboxes+text field side-by-side? - Printable Version +- Form Tools (https://forums.formtools.org) +-- Forum: Form Tools (https://forums.formtools.org/forumdisplay.php?fid=1) +--- Forum: General Discussion (https://forums.formtools.org/forumdisplay.php?fid=5) +--- Thread: Checkboxes+text field side-by-side? (/showthread.php?tid=149) |
Checkboxes+text field side-by-side? - Bryn - May 13th, 2009 Dear friends, I'm working on a fairly complex form that includes a long list of 36 (!!) checkboxes, each one with a text field on its side: As my client would like to edit each checkbox+relative field at the same time, and he would like to keep them syde-by-side as in the online form, does anybody know how can I configure/modify the field option or the main form, so to keep those checkbox+text field couples aligned on the same line? Please note that for the moment each line in the original form is coded as follows: Code: <tr><td class="answer"><label><input type="checkbox" name="esami_medici[]" value="markers_hbv" />Markers HBV</label></td><td class="answer"> Costo: <input type="text" name="costo_markers_hbv" size="8" maxlength="15" value="" /> €</td></tr> Any help would be greatly appreciated! Diego RE: Checkboxes+text field side-by-side? - Ben - May 14th, 2009 Hi Diego, I've been thinking a LOT about this: I needed exactly the same thing recently (well, the option to have a custom group of fields on a single line), but right now the code just doesn't support it. I've mapped out a Custom Fields module, but to be honest it's pretty huge and I won't be able to work on it for some time. Right now it's simply not possible to do this... (I HATE saying that!). Sorry, Diego. - Ben RE: Checkboxes+text field side-by-side? - Bryn - May 27th, 2009 (May 14th, 2009, 6:45 PM)Ben Wrote: Right now it's simply not possible to do this...In that case, my client is wondering if there is a way to show - on the form entry edit page / client side - only the entries that have been originally filled with data, so to reduce the number of fields shown on the same page. Do you think that this may be a viable solution? Thanks for your help RE: Checkboxes+text field side-by-side? - Ben - May 30th, 2009 Hey Diego, Sure, something like this should be possible. Have you looked into View filters at all? http://docs.formtools.org/userdoc/?page=view_filters This lets you restrict the actual submissions that get listed in a View. You could add one or more rules to a View that prevent submissions showing that don't have empty values in certain fields. Is that something like you had in mind? - Ben |