---
title: "Dynamic response to posteriori changes"
url: "https://openforis.support/questions/3594/dynamic-response-to-posteriori-changes"
tags: ["collect"]
status: "answered"
score: 0
answer_count: 1
asked: "2023-03-28T13:32:34"
last_activity: "2023-03-29T09:26:04"
source: "Open Foris Support - Q&A Forum"
license: "Copyright Open Foris, 2026. Some rights reserved under creative commons license."
---

# Dynamic response to posteriori changes

Asked by janklein on 2023-03-28

Dear OF team,

I would like to know how one can dynamically reset an attribute to an empty entry following posteriori changes of a preceding attribute.

In a concrete case, the survey calculates the attribute ‘collection.number’ based on the preceding field ‘yesno.specimen’. 

It may occur that one mistakenly ticks “yes” in ‘yesno_specimen’. In this case the subsequent field ‘collection.number’ will be automatically filled. The field is not calculated in order to enable manual changes. If one now decides differently that no specimen is to be collected and changes the preceding field ‘yesno.specimen’ to “no”, the collection number will nonetheless remain and effect all subsequent collection numbers. Concretely, it will create an empty collection number with no associated specimen.

Thus far, I have manually deleted the collection number before changing the field ‘yesno.specimen’. I now wonder whether there is a way to automatise this process and implement a dynamic response of the field ‘collection.number’ based on the field ‘yesno.specimen’.

Thanks very much in advance for any piece of advice,
Jan


## Answer (score 0, by Stefano (OF) on 2023-03-29)

Link: https://openforis.support/questions/3594/dynamic-response-to-posteriori-changes/3599

Dear Jan,  
I suppose that the collection_number attribute has a default value specified.  
Can you please try to make the attribute collection_number relevant/visible only if yesno_specimen is true? In that case, when a default value has been applied and the field turns "not relevant", the value will be erased.  
Please let us know if this solves your issue.  
Many thanks,  
Open Foris Team
