---
title: "Code attribute set to multiple choice stays hidden"
url: "https://openforis.support/questions/1733/code-attribute-set-to-multiple-choice-stays-hidden"
tags: ["collect"]
status: "answered"
score: 0
answer_count: 1
asked: "2018-04-06T14:08:45"
last_activity: "2018-04-06T16:45:33"
source: "Open Foris Support - Q&A Forum"
license: "Copyright Open Foris, 2026. Some rights reserved under creative commons license."
---

# Code attribute set to multiple choice stays hidden

Asked by Andras on 2018-04-06

Dear OF Team,

I have a code attribute set to multiple choice and a simple expression defined for its relevancy.
When I tick the "Hide when not relevant" box, the field stays hidden regardless the result of the relevancy expression.
Could you check if this is a bug?
I have checked and this is happening in the preview, and working in Collect Mobile.

Thanks!
Andras


## Answer (score 0, by Stefano (OF) on 2018-04-06)

Link: https://openforis.support/questions/1733/code-attribute-set-to-multiple-choice-stays-hidden/1734

Hi Anrás,  
Can you double check the expression you use for the relevancy trigger? (define it in a boolean calculated attribute for example and see if it's value changes properly).  
Also, can you please tell us what kind of multiple attribute have you defined? Is it a code attribute?  
Many thanks,  
Open Foris Team

> Hi, The attribute is not a multiple one, it is a single code attribute. I want to allow the user to select multiple instances from the code list. The relevancy is defined using the previous code attribute (prev_att > 1). Relevancy works if I remove the tick for hiding the field. I.e. the field is grayed out. After testing, the relevancy works on a simple numeric attribute. It seems that the problem is with the multiple choice combined with hiding the attribute (if I remove the tick from Multiple and/or from the Hide when not relevant, the field works as expected). (Andras)
