Keeping two ConfiForms in sync

Jeff Weisman April 23, 2024

We have two forms that need to update one another and stay in sync. For simplicity sake lets use this mock-example. A librarian has a form (form 1) that they use to update information on the library to include the books that the library has available.

 

Form 1 - Libraries
Field 1 - Library Name - Text Field
Field 2 - Library Description - Text Field
Field 3 - Books Available - Smart Multi-Checkbox Field (Source Form - Books)

 

Form 2 - Books
Field 1 - Book Name - Text Field
Field 2 - Book Description - Text Field
Field 3 - Libraries - Smart Multi-Select Field (Source Form Libraries)

 

When a librarian is updating their library's record in the Library form they need to select all of the books that the library has available, and remove any selections that it no longer has available. They do this using the smart multi-checkbox field in the library form registration/edit.

When the librarian saves that form we also need to pass the library name to the Books form for each book record, or remove it if the librarian has unselected the book. The books form/views is used to see what libraries a book is available in, and has many downstream views and filters separate from the library form.

What macros/functions do we need to use to maintain this sync between the two forms? We also have a similar use case with a smart multi-row field. But we're assuming the solution for the above will tackle this.

Confiforms view.png

Confiforms config.png

ConfiForms (version: 3.10.3). License type: Commercial license.

2 answers

0 votes
Alex Medved {ConfiForms}
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 23, 2024

So, you essentially want to have 2 forms that keep information about records in other form and those should be in sync...

Why would you do that? Have you considered a simpler solution with just one form holding the data and in the second form you can then do a something with a "queryAndRender" function (basically looking up the current data related to one or another record)

Ryan A_
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 23, 2024

Could you please explain this further or give a code example? I also can't get this to work and have the same problem as OP and people are manually inputting the values across both forms. @Alex Medved {ConfiForms} 

Alex Medved {ConfiForms}
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 23, 2024

We have prepared an example here

Please note that this will require to update ConfiForms to at least version 3.11 on DC (or use the cloud version, which is updated for you automatically)

0 votes
Jeff Weisman April 23, 2024

@Alex Medved {ConfiForms}  the Atassian site wouldn't let me respond to your comment in other other post (Solved: ConfiForm delete entries in nested forms (atlassian.com)) so replying here. 

Thank you so much for your help! After speaking with the team, the problem we're facing is slightly more complex than I realized. Any recommendations for how to handle this?

Alex Medved {ConfiForms}
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 23, 2024

Yes, while this can be solved with lots of updates from one form to another we have decided to make things easier and introduced a new ConfiForms IFTTT action that is a lot easier to configure and use and which does exactly what you are looking for

An example on how to use it could be found on our wiki

Hope it helps and also simplifies things for you while providing the results you want

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events