Hi,
I am new to Orbeon and X-Forms, and in my application, I am
trying to use javascript with my xforms to show/hide buttons for different
instances in the repeats by putting them in divs. Is there a way to
assign a unique ID to the div specific to the index of the repeater? They
can’t be hard-coded.
So to loosely illustrate:
<xforms:repeat
id=”repeater”>
<my
instance #1>
<my
instance #2>
<my
instance #3>
<button
onclick=”showDiv(“div_3”)”>
<div
id=”div_3”>…</div>
</xforms:repeat>
I’ve tried to do something like ‘<div id="advancedSettings_<xforms:output value="count(preceding-sibling::component)+1"/>” style="display:none">’
but that doesn’t work.
Any help is greatly appreciated. Thanks!
Stephanie
Free forum by Nabble | Edit this page |