ConfiForms ITFFF macro restores deleted entries when editing another entry
Asked by Mandy Butschke-Lange:

I have a page with two forms (form1 and form2). When creating/editing entries in form1, they are automatically written to form2 via ITFFF macros. Likewise, when deleting entries in form1, the entries are also deleted in form2 (also via ITFFF macro). I have followed the instructions from <https://wiki.vertuna.com/pages/viewpage.action?pageId=5341742>. Basically, everything works as expected, but there is a strange phenomenon that I cannot solve.

If I delete an entry in form1, it is also deleted from form2 as expected. If I now edit another entry in form1, this change is entered in form2 as desired when saving. In addition, the entry that I had previously deleted from form1 appears again in form2. This deleted entry is not restored in form1.  
The phenomenon also occurs when I edit and save the Confluence page with the forms. Then it saves my page changes and additionally the deleted entry is restored in form2.


Answers:
author: Alex Medved _ConfiForms_
body: Hi [@Mandy Butschke-Lange](/t5/user/viewprofilepage/user-id/5371750) and welcome to this community

It is hard to advise anything without seeing a configuration, especially when it is configured to manage rows in other form

Could you share your configuration here?

Page storage format will be fine <https://confluence.atlassian.com/doc/confluence-storage-format-790796544.html>

Alex

comments: author: Mandy Butschke-Lange
body: Hi [@Alex Medved _ConfiForms_](/t5/user/viewprofilepage/user-id/781630)

thanks for the fast reply. Here is the storage format.

\<ac:layout\>\<ac:layout-section ac:type="single"\>\<ac:layout-cell\>\<ac:structured-macro ac:name="confiform" ac:schema-version="1" ac:macro-id="04dbb1ae-459e-48d0-94a9-42c0a717c6e3"\>\<ac:parameter ac:name="formName"\>form1\</ac:parameter\>\<ac:parameter ac:name="autoDelete"\>true\</ac:parameter\>\<ac:parameter ac:name="allowReads"\>true\</ac:parameter\>\<ac:rich-text-body\>  
\<p class="auto-cursor-target"\>\<br /\>\</p\>\<ac:structured-macro ac:name="confiform-entry-register" ac:schema-version="1" ac:macro-id="fb47a265-2a52-43c9-b935-4044c04a9678"\>\<ac:parameter ac:name="css"\>background-color:#442EE0\</ac:parameter\>\<ac:parameter ac:name="formName"\>form1\</ac:parameter\>\<ac:parameter ac:name="registrationButtonLabel"\>Add new item\</ac:parameter\>\<ac:rich-text-body\>  
\<p\>\<br /\>\</p\>\</ac:rich-text-body\>\</ac:structured-macro\>  
\<h3\>\<ac:structured-macro ac:name="confiform-field-definition" ac:schema-version="1" ac:macro-id="3df2812f-64fb-4398-aae4-b9b8806eebbf"\>\<ac:parameter ac:name="fieldName"\>Name\</ac:parameter\>\<ac:parameter ac:name="fieldLabel"\>Name\</ac:parameter\>\<ac:parameter ac:name="type"\>link\</ac:parameter\>\<ac:parameter ac:name="required"\>true\</ac:parameter\>\</ac:structured-macro\>\</h3\>  
\<h3\>\<ac:structured-macro ac:name="confiform-field-definition" ac:schema-version="1" ac:macro-id="8ffc1575-3ced-4e60-81f6-2988b5ae62ef"\>\<ac:parameter ac:name="fieldName"\>Link\</ac:parameter\>\<ac:parameter ac:name="fieldLabel"\>Link\</ac:parameter\>\<ac:parameter ac:name="type"\>link\</ac:parameter\>\</ac:structured-macro\>\</h3\>  
\<h3\>\<ac:structured-macro ac:name="confiform-field-definition" ac:schema-version="1" ac:macro-id="cc2537f0-1963-495a-9e28-b86fc8a36bca"\>\<ac:parameter ac:name="fieldName"\>Comment\</ac:parameter\>\<ac:parameter ac:name="fieldLabel"\>Comment\</ac:parameter\>\<ac:parameter ac:name="type"\>markdown\</ac:parameter\>\</ac:structured-macro\>\</h3\>  
\<p\>\<br /\>\</p\>\<ac:structured-macro ac:name="confiform-ifttt" ac:schema-version="1" ac:macro-id="6c26177d-98ff-486b-a984-9d744fddf2a1"\>\<ac:parameter ac:name="extras3"\>true\</ac:parameter\>\<ac:parameter ac:name="action"\>Delete ConfiForms Entry\</ac:parameter\>\<ac:parameter ac:name="event"\>onDeleted\</ac:parameter\>\<ac:parameter ac:name="title"\>entryId=\[entry.id\]\</ac:parameter\>\<ac:parameter ac:name="who"\>form2:this\</ac:parameter\>\<ac:rich-text-body\>  
\<p\>\<br /\>\</p\>\</ac:rich-text-body\>\</ac:structured-macro\>\<ac:structured-macro ac:name="confiform-ifttt" ac:schema-version="1" ac:macro-id="422b657a-4780-407e-95af-f047c10af618"\>\<ac:parameter ac:name="extras3"\>true\</ac:parameter\>\<ac:parameter ac:name="action"\>Create ConfiForms Entry\</ac:parameter\>\<ac:parameter ac:name="event"\>onModified\</ac:parameter\>\<ac:parameter ac:name="title"\>entryId=\[entry.id\]\&amp;Name=\[entry.Name\]\&amp;Link=\[entry.Link\]\&amp;Comment=\[entry.Comment\]\</ac:parameter\>\<ac:parameter ac:name="who"\>form2:this\</ac:parameter\>\<ac:rich-text-body\>  
\<p\>\<br /\>\</p\>\</ac:rich-text-body\>\</ac:structured-macro\>\<ac:structured-macro ac:name="confiform-ifttt" ac:schema-version="1" ac:macro-id="d6dfb115-2b01-4b19-9f0c-daee71bba249"\>\<ac:parameter ac:name="extras3"\>true\</ac:parameter\>\<ac:parameter ac:name="action"\>Create ConfiForms Entry\</ac:parameter\>\<ac:parameter ac:name="event"\>onCreated\</ac:parameter\>\<ac:parameter ac:name="title"\>entryId=\[entry.id\]\&amp;Name=\[entry.Name\]\&amp;Link=\[entry.Link\]\&amp;Comment=\[entry.Comment\]\</ac:parameter\>\<ac:parameter ac:name="who"\>form2:this\</ac:parameter\>\<ac:rich-text-body\>  
\<p\>\<br /\>\</p\>\</ac:rich-text-body\>\</ac:structured-macro\>\</ac:rich-text-body\>\</ac:structured-macro\>\<ac:structured-macro ac:name="confiform-table" ac:schema-version="1" ac:macro-id="6643f335-98e1-495d-a654-06a3bc003591"\>\<ac:parameter ac:name="pager"\>NO LIMIT\</ac:parameter\>\<ac:parameter ac:name="formName"\>form1\</ac:parameter\>\<ac:rich-text-body\>  
\<p class="auto-cursor-target"\>\<br /\>\<ac:structured-macro ac:name="confiform-field" ac:schema-version="1" ac:macro-id="f9370f0c-0de9-4199-a6fd-188c443b724e"\>\<ac:parameter ac:name="fieldName"\>Name\</ac:parameter\>\</ac:structured-macro\>\</p\>  
\<p class="auto-cursor-target"\>\<ac:structured-macro ac:name="confiform-field" ac:schema-version="1" ac:macro-id="85869b12-69ba-493c-8929-a0795720942e"\>\<ac:parameter ac:name="fieldName"\>Link\</ac:parameter\>\</ac:structured-macro\>\</p\>  
\<p class="auto-cursor-target"\>\<ac:structured-macro ac:name="confiform-field" ac:schema-version="1" ac:macro-id="672aaf09-ae0c-4aaf-ac32-c02c22ffc1dd"\>\<ac:parameter ac:name="fieldName"\>Comment\</ac:parameter\>\</ac:structured-macro\>\</p\>\<ac:structured-macro ac:name="confiform-entry-edit" ac:schema-version="1" ac:macro-id="9cb8874e-db59-4d44-9042-756fcd5ddda8"\>\<ac:rich-text-body\>  
\<p\>\<br /\>\</p\>\</ac:rich-text-body\>\</ac:structured-macro\>\</ac:rich-text-body\>\</ac:structured-macro\>  
\<p\>\<br /\>\</p\>  
\<p\>\<br /\>\</p\>\<ac:structured-macro ac:name="confiform" ac:schema-version="1" ac:macro-id="8be19d7c-bfef-4d0c-96b9-96d608b11710"\>\<ac:parameter ac:name="formName"\>form2\</ac:parameter\>\<ac:parameter ac:name="autoDelete"\>true\</ac:parameter\>\<ac:rich-text-body\>  
\<p class="auto-cursor-target"\>\<span\> \</span\>\<ac:structured-macro ac:name="confiform-field-definition" ac:schema-version="1" ac:macro-id="77e2f146-5556-4500-9110-a1289ea60625"\>\<ac:parameter ac:name="fieldName"\>Name\</ac:parameter\>\<ac:parameter ac:name="fieldLabel"\>Name\</ac:parameter\>\<ac:parameter ac:name="type"\>link\</ac:parameter\>\<ac:parameter ac:name="required"\>true\</ac:parameter\>\</ac:structured-macro\>\</p\>  
\<h3\>\<ac:structured-macro ac:name="confiform-field-definition" ac:schema-version="1" ac:macro-id="f2a41294-1b6e-4f41-b940-6602d15e1975"\>\<ac:parameter ac:name="fieldName"\>Link\</ac:parameter\>\<ac:parameter ac:name="fieldLabel"\>Link\</ac:parameter\>\<ac:parameter ac:name="type"\>link\</ac:parameter\>\</ac:structured-macro\>\</h3\>  
\<h3\>\<ac:structured-macro ac:name="confiform-field-definition" ac:schema-version="1" ac:macro-id="bca09c3e-4430-44ab-a934-526e6099ba05"\>\<ac:parameter ac:name="fieldName"\>Comment\</ac:parameter\>\<ac:parameter ac:name="fieldLabel"\>Comment\</ac:parameter\>\<ac:parameter ac:name="type"\>markdown\</ac:parameter\>\</ac:structured-macro\>\</h3\>\</ac:rich-text-body\>\</ac:structured-macro\>  
\<p\>\<br /\>\</p\>\<ac:structured-macro ac:name="confiform-table" ac:schema-version="1" ac:macro-id="f0c91e79-de5b-41d6-874f-6c099c3d0ea5"\>\<ac:parameter ac:name="pager"\>NO LIMIT\</ac:parameter\>\<ac:parameter ac:name="formName"\>form2\</ac:parameter\>\<ac:rich-text-body\>  
\<p class="auto-cursor-target"\>\<ac:structured-macro ac:name="confiform-field" ac:schema-version="1" ac:macro-id="bdc03b17-468d-4100-9f59-d3b7e8e96a73"\>\<ac:parameter ac:name="overrideLabel"\>ID\</ac:parameter\>\<ac:parameter ac:name="fieldName"\>id\</ac:parameter\>\<ac:parameter ac:name="withLabel"\>true\</ac:parameter\>\</ac:structured-macro\>\</p\>  
\<p class="auto-cursor-target"\>\<ac:structured-macro ac:name="confiform-field" ac:schema-version="1" ac:macro-id="f2512697-e72b-4999-92f5-398dd0826a57"\>\<ac:parameter ac:name="fieldName"\>Name\</ac:parameter\>\</ac:structured-macro\>\</p\>  
\<p class="auto-cursor-target"\>\<ac:structured-macro ac:name="confiform-field" ac:schema-version="1" ac:macro-id="732c5579-a06e-4d5f-ba7d-757752e6c045"\>\<ac:parameter ac:name="fieldName"\>Link\</ac:parameter\>\</ac:structured-macro\>\</p\>  
\<p class="auto-cursor-target"\>\<ac:structured-macro ac:name="confiform-field" ac:schema-version="1" ac:macro-id="10abc50f-e9d6-4541-af4f-2bcda42f9199"\>\<ac:parameter ac:name="fieldName"\>Comment\</ac:parameter\>\</ac:structured-macro\>\</p\>\</ac:rich-text-body\>\</ac:structured-macro\>


author: Alex Medved _ConfiForms_
body: Hi

Thanks

Looking at the storage format does not look like a you are actually using Confluence cloud (the way the question is tagged)

More like a server/data center.

Anyway

You onDelete handler is a bit incorrect

![Screenshot 2023-11-24 at 12.50.16.png](https://community.atlassian.com/t5/image/serverpage/image-id/293589iD177F266E0A529C9/image-size/large?v=v2&px=999 "Screenshot 2023-11-24 at 12.50.16.png")

Delete by filter parameter should be

```
id:[entry.id]
```

More on ConfiForms filters could be found here <https://wiki.vertuna.com/display/CONFIFORMS/ConfiForms+Filters>

Alex


author: Mandy Butschke-Lange
body: Hi [@Alex Medved _ConfiForms_](/t5/user/viewprofilepage/user-id/781630) ,

thanks for your help - it works now with your solution.

Mandy


Tags: cloud

confiforms

confluence-cloud