<div class="dso-example-wrapper">
    <div class="dso-example-text">
        <h2>Inline validatie</h2>
    </div>
    <div class="dso-example">
        <table class="table">
            <caption>Formulierelementen met inline validatiemelding (<code>.dso-invalid</code>).</caption>
            <thead>
                <tr>
                    <th scope="col">Beschrijving</th>
                    <th scope="col">Weergave</th>
                </tr>
            </thead>
            <tbody>
                <tr>
                    <td>Veld</td>
                    <td class="plain-content">
                        <form>
                            <fieldset class="dso-form-fields">
                                <legend class="sr-only">Voorbeeld</legend>
                                <fieldset>
                                    <legend class="sr-only">Contact</legend>
                                    <div class="form-group dso-input dso-input-text">
                                        <div class="dso-label-container">
                                            <label for="name" class="control-label">
                                                Naam
                                            </label>
                                        </div>
                                        <div class="dso-field-container">
                                            <input type="text" id="name" class="form-control" />
                                            <p class="dso-help-block" id="helpTextId_name">Instructie tekst buiten een tekstveld.</p>
                                        </div>
                                    </div>
                                </fieldset>
                            </fieldset>
                        </form>
                    </td>
                </tr>
                <tr>
                    <td>Veld met fout</td>
                    <td class="plain-content">
                        <form>
                            <fieldset class="dso-form-fields">
                                <legend class="sr-only">Voorbeeld</legend>
                                <fieldset>
                                    <legend class="sr-only">Contact</legend>
                                    <div class="form-group dso-input dso-input-text dso-invalid dso-required">
                                        <div class="dso-label-container">
                                            <label for="name2" class="control-label">
                                                Naam
                                            </label>
                                        </div>
                                        <div class="dso-field-container">
                                            <input type="text" id="name2" class="form-control" required />
                                            <p class="dso-message">Verplicht veld niet gevuld</p>
                                            <p class="dso-help-block" id="helpTextId_name2">Instructie tekst buiten een tekstveld.</p>
                                        </div>
                                    </div>
                                </fieldset>
                            </fieldset>
                        </form>
                    </td>
                </tr>
            </tbody>
        </table>
    </div>
</div>
<div class="dso-example-wrapper">
  <div class="dso-example-text">
    <h2>Inline validatie</h2>
  </div>
  <div class="dso-example">
    <table class="table">
      <caption>Formulierelementen met inline validatiemelding (<code>.dso-invalid</code>).</caption>
      <thead>
        <tr>
          <th scope="col">Beschrijving</th>
          <th scope="col">Weergave</th>
        </tr>
      </thead>
      <tbody>
        <tr>
          <td>Veld</td>
          <td class="plain-content">
            {{> '@form' formWithHelpText }}
          </td>
        </tr>
        <tr>
          <td>Veld met fout</td>
          <td class="plain-content">
            {{> '@form' formWithEmptyRequiredField }}
          </td>
        </tr>
      </tbody>
    </table>
  </div>
</div>
formWithHelpText:
  formLegend: Voorbeeld
  fieldsets:
    - legend: Contact
      legendScreenreaderOnly: true
      groups:
        - id: name
          inputType: input
          type: text
          label: Naam
          helpText: Instructie tekst buiten een tekstveld.
formWithEmptyRequiredField:
  formLegend: Voorbeeld
  fieldsets:
    - legend: Contact
      legendScreenreaderOnly: true
      groups:
        - id: name2
          inputType: input
          type: text
          label: Naam
          required: true
          state: invalid
          helpText: Instructie tekst buiten een tekstveld.
          errorText: Verplicht veld niet gevuld
  • Handle: @inputs-validation
  • Preview:
  • Filesystem Path: components/_previews/_inputs-validation/inputs-validation.hbs
  • References (1): @form

There are no notes for this item.