Dynamic response to posteriori changes

  • Asked
  • Active
  • Viewed 1475 times
0

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

0

Accepted answer

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

Your answer

Markdown text. Shortcuts: Ctrl+B bold, Ctrl+I italic, Ctrl+K link, Ctrl+E code, Ctrl+Shift+V paste as plain text. Tab indents list items and code; press Escape, then Tab, to leave the text box.

Insert an image

Say what the image shows, for people who can't see it.

Tip: type a few words from the error message, or put a tag in [brackets] to look only there.

Menu

Keyboard shortcuts

Anywhere

?
Show this list
/
Search
g h
Go to the home page
g q
Go to the questions
g t
Go to the tags
g u
Go to the users
a
Ask a question

Lists of questions

j k
Next or previous question
Enter
Open the question

Question pages

j k
Next or previous post

Shortcuts never apply while you type in a text field. Members can turn them off in their preferences.