I am trying to prefill an adaptive form with json which is as per the json schema which I used to create the form. For testing purpose I have create a mock prefill data in the json format in a file and I am able to read that json and prefill form using the below guideBridge api:
guideBridge.restoreGuideState({
dataRef : "file:///C:/Users/prefill.json",
success: function(guideResultObject){
console.log("prefill success");
},
error : function (guideResultObject) {
console.log("prefill error");
}
});
But in my use case I will be getting the json from a rest url and we need to send post some params to get that data. So I wrote an ajax call to get the jsonresponse. So Is there a way to include the jsonObject itself within the guideBridge.restoreGuideState api to prefill the data ? I have looked into the guidebridge documentation but didn't find anything related to this use case.