simple form

This is a simple form with very basic conditional logic.

Form

wanna fill out some required fields? noyes


Form Code

wanna fill out some required fields? [radio radio-show-more default:1 "no" "yes"]
[group more]
  <label> Your Name (required)
    [text* your-name] </label>
  <label> Your Email (required)
    [email* your-email] </label>
[/group]
[group no-more][/group]

<label> Subject
    [text your-subject] </label>

<label> Your Message
    [textarea your-message] </label>

[submit "Send"]

Email Body

[more]
  <p>Thanks for filling out these required fields:</p>
  <p>
    Your Name: <strong>[your-name]</strong><br>
    Your email: <strong>[your-email]</strong>
  </p>
[/more][no-more]
  <p>Looks like you didn't want to fill out any required fields. That's fine. As long as a required field isn't visible during submission, it will not trigger any validation errors.</p>  
[/no-more]
<p>
  Here are the non-required fields that you might have filled out:
</p>
<p>
  Subject: <strong>[your-subject]</strong><br>
  Your Message: <strong>[your-message]</strong>
</p>

Conditional Fields (Text)

show [more] if [radio-show-more] equals "yes"
show [no-more] if [radio-show-more] not equals "yes"