The following warnings occurred: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (Linux)
|
![]() |
Forcing submission values on a multi page form - 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: Forcing submission values on a multi page form (/showthread.php?tid=373) |
Forcing submission values on a multi page form - OnlyOneN - Nov 19th, 2009 I've created a multi-page for for an event registration, and I want to force certain values on page 2 based on what the user inputs on page 1. Example: On page 1, I have a drop-down where they can select their title. On page 2, I want to force them to register for certain breakout classes (using radio buttons). Is there any issue with doing the following: if ($fields["title"] == "District Manager") { $fields["breakout_1"] = "District Manager Session"; $fields["breakout_2"] = "District Manager Session"; }; I was using javascript to set the radio button to "checked", but thought this might work better. I'm hiding the other breakouts via css, using the same technique as above. Any comments would be appreciated. Thanks, Glen RE: Forcing submission values on a multi page form - Ben - Nov 24th, 2009 Hey Glen, No, there's no problem with doing this at all. In fact, I do something very similar in some of my own forms. What I tend to do is hide entire sections by adding a class="hidden" attribute to the unwanted sections, or adding disable="disable" attributes to non-relevant fields. Never had a problem! - Ben RE: Forcing submission values on a multi page form - OnlyOneN - Nov 25th, 2009 Outstanding.... Thanks Ben! |