February 5, 200223 yr 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!
February 6, 200223 yr For redirection use [FMP-Include] in conjunction with [FMP-If] tags. All the best. Garry
February 6, 200223 yr 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.
February 7, 200223 yr 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. 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.
February 7, 200223 yr 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