BUG: Submission on type hidden broken + bugfix
Sigurður Guðbrandsson created the topic: BUG: Submission on type hidden broken + bugfix
I was trying to submit a type hidden (that I modified by adding the actual logged in user ... using the form to submit hours worked..) and I noticed that when submitting, the data in the "hidden" field wasn't saved in the database - even though it was sent. (I analyzed this with a packet sniffer)
Anyway, I found the bug.
It is in formmaker.js line 2076
Replace "adding.setAttribute("name", w_name);" with "adding.setAttribute("name", i+"_element");" and save your form.
If you have hidden elements on your form, either edit the forms and remove the hidden column or edit the form in the database itself (manually).
Please Log in or Create an account to join the conversation.
-
Topic Author
- Sigurður Guðbrandsson
- Offline
- Fresh Boarder
-
- Posts: 4
- Thank you received: 0
11 years 1 month ago
Sigurður Guðbrandsson replied the topic: Re: BUG: Submission on type hidden broken + bugfix
ugh .. seems that didn't even work (only when you're creating the forms..)
Seems the bug is possibly in the save_db function..
Please Log in or Create an account to join the conversation.
-
Topic Author
- Sigurður Guðbrandsson
- Offline
- Fresh Boarder
-
- Posts: 4
- Thank you received: 0
11 years 1 month ago
Sigurður Guðbrandsson replied the topic: Re: BUG: Submission on type hidden broken + bugfix
ugh .. I gave up and just manually entered the hidden field name in the functions.php code .... this is something that's broken.
Please Log in or Create an account to join the conversation.
-
Topic Author
- Sigurður Guðbrandsson
- Offline
- Fresh Boarder
-
- Posts: 4
- Thank you received: 0
11 years 1 month ago
Sigurður Guðbrandsson replied the topic: Re: BUG: Submission on type hidden broken + bugfix
*HINT* line number in functions.php is 3303
Please Log in or Create an account to join the conversation.
-
Topic Author
- Sigurður Guðbrandsson
- Offline
- Fresh Boarder
-
- Posts: 4
- Thank you received: 0
11 years 1 month ago
Administrator replied the topic: Re: BUG: Submission on type hidden broken + bugfix
Dear Sigurður,
Please give us a temporary admin user account (send it to [email protected]) to your site, and we will try to find out the problem of
WordPress Form
Maker.
Best regards
Web-Dorado team
Please Log in or Create an account to join the conversation.
-
- Administrator
- Offline
- Administrator
-
- Posts: 800
- Thank you received: 62
11 years 1 month ago