Forms Without All Fields

Michael Wilding

Active Member
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.
 
Hi

Do you want to put the form on another website or is it for the default subscribe form on your MW installation?

Cheers
 
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.

Code:
<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>

If you want to edit the embedded forms for each list page you will have to use the API and php-sdk mentioned in the embedded forms page below each form. The content of those forms is held in the DB.

@twisted1919 is far better placed to help you with that.
 
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.
Additionally, keep in mind that from the list custom fields you can decide which field is required and which is not.
 
Thanks, that worked. Not sure why it didn't work when I did it first time. We use LeadPages for a lot of our forms and when using a MW form inside it when a user submits it says that the form is being sent in an insecure way. I've never encountered this before but assume it's because we're hosting on http and not https. Is the only way to stop that happening by hosting on https?
 
Glad you got it sorted. I've never used LeadPages, are both MW & the form hosted on HTTP? not sure if LeadPages sees the destination of where the data will be posted to is the issue or where the form is hosted is the issue.
 
For anyone struggling to find Custom fields for a subscription form
Client area > hit list name > tools > custom fields
hrrp://domain/folder/customer/index.php/lists/yoursiteid/fields
 
Back
Top