Can more than one item on a drop-down list be selected?

C

Christine

I'm creating an application where the applicants are teachers. Since
teachers teach multiple subjects, how do I allow them to select more than one
subject on a drop-down list?
Please keep the answer simple. Thank you.
 
H

Harikrishna

Hi,

Add a repeating section and place the subject drop down in that section.
Create a secondary xml for subjects and get the values for subject drop down
from this xml. Your xml should be like this
<subjects>
<subject>1</subject>
<subject>2</subject>
<subject>3</subject>
</subjects>

Then use the following expressions as filter conditions

not(. = current()/preceding-sibling::my:group2/my:subject)
not(. = current()/following-sibling::my:group2/my:subject)

Here group2 is repeating group in main data source and subject is subject
drop down.
 
Top