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

How to bind a different form model for the Adaptive fragment?

Avatar

Avatar
Validate 1
Level 2
nchandra
Level 2

Likes

2 likes

Total Posts

14 posts

Correct Reply

2 solutions
Top badges earned
Validate 1
Boost 1
Affirm 1
View profile

Avatar
Validate 1
Level 2
nchandra
Level 2

Likes

2 likes

Total Posts

14 posts

Correct Reply

2 solutions
Top badges earned
Validate 1
Boost 1
Affirm 1
View profile
nchandra
Level 2

04-04-2018

We are building Adaptive form with schema model as form data model. From adaptive form we are trying to break in to fragments, so it can reused by other applications. Adaptive fragments created from adaptive form is taking schema model as form data model by default. I didn't see any provision to change the form schema model like from form data model to json schema model. Only way I can see is changing from crxde.

These fragments might be reused by other apps, and they don't need the whole form data model. So we are looking create as small JSON schemas (Subset of formdatamodel) and looking to add it as form model as schema to the fragment.

Any advice will help us.

Thanks in advance.

Regards,

Chandra

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Validate 10
Level 5
DarrenBiz
Level 5

Likes

67 likes

Total Posts

205 posts

Correct Reply

37 solutions
Top badges earned
Validate 10
Validate 1
Ignite 5
Ignite 3
Ignite 1
View profile

Avatar
Validate 10
Level 5
DarrenBiz
Level 5

Likes

67 likes

Total Posts

205 posts

Correct Reply

37 solutions
Top badges earned
Validate 10
Validate 1
Ignite 5
Ignite 3
Ignite 1
View profile
DarrenBiz
Level 5

15-04-2018

Theres a couple of ways to do this. Have a look at the section "Reusable schema definitions" (JSON) [1]

With XML Schemas you can create ComplexType libraries that are linked into your main form schema [2]

Once you create the separate abstracted schema definition or ComplexType, you can associate the reusable schema into your fragment which will still be valid when you link the fragment into your main form as the schema is essentially the same.

[1] Adobe Experience Manager Help | Creating adaptive forms using JSON Schema

[2] Design and Build Reusable XML Schemas: 10 Tips

Answers (0)