So the steps are this:
- User gets to page
- Completes form
- Hits submit
- Form hides and they see a "results" page.
All I want to do is, when they hit submit, fire off a little JS function that will count up how many checkboxes they checked across about 5 different questions, then manipulate the greeting on the "results" page with information based on what they submitted. I am having a hard time accessing the submitted data via JS so I can manipulate the DOM. For various reasons, I can not just set up a redirect to different results pages on form submission and was hoping to just handle this with some DOM manipulation. Unfortunately, the documentation around using formidible with JS does not have examples using JS in ways like this, and even google searches were not providing good solutions.
Then my suggestion is that you use jQuery/JS with ajax to call a PHP program that gets information from the entry (pass the entry key or id into the PHP program)
Please login or Register to submit your answer