Highlighted

Prefill adaptive form which is created out of JSON schema model

Avatar

Avatar

rohitn62196663

Avatar

rohitn62196663

rohitn62196663

14-05-2018

I am try to prefill an adaptive form which has the data model created out of json schema. I have gone through the below url to understand how the prefill woks in adaptive forms.

Adobe Experience Manager Help | Prefill adaptive form fields https://helpx.adobe.com/experience-manager/6-2/forms/using/prepopulate-adaptive-form-fields.html#mai...

But in this example I see the form created out of an XML schema and the prefill data is also in form of xml with bound and unbound tags. In the sameway can I configure json with bound and unbound tags to prefill the form or is it mandatory to have an xml ?

Replies

Highlighted

Avatar

Avatar

Jean-foxfly

Avatar

Jean-foxfly

Jean-foxfly

28-11-2018

Hi rohitn62196663,

You can use JSON. the model is:

{

    "afBoundData": {

        "employeeData": { }

    },

    "afUnboundData": {

        "data": {

            "textbox": "Hello World",

            "numericbox": "12"

        }

    }

}

See more details in: Adobe Experience Manager Help | Prefill adaptive form fields