I believe Mach-II is running your default event because your form is submitting to your index.cfm page without any event specified (therefore running the default).
Why not just remove the event hidden form field and have the form action point directly to the desired event "index.cfm? action=processRequest" Brian ps, even more flexible would be to use #buildUrl("processRequest")# in the action attribute of the form On May 6, 5:00 am, jarthel <jart...@gmail.com> wrote: > I have something html code like this: > +++++++++++++ > <form id="<cfoutput>#formID#</cfoutput>" > action="index.cfm" > method="post"> > <ul> > <li class="sub"><a href="" > onClick="javascript: > document.getElementById('requestType').value='ApplicationCreate'; > document.getElementById('<cfoutput>#formID#</cfoutput>').submit(); > return true;">Create an application</a></li> > <li class="sub"><a href="index.cfm? > event=showApplicationList">Open applications</a></li> > > <!--- Insert hidden fields ---> > <input type="hidden" id="event" name="event" > value="processRequest" /> > <input type="hidden" id="requestType" > name="requestType" /> > </form> > +++++++++++++++++ > > This seems to work fine. It runs the event as mentioned in the code. > But somehow after running the event, it then runs my default event. > > I do not get this behavior when I have the event and requestType > variables in the URL. > > Has anyone experienced a similar thing? > > Is it not recommended to use event as a hidden field? > > Thank you :) > > Jayel --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to Mach-II for CFML list. To post to this group, send email to mach-ii-for-coldfusion@googlegroups.com To unsubscribe from this group, send email to mach-ii-for-coldfusion-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/mach-ii-for-coldfusion?hl=en SVN: http://greatbiztoolsllc.svn.cvsdude.com/mach-ii/ Wiki / Documentation / Tickets: http://greatbiztoolsllc.trac.cvsdude.com/mach-ii/ -~----------~----~----~----~------~----~------~--~---