Expand my Community achievements bar.

Elevate your expertise and be recognized as a true influencer! Nominations for the exclusive Adobe Community Advisor program 2023 are now OPEN.
SOLVED

How to create XDP based on adaptive form

Avatar

Level 2

I am aware that XDP can be used in the adaptive form as a data model but I need to create xdp which listens to the adaptive form data.

1 Accepted Solution

Avatar

Correct answer by
Employee Advisor

@formuser1 What I assume is you want to bind the form data to xdp. Then you need to do three things:

 

1. Fill out the Adaptive form and extract the data using GuideBridge API

guideBridge.getDataXML({
success : function (guideResultObject) {
console.log("xml data received" + guideResultObject.data);
}});

2. Use the XML obtained to convert it to XSD, you can do it manually or using the online tool but be cautious about the repeatable elements.

https://www.liquid-technologies.com/online-xml-to-xsd-converter

3. Use the XSD from (2) in the designer and bind the XDP to the schema elements using data view tab.

 

Mayank_Gandhi_0-1665988475704.png

 

1 Reply

Avatar

Correct answer by
Employee Advisor

@formuser1 What I assume is you want to bind the form data to xdp. Then you need to do three things:

 

1. Fill out the Adaptive form and extract the data using GuideBridge API

guideBridge.getDataXML({
success : function (guideResultObject) {
console.log("xml data received" + guideResultObject.data);
}});

2. Use the XML obtained to convert it to XSD, you can do it manually or using the online tool but be cautious about the repeatable elements.

https://www.liquid-technologies.com/online-xml-to-xsd-converter

3. Use the XSD from (2) in the designer and bind the XDP to the schema elements using data view tab.

 

Mayank_Gandhi_0-1665988475704.png