Thanks Jan,

I have extended StartStepFormEngine.class

And overrident isFormSubmission() such as:

[code]@Override
protected boolean isFormSubmission() {
        boolean nativeMgnlIsFormSubmission = super.isFormSubmission();
        return customIsFormSubmission() && nativeMgnlIsFormSubmission;
}

private boolean customIsFormSubmission() {
         String isFormSubmissionParam = 
MgnlContext.getWebContext().getRequest().getParameter("isFormSubmission");
         if ("false".equals(isFormSubmissionParam) ){
                 return false;
         } else {
                 return true;
         }
}[/code]

Then passed a isFormSubmission param with value false as parameter in my form:

[code]<form action="${cmsfn.link(content.linkToOtherForm)}" method="post">
        <input type="hidden" name="isFormSubmission" id="isFormSubmission" 
value="false" />
        <input type="hidden" name="otherParamOne" id="otherParamOne" 
value="${someVar}" />
        <input type="hidden" name="otherParamTwo" id="otherParamTwo" 
value="${someOtherVar}" />
        <input type="submit" value="go go go" />
</form>[/code]

It works like a charm :)

-- 
Context is everything: 
http://forum.magnolia-cms.com/forum/thread.html?threadId=b8a09f88-416d-4b0c-956a-5f7fde9544ba


----------------------------------------------------------------
For list details, see http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to