Expand my Community achievements bar.

SOLVED

data-nl-* tags

Avatar

Level 4

Hi Everyone,

I noticed some tags which starts with "data-nl-" in some of the default content templates.

For example, in Acquisition template 2 I found the following part.

<form>

<div><label>Your name*</label><input id="name" type="text" data-nl-ismandatory="true" data-nl-label="Name" data-nl-xpath="@lastName" data-nl-type="string" /></div>

<div><label>Your email*</label><input id="email" type="text" data-nl-ismandatory="true" data-nl-label="Email" data-nl-xpath="@email" data-nl-type="string" /></div>

<div><label>Your telephone</label><input id="phone" type="text" data-nl-label="Telephone" data-nl-xpath="@phone" data-nl-type="string" /></div>

</form>

<div class="button"><a  href="#" data-nl-type="action" data-nl-action="next">Find out more</a></div>

Is there any list of all such possible tags and there functions?

Thanks in advance.

Saikat

1 Accepted Solution

Avatar

Correct answer by
Level 10

Hi Saikat,

possible values for the 'data-nl-action' would be like:

   data-nl-type="action" data-nl-action="none"

data-nl-type="action" data-nl-action="refresh"

data-nl-type="action" data-nl-action="next"

data-nl-type="action" data-nl-action="previous"

Regards,

Amit

View solution in original post

4 Replies

Avatar

Level 10

hi Saikat,

data-nl-* are data attributes used by out of the box js library to map personalization data from your schema to form.

data-nl-ismandatory: represent if you are using the required file in your schema or form(Form will take priority)

data-nl-label: Represent value of your schema fields label or form(Form will take priority)

data-nl-xpath: Represent value of your schema fields name

data-nl-type: Represent data type of your schema fields

these values are directly related to your target schema if your form and all non-computed fields will be available to attach to your form.

In case of recipient:

TypeLabelDescription
longNumber of errorsNumber of consecutive errors when sending to this address.
longQuality ratingAddress quality rating.
booleanNo longer contact (by any channel)No longer contact (by any channel)
booleanNo longer contact by emailNo longer contact by email
booleanNo longer contact by faxNo longer contact by fax
booleanNo longer contact by SMS/MMSNo longer contact by SMS/MMS
booleanNo longer contact by phoneNo longer contact by phone
booleanNo longer contact by direct mailNo longer contact by direct mail
byteEmail formatEmail format type
longForeign key of the link 'Folder' (field 'id')Foreign key of the link 'Folder' (field 'id')
byteGenderRecipient sex
longPrimary keyInternal primary key
byteStatusStatus
memoXML memoMemo field containing data stored as XML
string 30Account #Account #
string 80Address 1 (apartment)Address 1: recipient identification detail: door or letterbox number, floor, staircase, company name...
string 80Address 2Address 2: geographical address detail: entrance, wing, building...
string 80Address 3 (Number and street)Address 3: street number and name
string 80Address 4 (county)Address 4: county or special delivery instructions, postbox...
string 75CityCity
string 80CompanyCompany name of recipient
string 3Country codeCountry code
string 128EmailEmail address
string 32FaxFax number
string 30First nameRecipient first name
string 32LanguagePreferred language of the recipient
string 50Last nameRecipient last name
string 30Middle nameMiddle name of recipient
string 32MobileMobile phone number
string 80OriginOrigin of address (broker...)
string 32PhonePhone number
string 20SalutationRecipient title
string 50State/Province codeState/Province code
string 180Text 1User defined text field
string 180Text 2User defined text field
string 180Text 3User defined text field
string 180Text 4User defined text field
string 180Text 5User defined text field
string 20Zip/PostcodeZip/Postcode
datetimeLast qualificationLast-qualification date of the address.
dateBirth dateBirth date
datetimeCreation dateCreation date
datetimeModification dateModification date
datetimeOptout TimestampOptout Timestamp

Regards,

Amit

Avatar

Level 4

Hi Amit,

Thank you very much for the response. Can you please share the possible values for data-nl-action tag? Is there any document where I can find these?

Regards,

Saikat

Avatar

Correct answer by
Level 10

Hi Saikat,

possible values for the 'data-nl-action' would be like:

   data-nl-type="action" data-nl-action="none"

data-nl-type="action" data-nl-action="refresh"

data-nl-type="action" data-nl-action="next"

data-nl-type="action" data-nl-action="previous"

Regards,

Amit