For adding the details in table, User has to click addtabledata button which display the below popup.
Add Table data popup(contains 2 textboxes,2 dropdowns and add button). After user enter/select data in this popup and click add button, user entered data will be displayed in the table.
Once the form is submitted, all the data(including attachments) will be stored in third party system via rest webservice. Approver can either reject or approve the submitted form.
User should be allowed to edit the form again if the form is rejected state.
User should be able to access the form(readonly mode) if the form is submitted or approved state
Functionality 1 :
User enter/select the following values in below input fields and submit the form. Arun Bangalore Swimming and Running Male B.E | 2009 | 98 | Bangalore Degree certificate, Provisional certificate
Functionality 2 :
If the form is in SUBMITTED state, User should access the same form which should display all the user entered information(including attachments) in readonly mode(all fields should be auto filled using rest webservice).
Functionality 3 :
If the form is in REJECTED state, User should access the same form which should display all the user entered information in edit mode. All the input fields(including attachments) should be auto filled using rest webservice. User can change the dropdown/checkbox/radiobox value or update/remove table data/attachment and submit the form again.
Modifed value :
Madan Chennai Cycling and Running Male B.E | 2010 | 97 | Chennai Degree certificate
1) Is this implementation possible in AEM adaptive forms using JSON schema ? Is there any other way to implement this three functionalities in AEM forms?
As of now, I completed functionality-1 using Basic adaptive form without JSON schema(form data model as NONE). Calling webservice from rule editor and displayed the data for dropdown/checkbox fields.
I read the below links to implement the functionality-3
As per your below point, FDM call will not set selected dropdown value. It will just populate all other input fields(other than dropdown and Checkbox values) in the form. In this case, how to read the value(User selected) in rule editor to set dropdown value. Should we make another FDM call to get user selected dropdown value(what user selected while creating the form) ?
You should also do a setValue for dropdown in later.
We have to show both all dropdown values(Bangalore, Chennai, Hyderabad) along with user selected value(Chennai) in City dropdown. As mentioned above, I am loading city dropdown values from Rule editor and user selected value via Custom Prefill class. Please let me know how to load the dropdown values along with user selected value in single place instead of loading from different places(rule editor and Custom Prefill class)
I have explained my requirement with single section only for understanding. However there are 6 to 7 sections in single form, which need to be filled by user before submitting.
We have different webservices for getting individual dropdown values and for saving each section. So we are planning to use JSON schema which help us to prefill the data for each section in functionality-3.
There are different webservices to get each section details which are entered during form submission.
With respect to functionality-3, i have the following question.
As I mentioned earlier, we are populating dropdown values by calling webservice from rule editor for functionality-1. For functionality-3, we have used prefill concept using JSON schema (com.adobe.forms.common.service.DataProvider) to display the user entered values in each section.
In Custom prefill class, we are invoking webservice call to get each section details and binding the data to form.
However we have to show both all dropdown values(which is from rule editor for functionality-1) along with user selected value. Please let me know how to display user selected value along with other dropdown values for functionality-3.