# Forms

## General

<div align="center"><img src="https://1747244357-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MN83_a4SxUzhnC6dsXE%2F-MNF80h8yj4g4uk2Ppdb%2F-MNF94mECfiSEj1eOV90%2Fimage.png?alt=media&#x26;token=493e0b8d-76bd-4b88-bf8b-876444b7be86" alt=""></div>

```markup
<form>
    <label for="text" class="form-label">Textbox</label>
    <div class="help-block">Help text block</div>
    <input type="text" id="text" placeholder="Placeholder text...">
</form>
```

## Validation

![](https://1747244357-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MN83_a4SxUzhnC6dsXE%2F-MNF80h8yj4g4uk2Ppdb%2F-MNF9QDEQ3NN_OkKbvia%2Fimage.png?alt=media\&token=1502caa0-a9f7-4b60-bb81-3006efa74685)

```markup
<form>
    <label for="text" class="form-label">Error <span class="error-color">*</span></label>
    <input type="text" id="text" required>
    <div class="field-validation-error">Error text</div>
</form>
```

## Validated

![](https://1747244357-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MN83_a4SxUzhnC6dsXE%2F-MNF80h8yj4g4uk2Ppdb%2F-MNFAM_wecx4uGUOfOhv%2Fimage.png?alt=media\&token=b61aaeab-aac6-4d6e-8981-957e5ead3e3a)

```markup
<form>
   <label for="text" class="form-label">Validated <span class="error-color">*</span></label>
   <div class="form-validate-wrap">
      <input type="text" id="text" required value="Validated">
      <i class="fa fa-check-circle" aria-hidden="true"></i>
   </div>
</form>
```

## Checkbox

```markup
<label class="cb-wrap">
    <input type="checkbox"> Checkbox
    <span class="checkmark"></span>
</label>
```

## Radio

```markup
<label class="rb-wrap">
    <input type="radio" name="radio"> Radio 1
    <span class="radiobtn"></span>
</label>
```

## Success!

![](https://1747244357-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MN83_a4SxUzhnC6dsXE%2F-MNFBJUnK-4UGeg3IK2v%2F-MNFBTEJIg1MZ1Zg_owF%2Fimage.png?alt=media\&token=9625c802-f3db-40d7-9cd6-845e91bc4d30)

```markup
<div class="text-center">

   <svg class="checkmark-svg" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 52 52">
      <circle class="checkmark__circle" cx="26" cy="26" r="25" fill="none" />
      <path class="checkmark__check" fill="none" d="M14.1 27.2l7.1 7.2 16.7-16.8" />
   </svg>

   <h4 class="success-color">Oh yhea, you did it!</h4>

</div>
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.iglootheme.com/extending/front-end-ui/forms.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
