Update field values on pages created via a ConfiForms template
Asked by Anna:

Hello!

What we've got:

- a page with ConfiForms macros created according to the [documentation](https://wiki.vertuna.com/display/CONFIFORMS/Using+ConfiForms+app+as+template+engine+to+create+pages+in+Confluence)

- 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?


Answers:
author: Alex Medved _ConfiForms_
body: Hi [@Anna](/t5/user/viewprofilepage/user-id/5065752)

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

comments: author: Anna
body: 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.


author: Alex Medved _ConfiForms_
body: How is this section is configured in the template?

```
region: Europe
countries: UK, Germany, Italy
```

It does not use the ConfiForms?

Alex


author: Anna
body: It does. In particular, this is the case inspired by articles [Using apply filter on dependent smart dropdowns](https://wiki.vertuna.com/display/TEST/using+apply+filter+on+dependent+smart+dropdowns) + [Using ConfiForms Field Definition Rules macro to reduce number of choices in a dropdown field based on the value selected in another field](https://wiki.vertuna.com/display/CONFIFORMS/Using+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](https://wiki.vertuna.com/display/TEST/using+apply+filter+on+dependent+smart+dropdowns))

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


author: Alex Medved _ConfiForms_
body: 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


author: Anna
body: 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!


author: Anna
body: 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?


Tags: confiforms

confluence-server

server