What is URL Scheme?

At the simplest level, a custom URL scheme allows users to open an app from other apps. But the true power of URL schemes is in the ability to perform specific actions as an app opens.

What can you do with URL scheme in Mi-Form App?

When you install mi-form app, the app itself will register a Custom URL Scheme name as miforms://. More than simply launching the app, you can provide a set of commands to instruct the app perform specific actions. The commands are formatted as a JSON string. Below are examples that you can launch mi-form app and pass some specific commands.

1- Launch the app


2- Launch the app and auto load a form


    "af" is stand for auto form id. You can replace 78228 with a real form id that you can get during design the form

3- Launch the app and auto load a session

    miforms://?cmd={"as": "38"}

    "au" is stand for auto session id. You can replace 38 with a form sever session id.

4- Launch the app, auto load a form, and prefill some data

    miforms://?cmd={"af": 78228, "fv": [{"fn": "first name"}]

    "fv" is stand for form values. The value will be an array of pair key/value. Key will represent for a field name and value is the filed value.

This in only the beginning of what you can do with the URL Scheme. To find out more details see the Mi-Forms documents.