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

ACC data-nl tags in webapps

Avatar

Avatar
Coach
MVP
david_garcia1
MVP

Likes

106 likes

Total Posts

183 posts

Correct Reply

41 solutions
Top badges earned
Coach
Contributor
Shape 1
Give Back 25
Give Back 10
View profile

Avatar
Coach
MVP
david_garcia1
MVP

Likes

106 likes

Total Posts

183 posts

Correct Reply

41 solutions
Top badges earned
Coach
Contributor
Shape 1
Give Back 25
Give Back 10
View profile
david_garcia1
MVP

08-01-2021

Hi All,
 
I am trying to get a webapp with the new page activity to store user submitted data (just a few marketing preferences flags) into a custom schema and I am having trouble making it work.
 
  1. I have set the webapp's document storage type to my custom schema
  2. I've updated the checkboxes to point to the xpath of the mkt flags
    1. e.g. <input class="custom-control-input" id="uni_news" type="checkbox" checked="checked" data-nl-bindto="xpath" data-nl-xpath="@uosUniversityNews" data-nl-label="University news" />
The webapps keeps popping up errors
david_garcia1_0-1610116745854.png

 

david_garcia1_1-1610116804203.png

 

 
Context: There is an existing webapp used for recipients to submit their marketing preferences to news and subscriptions, and the nl-data tags can be bound very easily to the ootb recipient schema
<div class="custom-control custom-checkbox mr-sm-2 align-items-right"><input class="custom-control-input" id="uni_news" type="checkbox" checked="checked" data-nl-checkboxbehavior="subscription" data-nl-servicename="uosUniversityNews" data-nl-servicelabel="University news" data-nl-bindto="service" /> <label class="custom-control-label" for="uni_news">Yes</label></div>
 
So now I want to modify it to write to a custom schema?? isnt data-nl tags supposed to allow me to easily achieve this? or Im I missing something.

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Contributor
MVP
wodnicki
MVP

Likes

935 likes

Total Posts

1,061 posts

Correct Reply

495 solutions
Top badges earned
Contributor
Shape 1
Give Back 100
Give Back 50
Give Back 25
View profile

Avatar
Contributor
MVP
wodnicki
MVP

Likes

935 likes

Total Posts

1,061 posts

Correct Reply

495 solutions
Top badges earned
Contributor
Shape 1
Give Back 100
Give Back 50
Give Back 25
View profile
wodnicki
MVP

10-01-2021

Hi,

 

The validation is checking that the xpath is in the webApp's Document type, set in Properties.

If the field is in a custom schema that's different from Document type, you'll have to link the two and set xpath accordingly.

 

Thanks,

-Jon

Answers (0)