Forums

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

Update field values on pages created via a ConfiForms template

Anna January 21, 2024

Hello!

 

What we've got:

- a page with ConfiForms macros created according to the documentation

- the ConfiForms page contains all the created pages in a list (links to the created pages by IDs and URLs)

- the ConfiForms fields are multi-select and smart multi-select fields which values depends on the values of other fields (e.g. if the user chooses 'Europe' then the list of countries is limited to the European countries)

- the created page retrieves values from the ConfiForms page

 

Question. Sometimes the data changes and we make mistakes so the values should be changed. Is there a way to update values via the ConfiForms page?

 

 

 

1 answer

0 votes
Alex Medved _ConfiForms_
Community Champion
January 22, 2024

Hi @Anna 

If those values are stored in ConfiForms and your created pages use ConfiForms views then all you have to do is to change the value in the record

And that would be updated everywhere where it is used

Alex

Anna January 22, 2024

Sorry I must've misled you. I mean the set of values used. For example, we have a page with values:

region: Europe
countries: UK, Germany, Italy

Now we want to add other countries to this list. We tried to change the value via the record of this page on the ConfiForm page, like via buttons ⚙ -> View/Edit stored data, and then add another country to the column. The record changed but only in the list, not on the page itself.

Alex Medved _ConfiForms_
Community Champion
January 22, 2024

How is this section is configured in the template?

region: Europe
countries: UK, Germany, Italy

It does not use the ConfiForms?

Alex 

Anna January 23, 2024

It does. In particular, this is the case inspired by articles Using apply filter on dependent smart dropdownsUsing ConfiForms Field Definition Rules macro to reduce number of choices in a dropdown field based on the value selected in another field

 

The structure we have:

  • CF Form Definition:
    • CF Registration control
    • CF Field Definition (several of them for all the fields we use)
    • CF Rules for Field Definition (for each field with dependent value)
    • CF IFTTT Integration Rules (contains the template with CF ValueView which refers to the relevant value via filter recordId:[entry.recordId]
  • several of CF Form Definition:
    • CF Field Definition
    • CF Registration Control (they receive values)

So the first FormDefinition contains data of all created pages and entered data. The second one just provides the custom values (as  f1choices and  f2choices in the article)

The example with Europe and Countries is only for the sake of a clear example. Due to the NDA I can't share actual values or purpose of this form

Alex Medved _ConfiForms_
Community Champion
January 23, 2024

Honestly, I dont understand what is the problem.

Seems like you have dynamic pages that use ConfiForms... so, changing values in corresponding records will be reflected automatically in the pages that use those records

Like Anna likes this
Anna January 25, 2024

I'll try to recreate the case from scratch. Maybe this time it will work out and I come back to you with the results. If not at least I'll be able to share some code with you!

Anna March 19, 2024

Hello! Sorry for such late news. We've tested this scenario and found out that some articles update their values according to changes in the table. It didn't work at all back when we only started using CF but now it's almost fine.

 

The thing we've found out is that it doesn't work consistently. Previous bug reproduces now and again randomly. For example, we tested changes for two articles created with the CF template one after another in the same space:

- Article 1: created on March 15, space N

- Article 2: created March 15, space N

When we change value via the CF table for Article 1, it displays the changes immediately. When we do the same to Article 2, nothing happens: values are changed in the table, yet the article displays the previous ones. Any other attempt to change values fails.

 

Is there a way to fix it?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events