Hi,
Maybe you can explain how to clear the data of control when change value?
I try do that, but it not work properly. I use
<xf:setvalue ev:event="xforms-value-changed" observer="control-1-control"
ref="instance('fr-form-instance')/section-7/control-6"
value=""/>
Source:
https://gist.github.com/anonymous/9909863Why I can use this?
<xf:action ev:event="xforms-enabled">
<xxf:script>
$(document).ready(function(){
$("$control-2-control").click(function(){
$("$control-1-control").val('');
});
});
</xxf:script>
</xf:action>
Also if I use <xf:setvalue> autocomplete field doesn't do anything, do not become empty.