How to express "does not contain" for a multiple choice field?

  • Asked
  • Active
  • Viewed 2956 times
0

Hi,

I want to make a warning message based on a code field with multiple answers possible. I want to identify when "lane" is not included in the combination of answers (users can select multiple answers).

"!=" does not work.

Any other syntax I can try?

Thanks,

Floerence

0

Accepted answer

Hi Florence,
Since version 3.14 of Collect you have the possibility to use an XPath function for this, idm:contains(MULTIPLE_ATTRIBUTE_NAME, 'value'). It returns true when a specified 'value' is among the selected ones of a multiple attribute.
Thanks,
Open Foris Team

Fantastic addition! As always, many thanks!

Florence

flandsberg flandsberg

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.