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

asked 06 Apr '18, 14:08

Andras's gravatar image

Andras
18482253
accept rate: 0%

edited 06 Apr '18, 14:20


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

permanent link

answered 06 Apr '18, 15:40

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

Stefano (OF) ♦♦
4.8k119
accept rate: 19%

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).

(06 Apr '18, 16:43) Andras Andras's gravatar image
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:

×494

question asked: 06 Apr '18, 14:08

question was seen: 2,142 times

last updated: 06 Apr '18, 16:45