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

AEM Forms 6.3 - Upload JSON Schema

Avatar

Avatar
Validate 25
Level 5
James_R_Green
Level 5

Likes

47 likes

Total Posts

191 posts

Correct Reply

47 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Boost 5
Boost 3
View profile

Avatar
Validate 25
Level 5
James_R_Green
Level 5

Likes

47 likes

Total Posts

191 posts

Correct Reply

47 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Boost 5
Boost 3
View profile
James_R_Green
Level 5

26-07-2018

Hi,

Has anyone managed to upload a JSON schema to AEM forms using the UI? It works for the XML XSD example here:

AEM 6.0 Forms Help | Creating adaptive forms using XML Schema

But the JSON equivalent example does not work and does not give an error (neither in the browser or AEM logs):

Adobe Experience Manager Help | Creating adaptive forms using JSON Schema

Is it just me or this functionality broken?

FYI I did workaround this by first uploading an XML schema VLT'ing the form back to my project and amending the content.xml for the xml schema to be application json then replacing the XML with a JSON schema. But would prefer to do it through the UI

Thanks,

Jim

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Springboard
Level 10
Mayank_Gandhi
Level 10

Likes

316 likes

Total Posts

1,139 posts

Correct Reply

184 solutions
Top badges earned
Springboard
Establish
Validate 1
Contributor 2
Ignite 5
View profile

Avatar
Springboard
Level 10
Mayank_Gandhi
Level 10

Likes

316 likes

Total Posts

1,139 posts

Correct Reply

184 solutions
Top badges earned
Springboard
Establish
Validate 1
Contributor 2
Ignite 5
View profile
Mayank_Gandhi
Level 10

27-07-2018

DarrenBiz is absolutely correct. All you got to do is save the file with extension as schema.json and it would let you create the form with JSON schema. You may keep the schema on the repository or just upload it via disk, either would work. I used the same sample schema given in the document and here is the result.

1536769_pastedImage_0.png

Answers (2)

Answers (2)

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

26-07-2018

I'm not sure what your specific issue is from your description, but I suspect you need to name the JSON schema with a particular name: e.g. sample.schema.json [1] [Read the little "Caution" note]

Then you can upload it using Create > File Upload and select the JSON schema file from your local. It should then appear in your forms UI.

You can then select it during form creation e.g. Form Model > Schema > Select Schema > Search in Repository > sample.schema.json during the form creation:

1536585_pastedImage_1.png

[1] Adobe Experience Manager Help | Creating an adaptive form

Avatar

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,408 likes

Total Posts

12,671 posts

Correct Reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,408 likes

Total Posts

12,671 posts

Correct Reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile
smacdonald2008
Level 10

27-07-2018

NIce Response Mayank