Hi,
I want to achieve following process flow for an end user when filling out a
form:
1.) After the user filled out the form he clicks on a button called
"Check/Send Data" (orbeon review button with overriden label)
2.) If the validation is ok, the user is forwarded to the "Review page"
where he is able to check his input data.
3.) The "Review page" has a button "Send" where the user is able to finally
send the form.
4.) After the form was successfully sent, the user is forwared to a "Finish
page" where he gets final information about the form.
My solution:
1.) I copied the form runner page-flow.xml and added a rule for the "Finish
page" ( finish.xhtml <
http://discuss.orbeon.com/file/n4659431/finish.xhtml>
)
<page path="/fr/([^/^.]+)/([^/^.]+)/(finish)"
default-submission="request-parameters.xml" model="finish/finish.xhtml"
view="html-view.xpl">
<setvalue ref="/*/app" matcher-group="1"/>
<setvalue ref="/*/form" matcher-group="2"/>
<setvalue ref="/*/mode">view</setvalue>
</page>
2.) I created a custom model ( custom-model.xml
<
http://discuss.orbeon.com/file/n4659431/custom-model.xml> )
<property as="xs:anyURI" name="oxf.fr.detail.model.custom.*.*"
value='oxf:/forms/custom/custom-model.xml'/>
3.) I customized the send action/button
<property as="xs:string" name="oxf.fr.detail.process.send.*.*">
save-final
then xf:send("send-form")
recover error-message("process-error")
</property>
Can you please give me some feedback about my solution. Do you have better
ideas/solutions?
A problem of my solution is that when using the browser back button to
navigate back from the "Finish page" to the "Review page" a user is able to
send the form again.
Martin
--
View this message in context:
http://discuss.orbeon.com/How-to-implement-a-custom-Finish-page-best-tp4659431.html
Sent from the Orbeon Forms community mailing list mailing list archive at Nabble.com.