R
|
randall 11/11/2008 |
I never got multiple pages to work, but I did simulate multiple pages with javascript. Specifically, I used Adobe Spry v1.6.1 (which is FREE) Tabbed Panels to achieve the effect. Basically, I replaced the main part of the ourdata_add.htm with the Tabbed Panel divs. Tabbed Panels probably aren't the right solution for you but hiding data via javascript is the way to go. |
O
|
OLDmrcaseyman 11/11/2008 |
Hi I am sure we have all filled in online questionaires, I have noticed a change in style recently where instead of having a vast list of questions on one page, the questionaire is set up to have 3 or 4 questions on a screen, with a progress bar along the top of the screen and a 'Next@ button at the bottom, I assume that the next button saves the screen data each time it is clicked. Has anyone got a solution firstly for splitting up a long list of questions into multiple pages linked with the next button saving the data as it goes? also has anyone managed to build a decent progress bar, so those filling in the questionaire have a gauge of how much more they have to do? TIA George
|
D
|
drh 12/4/2008 |
Hello forum. |
S
|
swanside 12/4/2008 |
I did it in a way for a job sheet we have in work, there are five sections on it, WOrk details, Gas Details, Electric details, Risk Assessment and Work Carried out. |
D
|
drh 12/4/2008 |
Thanks for the reply swanside. I took a look at the demo link you provided. I need to look a little closer probably. It is not exactly what I am looking for, but it does give me another road to go down. I currently am trying to use the multiple view solution, but progress is slow at best. |
S
|
swanside 12/5/2008 |
What I tried to do was on the save of the first page, I wanted it to take me to the Add New for the next page and so on, so it would not keep going back to the list, but I couldnt get it to do that. |
S
|
steveh 12/5/2008 |
I've done a similar thing, I show and hide the menu options so they see the correct choices. |
T
|
thesofa author 12/5/2008 |
OK, this is what I wanted and how it works What I tried to do was on the save of the first page, I wanted it to take me to the Add New for the next page and so on, so it would not keep going back to the list, but I couldnt get it to do that.
//get id of last saved survey and make a session variable
If ($choice==a){
|
D
|
drh 12/5/2008 |
Thanks for all your replies. Frankly, I am having a difficult time getting my head around this. Maybe it's just end of week burn out. Am I correct in my understanding that you start with an add page and then use edit pages for the proceeding pages. You can put all the data in one table if you use a session variable (the record id). Each page is a view containing the applicable fields/questions. |
T
|
thesofa author 12/5/2008 |
Thanks for all your replies. Frankly, I am having a difficult time getting my head around this. Maybe it's just end of week burn out. Am I correct in my understanding that you start with an add page and then use edit pages for the proceeding pages. You can put all the data in one table if you use a session variable (the record id). Each page is a view containing the applicable fields/questions. I did not wish to save the record until the end. The last page would have a normal submit button which would save the data and redirect the user to wherever I wanted to send them. The reason I don't want to add the record until the end is because I know there will be many times when the user will change their mind and want to start over, or worse, just close out of the application. I don't want to have partial records in the database, which is what I will end up with, unless the user completes the entire process. Is it possible to go from 1 page/view to another saving the data of the previous page(s) in a variable and on the last page write the data to the database? Either I am making this more complicated (which I tend to do) or is it possible PHPR (as much as I like it) does not lend itself to this type of application? I will continue to work on this using all the good information supplied to me. Thanks, Dave
|