| Project: | formsPlayer |
| Version: | 1.5.7.1013 |
| Component: | User interface |
| Category: | bug |
| Priority: | normal |
| Assigned: | Paul Butcher |
| Status: | closed |
There is a string displayed on initial load of the form
I have a submission element that contains a message element with ev:event="xforms-submit-error"
<xforms:message level="modal" ev:event="xforms-submit-error" class="top">Failed to save.</xforms:message>
The contents of the message element appears in the window before the xform is fully rendered. (Failed to save.)
I have also tried placing the message inside an action element - same result.
Have seen this 'forever'
Updates
| Assigned to: | » Paul Butcher | |
| Status: | new | » active |
| Attachment: | submit.html (2.21 KB) |
Could you provide an example of this? The attached form contains a submission element with two message elements, both of which have inline text. For me, there is no unexpected text visible.
| Status: | active | » closed |
This is only visible when the xform is displayed from our website.
I solved the problem by removing the explicit text from the message element and adding an instance element with the error message "Failed to save." and using the output element to reference it inside of the message element.
<xforms:submission relevant="false" validate="true" id="sub-configuration" method="put" action="config_submitted1.xml">
<xforms:action ev:event="xforms-submit-error">
<xforms:message level="modal" ev:event="xforms-submit-error" class="top"><xforms:output ref="instance('action-states')/validation-failure-message"/></xforms:message>
</xforms:action>
</xforms:submission>
Hi Frank,
I wonder if it's to do with delivering the page from the network? Perhaps you are able to see the message due to a small delay whilst the page is downloaded, whereas when running the document from a local disk the whole thing might happen too quickly.
Mark
I agree...

Recent comments
3 days 18 hours ago
4 days 4 min ago
5 days 17 hours ago
6 weeks 3 days ago
6 weeks 3 days ago
10 weeks 1 day ago
11 weeks 4 days ago
11 weeks 4 days ago
11 weeks 4 days ago
11 weeks 6 days ago