I want to know if there is a "right way" to enable/ disable controls; especially triggers. In this wiki-book the authors suggests to delete the control, but I need to be visible but not working (and a style looking like disabled):
<xf:trigger ref="self::node()[count(../name) > 1]">
<xf:label>Delete Classifier</xf:label>
<xf:delete ev:event="DOMActivate" nodeset="instance('save-data')/name" at="index('name-repeat')"/>
</xf:trigger>
I was looking everywhere but I coudn't find anything. Any idea? Thanks in advance,
I can't guarantee this is working for every xforms implementation, but the way we implemented that in our xforms developments is : 1- Bind the trigger to an element in an instance. 2- Define binding for this element with relevant property.
When the binding is non relevant, the trigger is not displayed.
This is working with Orbeon 6.2.