ACC data-nl tags in webapps

Avatar

Avatar

david_garcia1

MVP

Avatar

david_garcia1

MVP

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

wodnicki

MVP

Avatar

wodnicki

MVP

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)