complete form not displaying after...

User 345797 Photo


Registered User
48 posts

Hi,
I have a long form which I have broken up into sections using the formToWizard script. I am also using validationEngine for validating before the user leaves that particular section of the web page. They leave that section with a next button. Everything works fine until they press the submit button at the end. If the submit button detects an error, the user is taken back to the top of the form but the submit button now appears at the bottom of the first section of the form as well as the next button. But when the next button is pressed, the page displayed is blank. The error is based on information several sections beyond the first so ideally I would like to be able to have the user page to that section.

I don't have any idea where to start to look to solve this problem. Any direction would be greatly appreciated.
User 187934 Photo


Senior Advisor
20,271 posts

Can you share a link?
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
User 345797 Photo


Registered User
48 posts

aceafterfour.ca/FullRegistration2016/FullRegistration2016.html

for childid enter sar2l2. Most fields have to have a value, but it doesn't matter what they are. When you get to regular programs (the fourth section), select Drama gr 4-8 in the drop down for Tuesday period 2, then goto the next section and press submit. You will get an error that TuesProgram2 value does not exist. I understand why that is happening so that isn't a concern. What is a concern is that I am taken back to the first section and then the subsequent pages are blank.
User 187934 Photo


Senior Advisor
20,271 posts

Are you saving this data to mysql or csv? If so try testing without those options or fix the invalid value.
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
User 345797 Photo


Registered User
48 posts

It is saving to a mysql. When I press the submit button after the error is displayed most of the data is written to the mysql db. The program information is not written The problem isn't with the invalid value, (I have corrected that and the error message goes away) it's that IF there is an error I don't catch during testing, I don't want the user to be presented with the first section and when they press the next button get nothing.

I don't want to presume that my testing will catch everything. I do know that users have the uncanny ability of stumbling upon the one error I haven't tested for. Therefore, I want to be able to at least present them the form so they can fix the problem or let them start all over (not the best scenario but better than what is happening). As it is, the http://aceafterfour.ca/FullRegistration2016.php file is what is run and displays part of the form and not the html form. So how do I ensure that form is displayed not the php file?
User 187934 Photo


Senior Advisor
20,271 posts

Have you given any thought to using the session variables of the form and redirecting users to each portion of the form as several individual forms?
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
User 345797 Photo


Registered User
48 posts

Yes, but I am running out of time. The form needs to be up and running by early May. As it is, when I have a little more time I can make those changes AND write my own update functions. But as it is, I'm hoping that I can figure out why it acts the way it does. I'm hoping that all the validation I have put into the form will cover all eventualities but I can't be sure of that.

If there isn't a way around solving this problem then I may have to go a different route.
User 187934 Photo


Senior Advisor
20,271 posts

There's probably a solution but it's tough to tell since the form has been altered so much. Have you tried removing the form builders own validation?
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
User 345797 Photo


Registered User
48 posts

Yes, I have removed validation. I am fussing because you can never tell when an error is generated that has nothing to do with validation. I am trying to cover all eventualities. At this point, I'll just make sure that the error message which kicked off this problem is addressed and the validation I have added works and then cross my fingers.

Thanks Eric.

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.