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
BedrockMission!

Learn more

View all

Sign in to view all badges

AEM form CRUD Operations

hitesh_m
Level 3
Level 3

Hi Experts,

I am using AEM forms for storing some content in CRX (through Submit and Store Action). 

Now , I have to do certain operations like Edit or Delete the records within the form. I know AEM suggests to use bulk editor for same but requirement is to perform operations from AEM forms itself. 

 

Any idea ?

3 Replies
TundraSteve
Level 8
Level 8

I'd need more detail before I can provide a definitive response.  To edit the content it would be fairly easy to re-render the record into the form and allow the user to make changes.  It would be much like the draft capability in the portal.  For deletion a "listing" UI would have to be created allowing for the selection of the records to be removed.

mayankg
Employee
Employee

I agree, using Save and Submit Forms portal functionality should suffice your requirement

deepak_k_
Employee
Employee

Also, in general, you should probably avoid Store Content action for production use because of the PII & Scalability concerns. Please use Form Portal Submit.

We have added few APIs to list the Portal Drafts & Submissions. I do not remember those has delete/edit API though. If not, you may have to use JCR or REST APIs for that.