I am trying to create a form with four fields. I've done that, named the fields and selected the type of field. I clicked on next and then I got the following error:
"The following errors occured while processing your form input.
You did not enter one or more of the required fields. Please go back and try again."
I have successfully created one form before and everything was OK. Can anyone help please?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I've just found that my process.php contains all the information for my first form and that this is why I'm getting the error message. What do I do now to create a second form?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I'm not sure what you mean. If you have 2 forms then you have 2 processor.php files. If you are trying to put both forms in the same folder then of course you can not have 2 processor.php files in the same location. Either change the name of one of the files (must be changed in form.html also) or move one of the forms to another folder.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
This is the problem. I'm going to the index.php page of formgen to create a new form and I've asked for 4 fields in the new form. The error occurs when I enter the details for the four fields and then click on next. I'm not sure how the program works so I've just assumed that it must be something to do with the process.php file. There is no option for creating a new folder for each form. Do I need to do this first and then copy index.php to the new folder?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
1.) You should update to 2.09 at the very least. Version 3.0 is the latest.
2.) Required fields are defined in the process.php for versions below 3.0 so don't bother looking in the processor.php because the file does not exist (name changed in version 3.0).
3.) When generating a form you need to follow the sequence defined by the GUI. It has been many years since I used 2.08 so forgive me for not being familiar with the exact sequence.
4.) If you have inadvertently moved or modified anything in the generator folder then you must reinstall the generator. When you complete a form you will only copy files and folders from the use/formname/*/* folders and nothing else.
Send me an email with the URL to your generator so I can see it in action. Do not put this information in the forum.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
When you create a form you choose to make entries required or not. If you did this then changed your mind then you can edit the form.html file. The required field indicator is located near the end of the file and looks like this.
if (validateField('field_1','fieldBox_1','menu',1)
The last ",1" indicates a required field. The next example indicates a field that is not required.
if (validateField('field_4','fieldBox_4','checkbox',0)
Not the ",0" in place of the ",1".
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
If you changed you mind while genrating the form there may have been some confusion when the form was finalized into the zip file. The form.html file has a section of Java near the end that controls the required field option.
Example:
if (validateField('field_4','fieldBox_4','email',1) == false)
retVal=false;
if (validateField('field_5','fieldBox_5','hidden',0) == false)
retVal=false;
The email field is required as indicated by the 1 right after email. The hidden field is not required as indicated by the 0 right after the hidden.
Any field can be change from required to not-required by changing the 1 to a 0.
Any field can be change from not-required to required by changing the 0 to a 1.
Some fields do not have the option to be required so don't go crazy if the change fails for certain field types.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I am trying to create a form with four fields. I've done that, named the fields and selected the type of field. I clicked on next and then I got the following error:
"The following errors occured while processing your form input.
You did not enter one or more of the required fields. Please go back and try again."
I have successfully created one form before and everything was OK. Can anyone help please?
I've just found that my process.php contains all the information for my first form and that this is why I'm getting the error message. What do I do now to create a second form?
I'm not sure what you mean. If you have 2 forms then you have 2 processor.php files. If you are trying to put both forms in the same folder then of course you can not have 2 processor.php files in the same location. Either change the name of one of the files (must be changed in form.html also) or move one of the forms to another folder.
This is the problem. I'm going to the index.php page of formgen to create a new form and I've asked for 4 fields in the new form. The error occurs when I enter the details for the four fields and then click on next. I'm not sure how the program works so I've just assumed that it must be something to do with the process.php file. There is no option for creating a new folder for each form. Do I need to do this first and then copy index.php to the new folder?
What version of the generator are you using?
phpFormGenerator 2.08
1.) You should update to 2.09 at the very least. Version 3.0 is the latest.
2.) Required fields are defined in the process.php for versions below 3.0 so don't bother looking in the processor.php because the file does not exist (name changed in version 3.0).
3.) When generating a form you need to follow the sequence defined by the GUI. It has been many years since I used 2.08 so forgive me for not being familiar with the exact sequence.
4.) If you have inadvertently moved or modified anything in the generator folder then you must reinstall the generator. When you complete a form you will only copy files and folders from the use/formname/*/* folders and nothing else.
Send me an email with the URL to your generator so I can see it in action. Do not put this information in the forum.
When you create a form you choose to make entries required or not. If you did this then changed your mind then you can edit the form.html file. The required field indicator is located near the end of the file and looks like this.
if (validateField('field_1','fieldBox_1','menu',1)
The last ",1" indicates a required field. The next example indicates a field that is not required.
if (validateField('field_4','fieldBox_4','checkbox',0)
Not the ",0" in place of the ",1".
I have this problem too;
The following errors occured while processing your form input.
You did not enter one or more of the required fields. Please go back and try again.
The problem is I fill out all the fields before submitting and still get the same problem??
Brooke
If you changed you mind while genrating the form there may have been some confusion when the form was finalized into the zip file. The form.html file has a section of Java near the end that controls the required field option.
Example:
if (validateField('field_4','fieldBox_4','email',1) == false)
retVal=false;
if (validateField('field_5','fieldBox_5','hidden',0) == false)
retVal=false;
The email field is required as indicated by the 1 right after email. The hidden field is not required as indicated by the 0 right after the hidden.
Any field can be change from required to not-required by changing the 1 to a 0.
Any field can be change from not-required to required by changing the 0 to a 1.
Some fields do not have the option to be required so don't go crazy if the change fails for certain field types.