Hi,
I’m currently in the process of designing a Xpage submission page for our customers and I’ve come across a bit of an odd problem (not a show stopper, but kind of annoying to say the least as it’s a bit of an eyesore against the rest of the XPage).
First some quick background. The ‘disableClientSideValidation’ flag on all the fields have been set to ‘true’ so I can get error boxes with some nice CSS appear to the right of the fields, instead of dialog boxes appearing. I’m using the ‘Display error’ core control to display the error messages and these are placed next to the fields and then linked with the relevant field. The fields are in a custom control which in turn is then loaded into an Xpage, this is because the custom control (I’ll just say CC from now on) is re-used in places.
On the CC have some standard ‘Edit Boxes’ that have been flagged as required fields (I have done this by simply checking the relevant box under ‘validation’ on the field properties) and then it has a custom error message saying “This is a required field”. When previewed in the browser everything works fine and there is no problem.
Now here’s the problem:
If I do the exact same thing, except this time it’s a multi-line edit box, the user cannot submit until the field has information entered as expected. The problem here is that it will not give the custom error message, instead it will say “Validation Error: Value is required.”, it just ignores the custom message. This happens in all browsers.
Anyone know how I can get a mult-line edit box to display a custom ‘required field’ message?