problem with submission and validation of empty list
This post has NOT been accepted by the mailing list yet.
I am using the xforms to iterate a list of users in one page, the problem appears when the user is trying to submit the current page when the list of users is empty, in this case the application should checks if the list is empty and shows a error message on top of the page plus should change the color in read for the header of list.
I can't check if the list is empty on submit action, if i put a fake input field with my binder like a constraint it works correctly, how can I fix this problem, thanks ;
Is possible to use a hidden field in xforms or a input field like hidden ?
<xf:rebuild /> <xf:recalculate /> </xf:action> <xf:action ev:event="xforms-submit-error"> <xf:refresh /> <xf:message> There are problems when you submit the form. The invalid fields are colored in red.
</xf:message> </xf:action> </xf:submission>