Jump 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.

Multiple format files from a single form????

Featured Replies

Is it possible to code a search form using CDML to use one of a couple format files to return the results, depending on a choice the web user makes? I have a couple search pages that are identical in format; the only difference is in their coded form info that specifies a different format file for returning the search results. It would simplify things if I could allow the user to choose which format file to use based on the kind of info they want returned (for example, online list with linked details, or printable copy, etc.)

Any ideas?

Thanks in advance,

Peter Knowles

A couple of ways exist.

One is to have a drop-down menu:

<select name="-format">

<option value="mypage1.html">Page 1</option>

<option value="mypage2.html">Page 2</option>

<option value="mypage3.html">Page 3</option>

....

</select>

Another is to use some Javascript:

In the <head>:

<script>function subform(fpage) {

document.myform.elements['-format'].value = fpage;

document.myform.submit(); }</script>

In the <body>:

....

<a href="#" onclick="subform('page1.html');">Page 1</a>

<a href="#" onclick="subform('page2.html');">Page 2</a>

<a href="#" onclick="subform('page3.html');">Page 3</a>

....

All the best.

Garry

Create an account or sign in to comment

Important Information

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

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.