Skip to content
Devix Open Source

A form that explains itself

The same fields most sign-up forms have — with messages that say what to fix, and formatting applied when you leave the field.

Live preview
<form class="demo" id="form" novalidate>
  <div class="demo-field">
    <label class="demo-label" for="eid">Emirates ID</label>
    <input id="eid" class="demo-input" data-kind="emirates-id" placeholder="784-1990-1234567-6" autocomplete="off">
    <span class="demo-error" data-for="eid"></span>
  </div>
  <div class="demo-field">
    <label class="demo-label" for="trn">Tax registration number</label>
    <input id="trn" class="demo-input" data-kind="uae-trn" placeholder="100 1234 5678 9012" autocomplete="off">
    <span class="demo-error" data-for="trn"></span>
  </div>
  <div class="demo-field">
    <label class="demo-label" for="iban">IBAN (UAE or Saudi only)</label>
    <input id="iban" class="demo-input" data-kind="iban" data-only="AE,SA" placeholder="AE07 0331 2345 6789 0123 456" autocomplete="off">
    <span class="demo-error" data-for="iban"></span>
  </div>
  <div class="demo-row">
    <button class="demo-btn" type="submit">Submit</button>
    <button class="demo-btn" type="button" id="fill">Fill with valid data</button>
  </div>
  <p class="demo-out" id="out">Nothing submitted yet.</p>
</form>