Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: added approve/reject api


Warning
titleDefault Buttons will Break

When using the <button> directive in HTML the default behavior type is "submit". You MUST use the phrase 'type="button"' or your button will attempt to submit the entire form to the application. This will cause an error.  An example would be <button type="button" id="mybutton">SAMPLE</button>


In addition to the File Attachment API described in Attach File Button API, you can also trigger a few other application behaviors through custom button in your form.  Those are:

...

Code Block
languagejs
titleSubmit button
<button type="button" data-submit="" id="[something]">Submit Package</button>

Approve

This will trigger the package approval without using the toolbar approval button.

Code Block
languagejs
linenumberstrue
<button type="button" data-approve="" id="[something]">Approve Package</button>

Reject

This will trigger the package rejection without using the toolbar reject button.

Code Block
languagejs
linenumberstrue
<button type="button" data-reject="" id="[something]">Reject Package</button>

Scan

This triggers the scan document behavior.  This requires the use of the Forms inMotion desktop scan listener client installed in advance on the desktop and a TWAIN compatible scanner.

...