Open ebruchez opened 8 years ago
+1 from customer for these examples:
File size must be less than {maxfilesize} MB.
File format is not allowed, allowed file formats are {fileformats}
And also for considering automatically-generated hints.
Specifically:
string
(any string passes so this is a NOP)boolean
xf:email
decimal
integer
date
time
dateTime
Right now:
<xf:alert ref="...>
<xf:alert ref="$fr-resources/detail/labels/alert"/>
<xf:alert ref="$form-resources/control-1/alert"/>
<xf:alert ref="$form-resources/control-1/alert" validation="validation-6-validation"/>
I suggest the following changes:
One question is how to point to the custom message. It must come down to, approximately:
xxf:format-message(
$messageTemplate,
(
$parameterToTheConstraint
)
)
Options:
ref
:
<xf:alert ref="xxf:format-message(...)"/>
<xf:alert ref="fr:alert-message()"/>
We need an option to enable default hints:
For hints:
application/pdf
to .pdf
.
I thought we already had an RFE for this. Idea:
xf:integer
⇒ "Must be a number")+1 from customer