Code attribute set to multiple choice stays hidden

  • Asked
  • Active
  • Viewed 3109 times
0

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

0

Accepted answer

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 Andras

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.