yoni 3D
yoni 3D

Reputation: 3

How to hide the mailpoet Field in cf7 form On my WordPress site

I want to register people to mailpoet through cf7, There is an add-on that does this but is it putes Automatically a Chuckbox I want to hide the Chuckbox but everyone who completes the form will be Registered automatically.

This is the form

 <label> שם*
    [text* your-name] </label>
<label> שם משפחה*
    [text* famoly_name id:famoly_name] </label>

<label> אימייל*
    [email* your-email] </label>

<label> מספר ווצאפ*
    [tel* telfon-whatsapp] </label>

<label> עיר מגורים
    [text City] </label>

<label> שם האם*
    [text* mothers_name] </label>

<label> תאריך לידה
    [date Date_of_birth] </label>

<label> אני רוצה להרשם
   [mailpoetsignup* mailpoetsignup-564 id:123 mailpoet_list_3 default:on] </label>



[submit "הכנס אותי למבצע"]

this is the tag [mailpoetsignup* mailpoetsignup-564 id:123 mailpoet_list_3 default:on]

and This is the link to the site of the plugin

Upvotes: 0

Views: 1955

Answers (1)

Phill Healey
Phill Healey

Reputation: 3180

You can use the 'hidden' attribute to hide a field:

[hidden mailpoetsignup* mailpoetsignup-564 id:123 mailpoet_list_3 default:on]]

Alternatively try hiding the field with css:

[mailpoetsignup* mailpoetsignup-564 id:123 mailpoet_list_3 default:on class:hideit]

Then add this to your theme's css file or add it via the WordPress customizer if it's available:

.hideit{
     visibility: hidden;
     display: none;
}

Upvotes: 1

Related Questions