Garry Claridge Posted February 26, 2004 Posted February 26, 2004 Here is an example of managing a multi-page survey. Assume this is a returning user. 1. Find Survey: <html><head><title>Login</title></head> <body> <form action="FMPro" method="POST"> <input type="hidden" name="-db" value="surveys.fp5"> <input type="hidden" name="-format" value="menu.html"> Enter CaseNumber: <input type="text" name="CaseNumber" value=""> <input type="submit" name="-find" value="Find Survey"> </form></body></html> 2. The Menu Page: <html><head><title>Menu</title></head> <body>Survey Sections<br> <a href="FMPro?-db=surveys.fp5&-format=section1.html&CaseNumber=[FMP-Field:CaseNumber&-find">Goto Section 1</a><br> <a href="FMPro?-db=surveys.fp5&-format=section2.html&CaseNumber=[FMP-Field:CaseNumber&-find">Goto Section 2</a><br> <a href="FMPro?-db=surveys.fp5&-format=section3.html&CaseNumber=[FMP-Field:CaseNumber&-find">Goto Section 3</a><br> <a href="FMPro?-db=surveys.fp5&-format=section4.html&CaseNumber=[FMP-Field:CaseNumber&-find">Goto Section 4</a> </body></html> 3. Section 1 Page: <html><head><title>Section 1</title></head> <body>Section One Questions<br> <form action="FMPro" method="POST"> <input type="hidden" name="-db" value="surveys.fp5"> <input type="hidden" name="-format" value="menu.html"> Question xyz1: <input type="text" name="answerxyz1" value=""> Question xyz2: <input type="text" name="answerxyz2" value=""> Question xyz3: <input type="text" name="answerxyz3" value=""> <input type="hidden" name="-recid" value="[FMP-CurrentRecID]"> <input type="submit" name="-edit" value="Update Survey"> </form></body></html> Hope this helps Garry
Steve T. Posted February 28, 2004 Posted February 28, 2004 Hi, Garry! Thanx... I love posts like this that are clear and full of generous code! (I could've used it back when I had to design my own survey a few years ago.) If this is a returning user, though, couldn't we display their previous answers (if any) in the text box? Question xyz1: <input type="text" name="answerxyz1" value="[FMP-field:answerxyz1]"> Question xyz2: <input type="text" name="answerxyz2" value="[FMP-field:answerxyz2]"> Question xyz3: <input type="text" name="answerxyz3" value="[FMP-field:answerxyz3]"> That way it will be blanks/nulls the first time through but will show actual data if they are returning to fix something. --ST
Recommended Posts
This topic is 7643 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now