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

asked 28 Mar '23, 13:32

janklein's gravatar image

janklein
216
accept rate: 0%

edited 28 Mar '23, 17:24


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

permanent link

answered 29 Mar '23, 09:26

Stefano%20%28OF%29's gravatar image

Stefano (OF) ♦♦
4.8k119
accept rate: 19%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×494

question asked: 28 Mar '23, 13:32

question was seen: 576 times

last updated: 29 Mar '23, 09:26