Why hidden fields are not reported
I'm using WFB v2.5-5437, and couldn't figured out to report hidden fields in confirmation page or confirmation emails. Actually problem escalated in the following order.
1) Wanted to update hidden field with URL title which have been captured in script via refferer. Since hidden fields actually added up after "Submit" button in the generated code, my script did not see them even I've used $(document).ready(...), window.onload also didn't work.
2) Decided to use "display_rule" for elements that I want updated in the script but not visible on the pages. However only values of displayed items shown up in confirm page. I mean neither read-only nor not displayed elements reported via confirm-email and confirm-page
any suggestions?
1) Wanted to update hidden field with URL title which have been captured in script via refferer. Since hidden fields actually added up after "Submit" button in the generated code, my script did not see them even I've used $(document).ready(...), window.onload also didn't work.
2) Decided to use "display_rule" for elements that I want updated in the script but not visible on the pages. However only values of displayed items shown up in confirm page. I mean neither read-only nor not displayed elements reported via confirm-email and confirm-page
any suggestions?
Hi Seckin,
Are you using the [_form_results_] variable in your confirmations or individual variables for each input.
Are you using the [_form_results_] variable in your confirmations or individual variables for each input.
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.
This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
It's easy to overlook something you're not looking for.
This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
Hi Eric,
Actually, tested both. So the value of read-only or non-displayed elements does not shown up in [_form_results_] or as a individual variable such as [My_variable].
Hidden elements are shown up in [_form_results_] but I couldn't update them with HTML script as generated code creates hidden input elements at the end of the page after the Submit.
Actually, tested both. So the value of read-only or non-displayed elements does not shown up in [_form_results_] or as a individual variable such as [My_variable].
Hidden elements are shown up in [_form_results_] but I couldn't update them with HTML script as generated code creates hidden input elements at the end of the page after the Submit.
Did you add the hidden variable through the built in hidden variables that the form builder uses?
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.
This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
It's easy to overlook something you're not looking for.
This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
Yes, hidden-fields added through Form Options - Hidden fields in WFB are reported in confirm email and confirm page, however they are not available for update since auto generated code creates hidden fields after submit button. The script I've created in HTML element can't see them even I've use document.ready or window.onload. So decided to use regular text-field element with read only. This time script found the element and updated with a value however observed that read-only elements are not reported in confirmation page or email. Same issue I've faced for invisible text-field element that done via display rule. Once element is invisible, it is not reported in the confirmations.
here is the summary
- Hidden elements can't be updated through script in html element, since script can't see the hidden elements. This is because auto generated code puts hidden elements at the end after code of submit button
- Read only elements are not reported in the confirmations
- Invisible elements are not reported in the confirmations.
here is the summary
- Hidden elements can't be updated through script in html element, since script can't see the hidden elements. This is because auto generated code puts hidden elements at the end after code of submit button
- Read only elements are not reported in the confirmations
- Invisible elements are not reported in the confirmations.
What I do is use JQuery to fill a regular text element with the required value. I use regular CSS added to a html element to hide this input from the form user.
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.
This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
It's easy to overlook something you're not looking for.
This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.