Working from your phpFormGenerator website's home page, I created a new form with multiple pages using the phpFormGenerator 3.0 beta version. The finished form results were mostly satisfactory except that the pages do not display separately. All six of the form's pages are displayed in the browser window when I access the form using the www.mydomain/forms/form.html url. The input button "Go To Page X" appears at each of the points where there should be a page break. If you click on the "Go To Page X" button, the form display will jump to the middle of what should be that particular page number. Other than that, the form works just fine including the posting and submission functions.
Can you tell me what can be done to get each page to display separately as they are intended? Also, is it possible to enable back and forth navigation between each of the form's pages prior to submitting the form data?
Thank you in advance for your response.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Spaning multiple pages is contrary to ease of form design so phpFormgenerator uses HTML <div></div> tags to divide the form page into sections. Sections are collapsed and expanded based on the buttons you click to display the "pages" of your form. The <body> tag should include the onload=collapse_all function and the next page buttons include collapse and expand functions appropriate for the page navigation. So one of two things is going on here.
1.) The Javascript controlling collapse and expand functions is not working.
2.) The form <div> tags are not in the right place or the names are mixed up.
If you can not figure it out then you can send me a link to your zipped form and I can take a closer look.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thank you for your prompt response. The Javascript was ok. The problem was (as you suggested) that the names were mixed up - specifically it was in the names of the mainform id tags for the pages. The page numbers within a couple of the mainform id tags were out of sync. I think this happened because when creating the form using the form generator software, I tried to move one of the pages and due to a bug in the software some of the mainform id tags are not changed to reflect the repositioning of the page. I also noticed that there is a problem in trying to move individual input data fields up or down on the form. The software allows you to move a data field up or down one time only, so you cannot move a field up, for example, three positions. Like with the page moving function, when a field is moved up or down, the code is not properly changed to reflect the new position of the data field in the form, so this is another bug in the form creating software that I'm sure you will want to correct. I was able to make the correction myself by manually changing the html code. I had to change the code not only in the form.html file, but also in the processor.php file as the posting order also got out of sync when moving data fields up or down using the form generator software.
Thanks again for your help!
- Rick
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Working from your phpFormGenerator website's home page, I created a new form with multiple pages using the phpFormGenerator 3.0 beta version. The finished form results were mostly satisfactory except that the pages do not display separately. All six of the form's pages are displayed in the browser window when I access the form using the www.mydomain/forms/form.html url. The input button "Go To Page X" appears at each of the points where there should be a page break. If you click on the "Go To Page X" button, the form display will jump to the middle of what should be that particular page number. Other than that, the form works just fine including the posting and submission functions.
Can you tell me what can be done to get each page to display separately as they are intended? Also, is it possible to enable back and forth navigation between each of the form's pages prior to submitting the form data?
Thank you in advance for your response.
Spaning multiple pages is contrary to ease of form design so phpFormgenerator uses HTML <div></div> tags to divide the form page into sections. Sections are collapsed and expanded based on the buttons you click to display the "pages" of your form. The <body> tag should include the onload=collapse_all function and the next page buttons include collapse and expand functions appropriate for the page navigation. So one of two things is going on here.
1.) The Javascript controlling collapse and expand functions is not working.
2.) The form <div> tags are not in the right place or the names are mixed up.
If you can not figure it out then you can send me a link to your zipped form and I can take a closer look.
Thank you for your prompt response. The Javascript was ok. The problem was (as you suggested) that the names were mixed up - specifically it was in the names of the mainform id tags for the pages. The page numbers within a couple of the mainform id tags were out of sync. I think this happened because when creating the form using the form generator software, I tried to move one of the pages and due to a bug in the software some of the mainform id tags are not changed to reflect the repositioning of the page. I also noticed that there is a problem in trying to move individual input data fields up or down on the form. The software allows you to move a data field up or down one time only, so you cannot move a field up, for example, three positions. Like with the page moving function, when a field is moved up or down, the code is not properly changed to reflect the new position of the data field in the form, so this is another bug in the form creating software that I'm sure you will want to correct. I was able to make the correction myself by manually changing the html code. I had to change the code not only in the form.html file, but also in the processor.php file as the posting order also got out of sync when moving data fields up or down using the form generator software.
Thanks again for your help!
- Rick