Skip to content

  • Documentation
    • Mobile App – Signatus
    • Web App – Signatus 2 API
    • Web App – OKdokument API
    • Web App – OKdokument
  • Contact Us

Customization – Wizard SDK

  • 1. What is a Wizard
  • 2. Introduction to Wizard Javascript API Calls
  • 2.1 Integration
  • 2.2 Document signing
  • 2.3 PDF Document Processing
  • 2.4 Device Features
  • 2.5 Files & Folders
  • 2.6 Application Features
  • 2.7 System Utilities
  • 3. Example: Simple process

Customization – PDF & Form Preparation

  • PDF Forms creation
  • 1. Tags
  • 2. Acrofields
  • 3. Sample document

Integration – REST API

  • 1. Introduction
  • 2. Download
  • 3. Upload

Integration – App-to-App

  • 1. Introduction
  • 2. How does it work?
  • 3. START-ACTIVITY-FOR-RESULT (APP – SIGNATUS – APP)
  • 4. Sending data to Master Wizard via Intent
  • 5. Runtime Configuration Parameters (Display, Fields, Signing Process)

Hardware

  • 1. Android
  • 2. iOS / iPadOS
  • 3. Windows

Signatus user manual

  • 1. Introduction
  • 2. Main menu
  • 3. Signing
  • 4. Submit signed document
  • 5. Settings in detail
  • 6. Example Wizard
View Categories
  • Home
  • Documentation
  • Mobile App - Signatus
  • Customization – Wizard SDK
  • 2. Introduction to Wizard Javascript API Calls

2. Introduction to Wizard Javascript API Calls

Use the provided ExampleWizard.zip and other sample wizards included with Signatus as a reference when building your own wizard.

Most JavaScript functions in the Wizard SDK accept their input as a JSON object, unless stated otherwise. Instructions for including the SDK library in your wizard are described in the previous section. Required JSON keys are marked with an asterisk (*).

Wizards are supported in the Android, Windows, and iOS versions of the Signatus native application. Not every API call is available on every platform—platform support is listed in the heading of each API call.

As wizard support was extended to Windows and iOS, the SDK was updated to support asynchronous execution in addition to synchronous calls.

Synchronous-to-asynchronous wrapper for Windows and iOS compatibility #

Some SDK functions are synchronous and return a result immediately. Because synchronous calls are not supported on Windows, the SDK provides the optional call parameter. When call is specified, the function behaves asynchronously and returns the result via the named callback function. The callback receives a JSON result object.

#

Example using getInfo:

  • Synchronous call:
let info = getInfo({"code":"Version"});
// info = 3.15.17
  • Asynchronous call:
getInfo({"code":"Version","call":"onVersion"})

function onVersion (res) {
   let resul = JSON.parse(res);
}

This triggers the callback function onVersion passing result

{
	"parameter": {
		"status": "OK",
		"message": "",
		"data": "3.15.7"
	}
}

Pass-through Parameters #

The SDK javascript function accepts an optional object named parameter .This object acts as a transparent data carrier (metadata). Any properties defined within this object are preserved and returned back to the specified callback function upon completion.

Usage Pattern #

This is particularly useful for UI state management, such as identifying which input field triggered the recognition when multiple fields share the same callback handler.

Example :

const arg = {
  "parameter": {
      "inputid" : "text1"
  },
  "call" : "onRecognition"
};
startSpeechRecognition(arg);

/**
 * callback function for startSpeechRecognitionfunction
 * @param res - result in string format
 */
function onRecognition(res) {
    const result = JSON.parse(res);
    $("#"+result.inputid).val(result.parameter);
    // where 
    // result.inputid = returned from parameter argument
    // result.parameter = value of recognized text from speech recognition
}

Result example :

{
	"inputid": "text1",
	"parameter": "Recognized input value"
}

Updated on 05/02/2026
1. What is a Wizard2.1 Integration
Table of Contents
  • Synchronous-to-asynchronous wrapper for Windows and iOS compatibility
  • Pass-through Parameters
  • Usage Pattern
  • Documentation
    • Mobile App – Signatus
    • Web App – Signatus 2 API
    • Web App – OKdokument API
    • Web App – OKdokument
  • Contact Us
Proudly powered by WordPress