Jump to content

This topic is 8422 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

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!

Posted

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

Posted

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
Posted

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!

This topic is 8422 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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

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