Hi,
I am working on an adaptive form 6.3.
I am working on the scenario,
The first 2 steps, I have achieved it by writing custom submit action.But I don't have clue how to get back the value from service and display that in the adaptive form.
Can someone please guide me in that approach.
Regards,
Hari
Note:
I am using AEM repository for storing
Solved! Go to Solution.
Views
Replies
Total Likes
Hi Hari,
Try using the guideBirdge API here, maybe you can set the id returned from your service in a form hidden field and on guideBridge.submit success, you may just show the field value in the js alert. Below is an approach that I tried :
guideBridge.submit({
validate: false,
error : function (guideResultObject) {//log something
},
success : function (guideResultObject) {alert(hidden_id.value);
location.href = "http://www.example.com/ThankYou.html";
}});
API reference : Adaptive Forms Class: GuideBridge
Thanks,
Mayank
Views
Replies
Total Likes
Hi Hari,
Do you want to display the data returned from the service in the form itself or you want to have it some new page like a Thank you Page?
Please share details on service, form structure and how the data is residing currently in the crx?
-Mayank Gandhi
Views
Replies
Total Likes
Sounds like Prepopulating Form with Service data - do we have docs for this?
Views
Replies
Total Likes
Hi Mayank,
Thanks for your reply..
On clicking of submit button from adaptive form-->A node will be created in the repository with unique ID-->The service will return the unique ID,which need to be displayed as "popup" to the user.
Service -
I am using sling.getservice to connect my service from post.POST.jsp
Form structure: text field with submit button at the bottom
CRX: Form data are stored as individual node of type -->sling:folder
-Hari
Views
Replies
Total Likes
Hi Scott,
Yes, we do have documents around pre-fill.
Adobe Experience Manager Help | Prefill adaptive form fields
Populating a Form Using the Prefill Service in Adobe Experience Manager |
AEM 6.0 Forms Help | Introduction to prepopulating adaptive form fields
Views
Replies
Total Likes
Hi Hari,
Try using the guideBirdge API here, maybe you can set the id returned from your service in a form hidden field and on guideBridge.submit success, you may just show the field value in the js alert. Below is an approach that I tried :
guideBridge.submit({
validate: false,
error : function (guideResultObject) {//log something
},
success : function (guideResultObject) {alert(hidden_id.value);
location.href = "http://www.example.com/ThankYou.html";
}});
API reference : Adaptive Forms Class: GuideBridge
Thanks,
Mayank
Views
Replies
Total Likes
Hi Hari,
Any updates on this?
Views
Replies
Total Likes