---
title: "\"hidden when not relevant\" function does not work on subtables with \"Ennumerate\""
url: "https://openforis.support/questions/4345/hidden-when-not-relevant-function-does-not-work-on-subtables-with-ennumerate"
tags: ["arena"]
status: "accepted"
score: 0
answer_count: 2
asked: "2025-09-29T12:46:49"
last_activity: "2025-09-30T09:28:18"
source: "Open Foris Support - Q&A Forum"
license: "Copyright Open Foris, 2026. Some rights reserved under creative commons license."
---

# "hidden when not relevant" function does not work on subtables with "Ennumerate"

Asked by osgarcia on 2025-09-29

Hello OF Team,

I'm writing because I think I've found a bug in Arena, the "hidden when not relevant" function on subtables with "Ennumerate" enabled doesn't quite work.

I have a main table called "Plot" and a subtable called "Destructive Litter Sampling."

In the plot table, we have a Boolean entity called "des_litter_procedure_plot."

The "Destructive Litter Sampling" subtable is multiple, and the "Enumerate" option is enabled with a validation of Min count = 2 and Max count = 2 (we should always have 2 records). I've also defined it to be relevant when "des_soc_procedure_plot == true" (and Hidden is enabled when not relevant).

The problem is that when I run the form and specify that "des_litter_procedure_plot" is TRUE in the "Plot" table, the "Destructive litter sampling" subtable appears, but it won't let me enter the information (I can't see nothing in the table, and I get the error "Destructive litter sampling nodes must be exactly 2".

If I remove the "Destructive litter sampling" subtable from being relevant when "des_soc_procedure_plot == true", then it works.

Thanks

Regards

Oscar


## Accepted answer (score 0, by Stefano (OF) on 2025-09-30)

Link: https://openforis.support/questions/4345/hidden-when-not-relevant-function-does-not-work-on-subtables-with-ennumerate/4348

Dear Oscar,  
In your case the problem seems to be related to the fact that the multiple entity "Destructive litter sampling" is marked with "Enumerate" but there isn't any key code attribute defined inside of it (you have an integer key attribute instead).  
Enumerated entities work only with key code attributes defined inside of them; the items in the category associated to the key code attribute will be used to generate the rows of that entity and the code of the category item will be assigned to the key code attribute in every row.  
In your case you can simply remove the flag "Enumerate" in that entity and it will work as expected (rows will be generated using the min count specified).  
Many thanks,  
Open Foris Team


## Answer (score 0, by Stefano (OF) on 2025-09-29)

Link: https://openforis.support/questions/4345/hidden-when-not-relevant-function-does-not-work-on-subtables-with-ennumerate/4347

Dear Oscar,  
Many thanks for having reported this issue.  
We will contact you to your private email address to better understand it.  
Thanks again,  
Open Foris Team
