Skip to content

Commit

Permalink
require all fields to be filled out
Browse files Browse the repository at this point in the history
  • Loading branch information
rohitdatta committed May 8, 2016
1 parent 19cabd0 commit 5deb768
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions formspree/templates/static_pages/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -260,8 +260,8 @@ <h3>Access to submissions archive</h3>
</div>
<div class="col-1-2">
<form method="POST" action="{{config.API_ROOT}}/{{config.CONTACT_EMAIL}}">
<input type="email" name="_replyto" placeholder="Your email" />
<textarea name="message" rows="5" placeholder="Your message (when sending support requests, please include the URL to your form if that is relevant)"></textarea>
<input type="email" name="_replyto" placeholder="Your email" required />
<textarea name="message" rows="5" placeholder="Your message (when sending support requests, please include the URL to your form if that is relevant)" required></textarea>
<input type="text" name="_gotcha" style="display:none">
<input type="hidden" name="_format" value="plain" style="display:none">
<button type="submit">Send</button>
Expand Down
4 changes: 2 additions & 2 deletions formspree/templates/users/dashboard.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
</div>
<div class="col-1-2">
<form method="POST" action="{{config.API_ROOT}}/{{config.CONTACT_EMAIL}}">
<input type="email" name="_replyto" placeholder="Your email" />
<textarea name="message" rows="5" placeholder="Your message"></textarea>
<input type="email" name="_replyto" placeholder="Your email" required/>
<textarea name="message" rows="5" placeholder="Your message" required></textarea>
<input type="text" name="_gotcha" style="display:none">
<input type="hidden" name="_format" value="plain" style="display:none">
<button type="submit">Send</button>
Expand Down

0 comments on commit 5deb768

Please sign in to comment.