Section | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
...
This JavaScript example is relevant to Forms only. Let's say you have a new customer registration Form A that is normally forwarded to Forms B and C to complete registration for a new user. Returning Users skip Form B and go directly to form C.
This JavaScript example will automatically submit a form if a certain control has some specific value (say “not-new”) in it when the form is loaded. This might be useful in cases where a form needs to be submitted to post the data in it, but interaction between the form and user is not necessary. If the user's input is not required, this custom JavaScript can submit the form automatically.
...
Add conditional-submit to the CSS Class property of the control whose value is to be compared.
Automatically Submit a
...
Workflow Step
Flow Workflow steps only allow for one Activity Document Action (ADA), but there are cases where you may want to configure a second ADA (such as a second email) from the same flow workflow step. If the step is at the end of the flowworkflow, you can use Flow Workflow Doc Actions to accomplish this task. For steps in the middle of a flowworkflow, create an additional linked step, set up the second ADA on the added step, and then use a script to automatically submit that step so the users will not see it. The script is similar to that for Auto-Submit a Form, but one key difference is that you will need a rule on the form that sets your conditional-submit control to the value specified in the script ("next" in the example below) on the step that should auto-submit, and then use the else action to set that control to empty on all other steps. Add conditional-submit to the CSS Class property of the control whose value is to be compared.
...
This JavaScript example will submit the form when the user presses the Enter key. If you want to do this in a flowworkflow, change SubmitView.doSubmit("Submit"); to FlowView.getFlowButton().onclick();
...
Code Block |
---|
// frevvo custom JavaScript var CustomEventHandlers = { setup: function (el) { if (CustomView.hasClass(el, 's-submit')) el.parentNode.parentNode.style.visibility='hidden'; else if (CustomView.hasClass(el, 's-cancel')) el.parentNode.parentNode.style.visibility='hidden'; } } |
Continue/Finish button on top of the
...
workflow
It is useful to have the Continue/Finish buttons at the top and bottom of lengthy forms in a workflow. The JavaScript below will display a Continue/Finish button on the top of your flowworkflow. Add a trigger control at the top of your form and set the CSS Class property to extra-submit. Now this trigger control will act as a Continue/Finish button also.
...
Write a business rule that checks the browser information populated in your text control to decide if the section of your form that contains the wet signature should be displayed or not.
Save
...
Screenflow to Task List
If two sequential workflow steps are assigned to the same person, this creates a screen flowscreenflow. Screen flows Screenflows immediately navigate a user to the next screen in the flow workflow when they click the Continue button. Sometimes you don't want a user to automatically navigate to the next screen, for example the next step might be something you want the user to perform days after the first step rather then immediately.
This custom JavaScript will save the flow workflow to the user's task list instead of displaying that next step to the user immediately. The user can then go back to their task list at a future time to resume their task. The JavaScript is effectively clicking the Save button when the flow workflow moves to second step. This will create a task in that users task list and then navigate that user to his home page.
...