The following warnings occurred: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.28 (Linux)
|
Form Problem? - 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: Form Problem? (/showthread.php?tid=501) |
Form Problem? - frostyintrepid - Feb 6th, 2010 Hi All I have this puzzling problem across all my forms. Please see the following snippet taken off a form. <td height="40"><strong>Club / School : </strong> </td> <td> <SELECT NAME="select"> <option value="" selected>- SELECT A CLUB / SCHOOL -</option> <option value="ACJC">Anglo Chinese Junior College</option> <option value="Admiralty Secondary">Admiralty Secondary School</option> <option value="AISS">Ahmad Ibrahim Secondary School</option> In the formtools database, I would presume Option Value is selected but it doesn't. Anglo Chinese Junior College shows up instead of ACJC. Appreciate some help here. Thanks! RE: Form Problem? - Ben - Feb 6th, 2010 Hey Frosty, I guess I don't quite see the problem: shouldn't "Anglo Chines Junior College" show up? That's the display text for the select box option, so Form Tools will use it - not the actual value attribute of the option. But if you want to just see the select box option values instead of the display texts, you can edit the Field Option Group for that field and update the display text to be the same as the display value. All the best! - Ben RE: Form Problem? - frostyintrepid - Feb 6th, 2010 Hi Ben I would like actually like to have ACJC showing up in the database instead of Anglo Chines Junior College. Will give that a try (Feb 6th, 2010, 10:27 PM)Ben Wrote: Hey Frosty, Hi Ben This is getting quite confusing for me. Any chance for me to use the Field Value instead of Display Text? RE: Form Problem? - frostyintrepid - Feb 7th, 2010 Hi Ben I am not particularly sure what went wrong but it became the same for most fields using dropdown box after upgrading to core final version 2.0 Hope you can advise me further on this issue. Thanks! RE: Form Problem? - Ben - Feb 7th, 2010 Hey Frosty, Sorry...! I actually don't quite follow you. It became "the same"? Form Tools will always separate dropdown, checkbox and radio buttons into pairs: the value passed by the form, and the display texts for each value. This is just the way those form fields work. So if you need the value and display texts to be the same, you'll need to edit each and every Field Option Group to make them the same. Hope this helps - Ben RE: Form Problem? - frostyintrepid - Feb 8th, 2010 Hi Ben Maybe a screenshot might help clear things up a little here. In the database, it shows the display text for each submission. However, it is showing the field text before upgrading the core version. In short, when I export the values in excel format, it shows up as Anglo Chinese Junior College instead of ACJC and that's exactly what I don't want to see happen. (Feb 7th, 2010, 11:13 AM)Ben Wrote: Hey Frosty, RE: Form Problem? - Ben - Feb 12th, 2010 Hmmm! Curious - thanks for the screenshot! I guess I'm a bit confused because the generated content in the Excel files should be identical before and after upgrading. The Core doesn't affect anything in the Export Manager module, so it's rather odd! The way it's behaving right now is the way it's supposed to work, but to tweak it to show the VALUE not the display value, give this thread a read: http://forums.formtools.org/showthread.php?tid=487 - Ben RE: Form Problem? - frostyintrepid - Feb 13th, 2010 Thanks Ben! It solved everything |