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
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Unable to prpopulate FDM data in AEM Forms.


Level 2

Hi Team,

There is an issue already cracked my head. 

I have used an API service

to get data in forms fields. Used this form initialize event. with the required coding. But its not working. What exactly the issue here not sure. Can anyone give me some idea?



7 Replies


Level 9

Is your form data model working when you test it using the form model editor? If yes

try it invoking on the click event of a button

If the second test is successful then try using the code


Level 2
Its not working on click event. Using the below code console.log("DBFetchStarting"); var operationInfo = { "formDataModelId": "/content/dam/formsanddocuments-fdm/userprofiledata", "operationTitle": "get", "operationName": "get" }; console.log("operationInfo" + operationInfo); var inputs = { "PersonID" : "F3TCYHHSG7Q7TWXDPFDITEOG64JT8H2Q" }; console.log("DBFetchStartingstart13"); var outputs = { "LastName" : LastName, "FirstName" : FirstName }; guidelib.dataIntegrationUtils.executeOperation(operationInfo, inputs, outputs); console.log("outputs:"+FirstName); }


Level 2

And its working fine in form data model editor. Tested with Get service. by passing the required parameter value. Can you please tell me how can handle he exception in case there is an exception in API?


Employee Advisor

@surya1 If it's working in the test model there is a limited chance it will not work in the form. Make sure the type of input and response you are getting.