PDA

View Full Version : [EMAIL] variable in Business Setting T&C


EdgeImpact
08-Dec-2003, 07:21 PM
I want to make a mailto link in my terms and conditions using the [EMAIL] variable but am having trouble getting it to work. I'm doing:-

!!< <a href="mailto:[EMAIL]">[EMAIL]</a> >!!

This works fine if I hardcode the email adresss in but I'd rather use the [EMAIL] variable. I've tried various things but would appreciate some advice.

Thanks

NormanRouxel
08-Dec-2003, 07:30 PM
Not at an Actinic system so I can't be sure this will help but try this:-

!!< <a href="mailto:>!![EMAIL]!!<">>!![EMAIL]!!<</a> >!!

This will move the [EMAIL] tags outside the HTML override and may work.

Norman

EdgeImpact
08-Dec-2003, 08:37 PM
Thanks Norman

The email is being addressed correctly now but the link text remains as [EMAIL] instead of its value - I can't see why because the 2nd [EMAIL] seems to be outside the html too.

Any suggestions

NormanRouxel
08-Dec-2003, 09:58 PM
Yes I see that too.

Wierd isn't it, especially as there's another [EMAIL] further down that's expanded OK.

In case the code was only looking for a single tag per line I tried putting the second [EMAIL] onto a new line and that didn't work either.

If I can make it to work I'll report back.


Ahah. Back again. Got it in time to edit this post.


This works for me (but I don't know why).

....please email us at !!<<a href=">!!mailto:[EMAIL]!!<">>!! [EMAIL]!!<</a>>!!.

It only works if I put at least 4 space characters before the last [EMAIL]. That's too wierd to be anything but a bug. Luckily these extra spaces are ignored on web-pages so everything looks OK.

Norman

EdgeImpact
11-Dec-2003, 03:33 PM
Thanks Norman - It works just fine now. Wierd about the 4 spaces