ACC data-nl tags in webapps | Adobe Higher Education
Skip to main content
david--garcia
Level 10
January 8, 2021
Beantwoord

ACC data-nl tags in webapps

  • January 8, 2021
  • 1 reactie
  • 1688 Bekeken
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

 

 

 
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.
Er kunnen geen reacties meer worden geplaatst op dit onderwerp.
Beste antwoord door Jonathon_wodnicki

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

1 reactie

Jonathon_wodnicki
Community Advisor
Community Advisor
January 11, 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

Adobe Employee
January 13, 2021
Hi Wood, thanks for your reply, found out the issue was that the schema had the view attribute set to true and therefore that prevented the database structure update, after removing the view attribute and updating it worked.