Forms Overview

Clodui supports automatically form handling, which you can use for collecting user feedback, suggestions.

For Clodui to handle your HTML forms, make sure the method attribute of the form set to POST and also action attribute set to a valid URL. Don't forget to add name attributes to your input fields; Clodui uses this to save data.

Below is a sample HTML form which collects user name, email and message. Then post that data to /enquiry URL.

<form method="POST" action="/enquiry">
    <div>
        <label>Name:
            <input type="text" name="name" />
        </label>
    </div>
    <div>
        <label>Email:
            <input type="text" name="email" />
        </label>
    </div>
    <div>
        <label>Message:
            <textarea name="message" id="message" cols="30" rows="10"></textarea>
        </label>
    </div>

    <button type="submit">Submit</button>
</form>

Clodui also supports file upload with limitation of 10 MB. For this add a input with type file to your HTML form and give a name.

<input type="file" name="report" />

When the user submits the form, data sent to the URL in action attribute, Clodui collects that data automatically and saves it.

Find out how to

We use cookies to offer you a better experience and analyze site traffic. By continuing to use this website, you consent to the use of our cookies.