Hi all,

I am not sure if this has been answered somewhere already, but I have a complex hierarchical code list. Some level1 categories DO NOT have any additional categories on level2 (or level3). Which Xpath syntax do I use to define that the level2 code attribute field stays hidden if the selected category on level1 does not have any additional (sub-)categories? I know I could work with the specific code value (e.g. code_list1=3 or codelist1>2 ), but as my code list is complex, a general expression (i.e. "if level2 is empty" then do not show...) would be more appropriate.

Does anybody have an idea how to do this?

Thanks in advance!!

Alex

asked 10 Mar '21, 08:35

wexxo's gravatar image

wexxo
14511641
accept rate: 4%

edited 10 Mar '21, 16:32


Dear Alex,
This is actually a feature we were already taking into consideration...!
In the Survey Designer we could add an option like "hide with empty items" or something like that.
We will include this feature in one of the next release of Collect, please check the changelog to see if it has been implemented or not when a new version is released.
Thanks,
Open Foris Team

permanent link

answered 10 Mar '21, 23:16

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

Stefano (OF) ♦♦
4.7k19
accept rate: 20%

Hello OF Team,

I am wondering if this change has been implemented. I have a similar scenario using a hierarchical code list where not every Level1 category has multiple level2 categories, meaning that a certain selected value for level1 should result in only one option for level2. When only a single level2 category exists within a level1 category, I would like this value to automatically populate. Is this possible with the current version of Collect?

Thank you! Bryant

permanent link

answered 13 Jan '23, 19:49

bryant's gravatar image

bryant
134
accept rate: 0%

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:

×493
×170

question asked: 10 Mar '21, 08:35

question was seen: 1,497 times

last updated: 13 Jan '23, 19:49