Expand my Community achievements bar.

SOLVED

AEM Forms 6.3 - Upload JSON Schema

Avatar

Level 7

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

1 Accepted Solution

Avatar

Correct answer by
Employee Advisor

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

View solution in original post

3 Replies

Avatar

Level 7

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

Correct answer by
Employee Advisor

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