Hi,

When I refer to a code list value in e.g. a relevancy expression of an attribute, should I use the code or the code label? For instance I want that an attribute is relevant when the code attribute "accessibility" takes the value 1 (code label: "Accessible"). Which of the following is correct?

Relevant when: accessibility=1

or

Relevant when: accessibility="Accessible"

Thanks!

asked 09 Oct '14, 20:40

Andras's gravatar image

Andras
1508822
accept rate: 0%

edited 09 Oct '14, 21:15


Hi, when referencing a code attribute, only the code will be considered (don't forget that you can define surveys in multiple languages and you can define different labels for the same code item...). The right expression will be: accessibility='1'


Don't forget that the code is a alphanumeric value, so you have to wrap it into single or double quotes when you want to use it as a value in an expression. Thanks.

permanent link

answered 09 Oct '14, 21:49

OF%20Collect's gravatar image

OF Collect ♦♦
2.6k8
accept rate: 21%

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:

×347

question asked: 09 Oct '14, 20:40

question was seen: 3,048 times

last updated: 09 Oct '14, 21:49