Form Processing

A web application has many forms and writing JavaScript code to validate and submit all of them is tedious, with simcify, all forms are processed once.

All forms that will be processed with Simcify will have class simcy-form . Additional options will be added via attributes.

Attribute options are;

  • loader

    • Optional

    • "true" or "false"

    • when true, a loader will be shown when form is submitted and hidden when set false.

  • action

    • required

    • url

    • the path to where the form will be submitted

  • method

    • required

    • "POST" or "GET"

Usage

<form class="simcy-form" action="https://example.com/server" method="POST" loader="true">
    ....
</form>

Response

Responses should be JSON, please refer to the server response page for more information.

Server Responses

Last updated