Simcy Creative
  • What is Simcify
  • Requirements
  • Getting Started
  • Javascript Functions
    • Simple js Functions
    • Interaction Functions
      • Loader
      • Notifications
      • Credit Card Form
    • Helper Functions
      • Random
      • Cookies
      • Send to server(Ajax)
      • Server Responses
    • HTML helpers
      • Form Processing
      • Send onClick
      • Send onChange
      • Fetch & Display
      • Dropify
      • Switchery
      • Crop Image Input
      • Image Preview
  • PHP Functions
    • Introduction
    • Setup
    • Authentication
      • Login
      • Register
      • Forgot Password
      • Reset Password
    • Configuration
    • Email & SMS
      • SMS
        • Africa's Talking
        • Twilio
      • Email
    • Files Manager
      • Upload
      • Delete
Powered by GitBook
On this page
  • Usage
  • Response
  1. Javascript Functions
  2. HTML helpers

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.

PreviousHTML helpersNextSend onClick

Last updated 6 years ago

Server Responses