Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

CONFIFORMM - synchronization of smartfield "on delete" not working properly

Marek Wilczewski May 21, 2025

Hi,

I have 2 forms:
Form1 with a smart clasifier field (ref) pointing at Form2 and text field (name)

and Form2 with smart checkbox field (group) pointing at (Form1) with a filter ref:[empty] OR ref:[entry.id]

Additionally I have 3 IFTTT (on create/change/delete) which synchronize fields in Form1 when the relation in Form2 is created.

 

In most cases everything is working fine. When I add an entry in Form2 with some elements from Form1 and save I'm not able to add the same elements to next item, when I unselect them then I can add them etc.

 

Problem start when I have an element with a relation in From2 and delete it. Then it Form1 it shows the ref field is empty, but I'm not able to add those elements to other items (like others which already have an relation). 

I think there is a bug during deletion of element in relation of smart field.

 

 

Alex Medved _ConfiForms

2 answers

1 vote
Alex Medved _ConfiForms_
Community Champion
May 21, 2025

Hi

Not sure I understand the problem you are reporting - can you set up the data and explain step by step what needs to be done to "reproduce" what you are seeing?

Alex

Marek Wilczewski May 21, 2025

Create few elements in Form1. For example elements "1", "2", "3" and "4"

Create element in Form2 and add two elements from Form1. 

When You try to create new Form2 you will see only two other elements like it should be

image.png

but. when you delete entry in from2 which will contain relation to entries from Form1 in the Forms1 you will see elements without relations. But for some reason filter will still treat them like they will having relation to something 

image.pngSo if elements in Form1 don't have any relations, why not all of them are listed? Looks like synchronization on delete is not setting them as [empty] for some reason. 

Alex Medved _ConfiForms_
Community Champion
May 26, 2025

Thank you, it helps

We have identified the issue and will include a fix in the next app update

Max Marshall June 5, 2025

I'm having the same issue...was a fix included in the latest release? Don't see anything about it in the release notes. I'd have to ask admin to update the app for us, so don't want to ask if the fix isn't there yet.

Alex Medved _ConfiForms_
Community Champion
June 9, 2025

This will be fixed in the upcoming 3.18.4

Like Max Marshall likes this
Max Marshall July 9, 2025

Alex-

I tested the "Synchronize Smart Fields" functionality with 3.18.4 using this Libraries and Books example: wiki.vertuna.com/spaces/CONFIFORMS/pages/180945550/How+to+use+the+Synchronize+smart+field+references+ConfiForms+IFTTT+action.

The delete function seems to work better, but I think I have issues with the modify function now. Looks like the records aren't synchronizing correctly after a change, changing data on the wrong record. Is it possible a new bug was introduced with the change?

Alex Medved _ConfiForms_
Community Champion
July 9, 2025

What scenario specifically is not working for you, @Max Marshall ?

Max Marshall July 9, 2025

I haven't tested everything, but one that  I notice for sure:

I have Book 1 and Book 2 and Library 1 and Library 2. When creating the records I have no issues and both books are available at both libraries and the library records reflect that correctly. When I edit the Book 1 record to remove it from Library 1, it is instead removed form library 2. Thus the book 1 record shows it available at Library 2, the library 1 record still shows Book 1 available, and library 2 no longer shows book 1 available.

Before:

before.png

Edit:

edit.png

After:

after.png

Alex Medved _ConfiForms_
Community Champion
July 10, 2025

You are right, something seems to be gone out of hands with a recent change. We aim to get this fixed in the upcoming 3.19. Sorry about that

0 votes
Marek Wilczewski May 21, 2025

<ac:structured-macro ac:macro-id="e5702422-c5c3-487e-be42-6955765a7556" ac:name="confiform" ac:schema-version="1">
<ac:parameter ac:name="formName">form1</ac:parameter>
<ac:parameter ac:name="registrationFormTitle">form1</ac:parameter>
<ac:rich-text-body>
<p>
<ac:structured-macro ac:macro-id="7ea2f659-d9d4-433c-bcc5-5dcf87dc5d7e" ac:name="confiform-field-definition" ac:schema-version="1">
<ac:parameter ac:name="fieldName">ref</ac:parameter>
<ac:parameter ac:name="fieldLabel">ref</ac:parameter>
<ac:parameter ac:name="values">[355205249:form2]field1,</ac:parameter>
<ac:parameter ac:name="type">smartclass</ac:parameter>
</ac:structured-macro>
<ac:structured-macro ac:macro-id="94f5b1fb-e625-47d6-95b5-0bf4a85df610" ac:name="confiform-field-definition" ac:schema-version="1">
<ac:parameter ac:name="fieldName">name</ac:parameter>
<ac:parameter ac:name="fieldLabel">name</ac:parameter>
<ac:parameter ac:name="values">[355205249:form2]field1,</ac:parameter>
<ac:parameter ac:name="type">text</ac:parameter>
</ac:structured-macro>
<ac:structured-macro ac:macro-id="94b9193c-b2b5-4e7d-9d37-dbcf0cb2e5fa" ac:name="confiform-field-definition-rules" ac:schema-version="1">
<ac:parameter ac:name="fieldName">ref</ac:parameter>
<ac:parameter ac:name="action">Hide field</ac:parameter>
</ac:structured-macro>
</p>
</ac:rich-text-body>
</ac:structured-macro>
<ac:structured-macro ac:macro-id="1bf8532d-ec09-40a3-9fe3-e5f09258e9f1" ac:name="confiform" ac:schema-version="1">
<ac:parameter ac:name="formName">form2</ac:parameter>
<ac:parameter ac:name="registrationFormTitle">form2</ac:parameter>
<ac:rich-text-body>
<p>
<ac:structured-macro ac:macro-id="fef8325b-9dfc-4a23-bf23-607fb6a8aca3" ac:name="confiform-field-definition" ac:schema-version="1">
<ac:parameter ac:name="fieldName">field1</ac:parameter>
<ac:parameter ac:name="fieldLabel">field1</ac:parameter>
<ac:parameter ac:name="values">[355205249|form1|name|true||]</ac:parameter>
<ac:parameter ac:name="type">smartcheckbox</ac:parameter>
</ac:structured-macro>
<ac:structured-macro ac:macro-id="2d12101f-03d6-4b8f-ab11-2f38305e3442" ac:name="confiform-field-definition-rules" ac:schema-version="1">
<ac:parameter ac:name="fieldName">field1</ac:parameter>
<ac:parameter ac:name="values">ref:[empty] OR ref:[entry.id] OR ref:</ac:parameter>
<ac:parameter ac:name="action">Apply Filter on a field</ac:parameter>
</ac:structured-macro>
</p>
<ac:structured-macro ac:macro-id="bca3d3de-8d56-4b28-9a0e-25cd52a4029b" ac:name="confiform-ifttt" ac:schema-version="1">
<ac:parameter ac:name="action">Synchronize smart field references</ac:parameter>
<ac:parameter ac:name="extras">ref</ac:parameter>
<ac:parameter ac:name="event">onModified</ac:parameter>
<ac:parameter ac:name="title">field1</ac:parameter>
<ac:parameter ac:name="who">form1</ac:parameter>
<ac:rich-text-body>
<p>
<br/>
</p>
</ac:rich-text-body>
</ac:structured-macro>
<ac:structured-macro ac:macro-id="b538cc98-7607-4d2b-b6ee-fcdb55d55c66" ac:name="confiform-ifttt" ac:schema-version="1">
<ac:parameter ac:name="action">Synchronize smart field references</ac:parameter>
<ac:parameter ac:name="extras">ref</ac:parameter>
<ac:parameter ac:name="event">onCreated</ac:parameter>
<ac:parameter ac:name="title">field1</ac:parameter>
<ac:parameter ac:name="who">form1</ac:parameter>
<ac:rich-text-body>
<p>
<br/>
</p>
</ac:rich-text-body>
</ac:structured-macro>
<ac:structured-macro ac:macro-id="f5f2f47a-d7a0-4d22-93a7-1c895f88b59f" ac:name="confiform-ifttt" ac:schema-version="1">
<ac:parameter ac:name="action">Synchronize smart field references</ac:parameter>
<ac:parameter ac:name="extras">ref</ac:parameter>
<ac:parameter ac:name="event">onDeleted</ac:parameter>
<ac:parameter ac:name="title">field1</ac:parameter>
<ac:parameter ac:name="who">form1</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:macro-id="8af95553-9c40-46c6-a3c9-92c61bbdb0c2" ac:name="confiform-entry-register" ac:schema-version="1">
<ac:parameter ac:name="formName">form2</ac:parameter>
<ac:parameter ac:name="registrationButtonLabel">add to group</ac:parameter>
<ac:rich-text-body>
<p>
<br/>
</p>
</ac:rich-text-body>
</ac:structured-macro>
<ac:structured-macro ac:macro-id="9c77afa0-1543-4dcf-9e80-9b54e76a580f" ac:name="confiform-table" ac:schema-version="1">
<ac:parameter ac:name="formName">form2</ac:parameter>
<ac:rich-text-body>
<p>
<ac:structured-macro ac:macro-id="51f0fc05-7d12-4462-9595-bed53edb64bb" ac:name="confiform-field" ac:schema-version="1">
<ac:parameter ac:name="fieldName">field1</ac:parameter>
</ac:structured-macro>
</p>
<ac:structured-macro ac:macro-id="3c32a11d-32df-45bc-a21a-ec2ba1608169" ac:name="confiform-entry-edit" ac:schema-version="1">
<ac:rich-text-body>
<p>
<br/>
</p>
</ac:rich-text-body>
</ac:structured-macro>
<p>
<br/>
</p>
</ac:rich-text-body>
</ac:structured-macro>
<ac:structured-macro ac:macro-id="27b25ea8-957f-4581-bc15-ab107f3d0a77" ac:name="confiform-entry-register" ac:schema-version="1">
<ac:parameter ac:name="formName">form1</ac:parameter>
<ac:parameter ac:name="registrationButtonLabel">Add list</ac:parameter>
<ac:rich-text-body>
<p>
<br/>
</p>
</ac:rich-text-body>
</ac:structured-macro>
<ac:structured-macro ac:macro-id="a88ce0e9-b71b-49d0-9aaf-b9070fae48d7" ac:name="confiform-table" ac:schema-version="1">
<ac:parameter ac:name="formName">form1</ac:parameter>
<ac:parameter ac:name="sort">field1 DESC</ac:parameter>
<ac:rich-text-body>
<p>
<ac:structured-macro ac:macro-id="1aa07ccd-16ed-4b92-bcfd-cd84f2f2c520" ac:name="confiform-field" ac:schema-version="1">
<ac:parameter ac:name="fieldName">name</ac:parameter>
</ac:structured-macro>
<ac:structured-macro ac:macro-id="b621f4f2-93de-42dd-ba24-3c4428e55ff4" ac:name="confiform-field" ac:schema-version="1">
<ac:parameter ac:name="fieldName">ref</ac:parameter>
</ac:structured-macro>
</p>
</ac:rich-text-body>
</ac:structured-macro>
<p>
<br/>
</p>

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events