Developer forum

Forum » CMS - Standard features » Decode email address from form

Decode email address from form

Kurt Moskjær Andersen
Reply

I need to get the submitted email address from a form, and I'm doing it with <!--@Form.Fields.order_catalogue_Email.Value--> on the confirmation template, which is a plain html-file located in Files -> Templates -> DataManagement -> Forms.

The email is encoded though and I need it decoded, in order to use it as an identifier with a specific affiliate network.

Any ideas on how to achieve this?

EDIT: I tried using the .Raw() suffix, but without any luck


Replies

 
Nicolai Høeg Pedersen
Reply
This post has been marked as an answer

Hi Kurt

Encoded how?

You have some encode and decode extensions you can use: http://templates.dynamicweb.com/TemplateTags/Dynamicweb-template-tags/General-tags/Tag-extensions.aspx

Votes for this answer: 1
 
Kurt Moskjær Andersen
Reply

Well, the email address is coded like &#116;&#101;&#115;&#116;&#116;&#101;&#115;&#116;&#64;&#116;&#101;&#115;&#116;&#116;&#101;&#115;&#116;&#46;&#100;&#107; and I need the raw email address.

The network have solved the problem at their end, though, so I mark it as solved :)

 
Nicolai Høeg Pedersen
Reply
This post has been marked as an answer

Ok. This is html encoded email address.

You can disable that in MC, Security. and then the email will look right.

Or use the html decode extension from the link above.

Votes for this answer: 1
 
Kurt Moskjær Andersen
Reply

Well, the html decode extension is not mentioned at the link, only .HtmlEncoded :)

 

You must be logged in to post in the forum