Plugin

Archived
Forum
(read-only)

Simple MailChimp

ExpressionEngine 2

Back to this add-on's main page
View Other Add-ons From Jeremy Worboys

     

write “enter your email” in the email field

General (Resolved)

lambdaka
lambdaka

Hi there ! the plugin work perfectly for me..

But I didn’t found how to add something in the email field..?
For example would like to put “enter your email here”.

is there a way to do that.? Maybe I missed something..

Thanks al lot !

S.

Jeremy Worboys
# 1
Developer
Jeremy Worboys

Hey,

That’s great to hear.

You can customise the fields that get created by using attr: parameters as described here.

For example, you could use

{merge:EMAIL attr:placeholder="Enter your email here..."

to add a placeholder attribute to the input.

lambdaka
# 2
lambdaka

Woaw that’ a fast answer !

it’s Perfect..

Actually I didn’t know how to use the attr:
Cause it didn’t appear in the example of the doc.


Thanks a lot !

Jeremy Worboys
# 3
Developer
Jeremy Worboys

No worries. Glad to help.

lambdaka
# 4
lambdaka

Me again..
Ok for the attr:

But actually for the “placeholder”
is there a list of all available parameters..?

How could I know the name “placeholder.. I just looked into mail chimp didn’t found it..

Thanks

Jeremy Worboys
# 5
Developer
Jeremy Worboys

The attr: param will just pass any attribute* through to the <input>. So an valid HTML attribute is valid for the attr: parameter.

* You can not override the name=”“, id=”” and required=”” attributes as these are always populated from MailChimp.

lambdaka
# 6
lambdaka

Ah ok.. I just get it.. !

I have to remember : RTFM
ahah…
Thanks