The following warnings occurred: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (Linux)
|
![]() |
Cannot add new fields - 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: Cannot add new fields (/showthread.php?tid=1685) |
Cannot add new fields - egeller624 - Oct 14th, 2011 I'm sure I must be overlooking something really basic, but I can't seem to add a new field to my existing external form. This is a multi-page form using the API. I click the "edit" image next to the form I want to edit and then go to the "fields" tab. This presents me with a list of all existing fields in my form. I go down to the bottom and add a field in the place I want it. Then, I go in and enter the required information (display text, form field, etc) and then click the "Update" button. When I do this, the form refreshes and the field I have just added is missing. Any ideas? Everything has been working fine with my forms so far. This particular form has been finalized and there are existing submissions. Thanks. RE: Cannot add new fields - Ben - Oct 15th, 2011 Hmmm.... From what you described, it should work exactly like that. What browser and OS are you using? Does it give any form of error message after you submit the form? - Ben RE: Cannot add new fields - egeller624 - Oct 15th, 2011 Tried it with chrome and firefox, both on winxp. No error message, the screen just refreshes but doesnt update. Oddly enough, when I tried to add a field to a single page form it worked fine. Could this be a bug with multi-page forms? Hoping a solution can be found as I have several forms with 40 or 50 fields each and not being able to add or edit fields is going to be a problem. Another thing I noticed (again, only with the multi page forms) is the field types are all showing on the edit fields screen as textbox even though they are a mix of radio buttons, dropdowns, etc and all were setup properly when the forms were first added and initialized. Thanks RE: Cannot add new fields - Ben - Oct 15th, 2011 Hi egeller, Quote:Could this be a bug with multi-page forms? 'fraid not, it uses the same page and code regardless of the form type. Quote:Another thing I noticed (again, only with the multi page forms) is the field types are all showing on the edit fields screen as textbox even though they are a mix of radio buttons, dropdowns, etc and all were setup properly when the forms were first added and initialized. Hmm... very worrying. It sounds like there may be a deeper cause. Could you try running the Database Integrity module on your installation to see if it identifies any problems? http://modules.formtools.org/database_integrity/ - Ben RE: Cannot add new fields - egeller624 - Oct 16th, 2011 All tests passed, no problems found. I was kind of hoping there would be some sort of error, at least that would point us in the right direction. RE: Cannot add new fields - Ben - Oct 17th, 2011 Drat, me too. I'm kind of out of ideas myself. Any chance you could give me temporary access to your Form Tools installation so I could log on and see the problem myself? If so, email me at ben.keen@gmail.com - Ben RE: Cannot add new fields - Ben - Oct 17th, 2011 Just to close this thread: the problem was caused by suhosin. Suhosin is a PHP extension that improves the security. One of the settings that it offers is to add a max size to POST requests. On her server, POST request size was capped at 400 items. For large forms, that isn't enough: so the Edit Form -> Fields page wasn't sending along all the information needed to update the page + database properly. - Ben |