Required in specific cases

  • Asked
  • Active
  • Viewed 351 times
0

Dear support, I have a problem to find the right way to make a variable required and mandatory in specific cases. It is about height measurements on trees and these should be mandatory if the tree status is >2. In all other cases tree height can be measured, but is not mandatory. I tried several validations and "Relevant if", but this does not solve my problem. I want this height entry to be mandatory and/or get an error message if the field is empty in specific cases. Thank you, Lutz

2

Accepted answer

Dear Lutz,
Thanks for reaching out! We are currently developing a feature that makes attributes conditionally required (e.g., mandatory only when tree status > 2). This will be available in Arena and Arena Mobile in November.
As a temporary workaround, you can:

  • Create two height attributes (one required, one optional) and use "Relevant if" conditions (tree status > 2 and tree status <= 2) to display the appropriate field.
  • Create a hidden, read-only attribute to combine the two height fields so you have a single variable for analysis.

While this adds extra fields to your survey structure, it will get the job done until November. We'll update you here as soon as the new feature is released!
Many thanks,
The Open Foris Team

1

Accepted answer

Dear Lutz,
The new feature, conditionally required attribute, is available in the latest version of Arena and Arena Mobile.
alt text By default, attributes are not required.
Attributes that were marked in the previous version of Arena as "Required" will be considered as always required.
Many thanks,
The Open Foris Team

0

Accepted answer

Thank you so much for fast help, this solved my problem!

0

Accepted answer

Thank you so much, I think this is a very meaningful extension and probably also useful for many others! Lutz

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.

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.