Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Fetch Data from CRX and display it on Adaptive Form

Avatar

Avatar
Validate 1
Level 2
Tanmay137
Level 2

Likes

4 likes

Total Posts

28 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 3
Boost 1
View profile

Avatar
Validate 1
Level 2
Tanmay137
Level 2

Likes

4 likes

Total Posts

28 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 3
Boost 1
View profile
Tanmay137
Level 2

07-06-2018

Hello Everyone,

In our application; we submit the Adaptive Form data to CRX via. Submit button. Now, I need to fetch the same data from CRX and show it on a different adaptive form. Could any one please highlight the steps for fetching the data from CRX and display it on forms?

Thanks
TanmaySingh

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Boost 5
Level 3
lesutton1
Level 3

Likes

9 likes

Total Posts

47 posts

Correct Reply

14 solutions
Top badges earned
Boost 5
Boost 3
Boost 1
Applaud 5
Affirm 5
View profile

Avatar
Boost 5
Level 3
lesutton1
Level 3

Likes

9 likes

Total Posts

47 posts

Correct Reply

14 solutions
Top badges earned
Boost 5
Boost 3
Boost 1
Applaud 5
Affirm 5
View profile
lesutton1
Level 3

08-06-2018

Filling from CRX is relatively easy using the dataRef parameter:

http://localhost:4502/content/forms/af/xml.html?wcmmode=disabled&dataRef=crx:///tmp/fd/af/myassets/sample.xml

You need to make sure your crx payload data matches the schema / mappings of your adaptive form though.

Adobe Experience Manager Help | Prefill adaptive form fields

Answers (2)

Answers (2)

Avatar

Avatar
Validate 1
Level 2
Tanmay137
Level 2

Likes

4 likes

Total Posts

28 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 3
Boost 1
View profile

Avatar
Validate 1
Level 2
Tanmay137
Level 2

Likes

4 likes

Total Posts

28 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 3
Boost 1
View profile
Tanmay137
Level 2

08-06-2018

Thank you for your response. We are good with configuring the custom submit functionality and it's working absolutely fine.

I am only experience issue on fetching the data from CRX and then posting it to the form.

Thanks

TanmaySingh

Avatar

Avatar
Establish
Community Manager
kautuk_sahni
Community Manager

Likes

1,128 likes

Total Posts

6,131 posts

Correct Reply

1,144 solutions
Top badges earned
Establish
Coach
Originator
Contributor 2
Contributor
View profile

Avatar
Establish
Community Manager
kautuk_sahni
Community Manager

Likes

1,128 likes

Total Posts

6,131 posts

Correct Reply

1,144 solutions
Top badges earned
Establish
Coach
Originator
Contributor 2
Contributor
View profile
kautuk_sahni
Community Manager

07-06-2018

I am not an expert in AEM forms, but you can configure the submit action to store the data.

Example:- Adobe Experience Manager Help | Writing custom Submit action for adaptive forms

And if the question is to use the data to pre fill the form, then by default, prefill is allowed through crx files for all types of Adaptive Forms (XSD, XDP, JSON, and no Form Model based). Prefill is allowed only with JSON and XML files. Adobe Experience Manager Help | Prefill adaptive form fields

And if you want to render the data present in JCR, then you can write a custom service like Adobe Experience Manager Help | Querying Adobe Experience Manager Data using the JCR API or Adobe Experience Manager Help | Using Sling APIs to retrieve content from the Adobe Experience Manag...

Reference Good Read:-

Adobe Experience Manager Help | Posting Adobe Experience Manager Form Data to Custom Services

Adobe Experience Manager Help | Submitting Adobe Experience Manager form data to Java Sling Servlets