Kittrick Posted February 5, 2002 Posted February 5, 2002 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!
Garry Claridge Posted February 6, 2002 Posted February 6, 2002 For redirection use [FMP-Include] in conjunction with [FMP-If] tags. All the best. Garry
Kittrick Posted February 6, 2002 Author Posted February 6, 2002 Thank you very much Gary! I will try this.
The Bridge Posted February 6, 2002 Posted February 6, 2002 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. 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.
Kittrick Posted February 7, 2002 Author Posted February 7, 2002 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. 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. 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.
The Bridge Posted February 7, 2002 Posted February 7, 2002 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!
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now