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.

value list redirection with CDML??

Featured Replies

Is value list redirection with CDML possible?? I have a dynamic calendar in FM 5.5 that I'm trying to translate to the web so when I choose the month and year it will trigger a redirection to the same page with the calendar on it already. This is my code:

<select name ="month">

[FMP-Option: month, list=Month]

</select>

<select name ="year">

[FMP-Option: year, list=year]

</select>

But everything I've seen so far in the HTML guides states that the redirection happens in the <option> tag which is in CDML as seen above. Anyone know of how to do this or a better alternative?? Thanks!

For redirection use [FMP-Include] in conjunction with [FMP-If] tags.

All the best.

Garry

  • Author

Thank you very much Gary! I will try this.

Edward,

Forgive me if I'm misunderstanding you, but from your post I gather that, essentially, you want a form to automatically submit when a value is selected from a valuelist.

If not, move on to the next message. wink.gif

If so, here's a form that I use myself on one of my sites. It has worked reliably for me. I've changed the names of the values for the sake of this post:

code:


<form action="FMPro" method="post" name="FormName">

<input type="hidden" name="-DB" value="db.fp5">

<input type="hidden" name="-Format" value="results.html">

<input type="hidden" name="-Error" value="error.html">

<input type="hidden" name="-Lay" value="layout">

<input type="hidden" name="-Find">

<select name="Month">

[FMP-Option:Month, list=Month]

</select>

<select name="Year" onChange="document.FormName.submit()">

[FMP-Option:Year, list=Year]

</select>

</form>

Of course, this form must be in a -Format file returned by Web Companion.

Hope this helps, if this is the help you're looking for. smile.gif

  • Author

quote:

Originally posted by The Bridge:

Edward,

Forgive me if I'm misunderstanding you, but from your post I gather that, essentially, you want a form to automatically submit when a value is selected from a valuelist.

If not, move on to the next message.
wink.gif

If so, here's a form that I use myself on one of my sites. It has worked reliably for me. I've changed the names of the values for the sake of this post:

code:


<form action="FMPro" method="post" name="FormName">

<input type="hidden" name="-DB" value="db.fp5">

<input type="hidden" name="-Format" value="results.html">

<input type="hidden" name="-Error" value="error.html">

<input type="hidden" name="-Lay" value="layout">

<input type="hidden" name="-Find">

<select name="Month">

[FMP-Option:Month, list=Month]

</select>

<select name="Year" onChange="document.FormName.submit()">

[FMP-Option:Year, list=Year]

</select>

</form>

Of course, this form must be in a -Format file returned by Web Companion.

Hope this helps, if this is the help you're looking for. smile.gif


That was EXACTLY what I was loking for. Thank you very much! I wasn't sure if it was possible because I never saw an example of it mixed with CDML. smile.gif

quote:

Originally posted by Edward Diaz:

That was EXACTLY what I was loking for. Thank you very much!

Glad to hear it works; you're welcome!

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.