How can I create a web form that just contains an email address and not all the extra fields a list may have? The default form contains all the extra fields and if I hide those fields it won't submit it.
<form action="https://xxxxxxxxx/lists/xxxxxxxxxxxx/subscribe" method="post" accept-charset="utf-8" target="_blank"> <div class="form-group"> <label>Email <span class="required">*</span></label> <input type="text" class="form-control" name="EMAIL" placeholder="" value="" required /> </div> <div class="clearfix"><!-- --></div> <div class="actions"> <button type="submit" class="btn btn-primary btn-submit">Subscribe</button> </div> <div class="clearfix"><!-- --></div> </form>
Additionally, keep in mind that from the list custom fields you can decide which field is required and which is not.From another website just take the existing form and remove the fields you don't want style as you want, add a custom webhook to the List Page you are using, in this case the Subscribe Page. That should work fine.