XForms: set relevancy for a list
Posted
by
Purni
on Stack Overflow
See other posts from Stack Overflow
or by Purni
Published on 2010-06-17T18:16:51Z
Indexed on
2010/12/28
0:54 UTC
Read the original article
Hit count: 345
I have a list element in my model instance. I am using Orbeon XForms.
<mypage>
<list name='mylist'/>
<status />
</mypage>
Status can be Private or Public. In xforms:binding, I want to set relevant attribute for showing/hiding the list. The list is bound to a drop-down. If status is Private I want to show the list, if status is Public I want to hide the list.
I tried the following and it does not work.
<xforms:bind nodeset="instance('myinstance')/list[@name='mylist']" relevant="instance('myinstance')/status='Private'" />
© Stack Overflow or respective owner