Home How it Works Components Validation Spam Cloud Emails Pricing Docs API Docs Sign In Try It Free

Hide/Show Logic


Hide or Show

Show or hide anything inside your <div class="kwes-form"> based on field values or any other boolean. Write the conditional logic inside a kw-show attribute.

<select name="firstField">
    <option value="Show Field Below">Show Field Below</option>
    <option value="Hide Field Below">Hide Field Below</option>
</select>

<div kw-show="fields.firstField == 'Show Field Below'">
    <input type="text" name="secondField">
</div>