Create default value for hierarchical code list

  • Asked
  • Active
  • Viewed 2135 times
0

Hello OF Team!

I am working with hierarchical code lists. My level 1 code is "Forest" and level 2 is "Unit". Not all Forests have multiple Units. When the user selects a Forest that only has a single Unit within it, I would like the value for Unit to automatically populate with the only option within the selected Forest. Is this possible?

Thank you!

Bryant

0

Accepted answer

Dear Bryant,
Now it's not possible to do this kind of automatic selection.
If the code list items with only one level are not so many, you can try to define a default value for the unit attribute using several "Apply if" condition, so if the condition matches one of the items with only one level, then a value will be applied.
Let us know if this helps you, 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.

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.