Skip to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Multipage Survey

Featured Replies

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 smile.gif

Garry

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. wink.gif

--ST

  • Author

Whoops, well done smile.gif

Garry

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.