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, 14:08

Andras's gravatar image

Andras
1088814
accept rate: 0%

edited 06 Apr, 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, 15:40

OF%20Collect's gravatar image

OF Collect ♦♦
1.5k4
accept rate: 16%

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, 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:

×235

question asked: 06 Apr, 14:08

question was seen: 44 times

last updated: 06 Apr, 16:45