Hi,
The sample form has a button that uses the API to produce a "preview" of the DOR with the content of the adaptive form. When I implemented the button on my form it still uses the DOR of the sample form.
Below is the function as you can see the DOR for the sample is hardcoded.
/**
* Get pdf
* @2007960 {OPTIONS} drop down options
*/
function getPdf()
{
console.log("in view pdf");
window.guideBridge.getDataXML(
{
success: function(result) {
var formData = new FormData();
formData.append("dataXml",result.data);
console.log("got data"+result.data);
var settings ={
"async": true,
"url": "/content/AemFormsSamples/getdor.html",
"method": "POST",
data:{'data':result.data},
}
$.ajax(settings).done(function(response)
{
console.log("got response");
window.open(JSON.parse(response).filePath,'_blank');
})
},
error:function(guideResultObject) {console.log("got error"); },
guideState : null,
boundData : true});
}