Create the MyAccountForm

The form MyAccountForm is used to retrieve the partially completed adaptive form after the user has verified the application id and the mobile number associated with the application id.

my account form

When the user enters the application id and clicks the FetchApplication button, the mobile number associated with the application id is fetched from the database using the Get operation of the form data model.

This form makes use of the POST invocation of the Form Data Model to verify the mobile number using OTP. The form’s submit action is triggered on successful verification of the mobile number using the following code. We are triggering the click event of the submit button named submitForm.

NOTE

You will need to provide the API Key and the API Secret values specific to your Nexmo account in the appropriate fields of the MyAccountForm

trigger-submit

This form is associated with custom submit action that forwards the form submission to the servlet mounted on /bin/renderaf

com.adobe.aemds.guide.utils.GuideSubmitUtils.setForwardPath(slingRequest,"/bin/renderaf",null,null);

The code in the servlet mounted on /bin/renderaf forwards the request to render the storeafwithattachments adaptive form prepopulated with the saved data.

On this page