Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

data-nl- attributes reference

Avatar

Avatar
Validate 1
Level 3
jonasn92134656
Level 3

Likes

28 likes

Total Posts

38 posts

Correct Reply

8 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 25
Boost 10
View profile

Avatar
Validate 1
Level 3
jonasn92134656
Level 3

Likes

28 likes

Total Posts

38 posts

Correct Reply

8 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 25
Boost 10
View profile
jonasn92134656
Level 3

25-03-2019

Hi,

Is there comprehensive documentation of the different data-nl-* attributes and their usage?

If not from Adobe officially, has anyone in the community assembled one?

It would really help when trouble shooting landing pages/email template problems.

Regards,

Jonas

Replies

Avatar

Avatar
Validate 1
Level 2
hansangy1377908
Level 2

Likes

14 likes

Total Posts

28 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 10
Boost 1
View profile

Avatar
Validate 1
Level 2
hansangy1377908
Level 2

Likes

14 likes

Total Posts

28 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 10
Boost 1
View profile
hansangy1377908
Level 2

03-04-2019

Hi, I have the same problem - unable to figure out how to make a checkbox value default to 'true' when it's checked.

Can someone from Adobe please help out?

Avatar

Avatar
Validate 1
Level 2
hansangy1377908
Level 2

Likes

14 likes

Total Posts

28 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 10
Boost 1
View profile

Avatar
Validate 1
Level 2
hansangy1377908
Level 2

Likes

14 likes

Total Posts

28 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 10
Boost 1
View profile
hansangy1377908
Level 2

03-04-2019

Through Trial and Error I've discovered that to get a checkbox/Radio button to pass 'True' into an underlying Boolean field (e.g. for emailBlacklist), you have to pass in value="True" as an html attribute to the radiobutton/checkbox html tag.

Not sure why that is but it works from my extensive testing, can anyone confirm?

Avatar

Avatar
Validate 1
Level 2
hansangy1377908
Level 2

Likes

14 likes

Total Posts

28 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 10
Boost 1
View profile

Avatar
Validate 1
Level 2
hansangy1377908
Level 2

Likes

14 likes

Total Posts

28 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 10
Boost 1
View profile
hansangy1377908
Level 2

08-04-2019

Also stumbled across this post  Re: data-nl-* tags

However this still doesn't answer the question of where these attributes are documented?

Avatar

Avatar
Validate 10
Level 4
davidl14970702
Level 4

Likes

30 likes

Total Posts

93 posts

Correct Reply

13 solutions
Top badges earned
Validate 10
Validate 1
Ignite 5
Ignite 3
Ignite 1
View profile

Avatar
Validate 10
Level 4
davidl14970702
Level 4

Likes

30 likes

Total Posts

93 posts

Correct Reply

13 solutions
Top badges earned
Validate 10
Validate 1
Ignite 5
Ignite 3
Ignite 1
View profile
davidl14970702
Level 4

09-04-2019

I am using this,

onclick="document.controller.setValue('/ctx/recipient/svc/<%= subscription.@serviceName%>', this.checked ? '1' : '0', '<%= subscription.@serviceName%>');

Before you get to that, I run an API to get the context of the services for this recipient. Then that object is accessible in the DOM. So if a recipient gets to my webapp, the webapp knows the services for this person and it checks the box as a default to indicate they are currently subscribed.

I don't think it's specific to adobe. all the document.controller stuff is vanilla JS. So really you just want to use things that will work as bootstrap or vanilla JS.

Also, check out the JSAPI - File (Class)

Avatar

Avatar
Validate 1
Level 3
jonasn92134656
Level 3

Likes

28 likes

Total Posts

38 posts

Correct Reply

8 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 25
Boost 10
View profile

Avatar
Validate 1
Level 3
jonasn92134656
Level 3

Likes

28 likes

Total Posts

38 posts

Correct Reply

8 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 25
Boost 10
View profile
jonasn92134656
Level 3

10-04-2019

The reply I have gotten here on the forums from Adobe reps is that it's "not allowed" to use JS (ie stuff in <% %> tags), although it's available in landing pages/fragments and all kinds of places.

I have no idea what "not allowed" means though, and it would be great to have that clarified. I think there are inconsistencies in "not allowing" JS and at the same time not having documentation for things like data-nl-attributes.

Regards,

Jonas