Pre Populate an Adaptive form

Avatar

Avatar
Validate 1
Level 1
famruch
Level 1

Likes

2 likes

Total Posts

24 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile

Avatar
Validate 1
Level 1
famruch
Level 1

Likes

2 likes

Total Posts

24 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile
famruch
Level 1

15-10-2015

Hi Guys,

Does anyone know how to pre populate an AEM adaptive form using XML or any other data format from a web service? A link to an example will be sufficient.

Thanks,

Afam

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Boost 5
Employee
deepak_k_
Employee

Likes

5 likes

Total Posts

84 posts

Correct reply

32 solutions
Top badges earned
Boost 5
Boost 3
Boost 1
Affirm 5
Affirm 3
View profile

Avatar
Boost 5
Employee
deepak_k_
Employee

Likes

5 likes

Total Posts

84 posts

Correct reply

32 solutions
Top badges earned
Boost 5
Boost 3
Boost 1
Affirm 5
Affirm 3
View profile
deepak_k_
Employee

15-10-2015

If your rest API directly return the XML and is open for to public access, article already mentions the detail about how to use that:

http://localhost:4502/content/forms/af/xml.html?wcmmode=disabled&dataRef=http://localhost:8000/somes...

If the data XML url is not accessible anonymously, you can write your own code, fetch the data in in you jsp or java code and set that in request attribute which would be used for prefill. The above article mentions how to prefill from request attribute and has a sample.

 

Or is it that you want to prefill part of the form based on some user gesture like lookup address based on zip code?

Answers (2)

Answers (2)

Avatar

Avatar
Validate 1
Level 1
famruch
Level 1

Likes

2 likes

Total Posts

24 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile

Avatar
Validate 1
Level 1
famruch
Level 1

Likes

2 likes

Total Posts

24 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile
famruch
Level 1

15-10-2015

Hi Vishal,

Thanks for the article. It was helpful.

Would have liked a bit more detail in the example especially around how to invoke the rest API to pre populate the form.

Cheers,

Afam

Avatar

Avatar
Ignite 5
Employee
Vishal_G_
Employee

Likes

5 likes

Total Posts

17 posts

Correct reply

3 solutions
Top badges earned
Ignite 5
Ignite 3
Ignite 1
Boost 5
Boost 3
View profile

Avatar
Ignite 5
Employee
Vishal_G_
Employee

Likes

5 likes

Total Posts

17 posts

Correct reply

3 solutions
Top badges earned
Ignite 5
Ignite 3
Ignite 1
Boost 5
Boost 3
View profile
Vishal_G_
Employee

15-10-2015

Hi Afam,

See if the following article helps:

http://helpx.adobe.com/aem-forms/6/prepopulate-adaptive-form-fields.html

 

Regards,

Vishal