Im using the re-usable forms and validation snippet from Mark Leusink (http://www.bootstrap4xpages.com/bs4xp/demos.nsf/reusableFields.xsp) which I think is brilliant.
Im having an issue with it however....
When validating, all the error message's all say the same.
ie I have a field called name and a field called address
Both fields show error text on page load (name is required, address is required)
Firstly, I dont want these to show until I hit the save button, I only want to show the messages when the fields are blank on save.
Secondly, when I save, both fields validate and turn red etc so are working as they should, however the address validation message changes and both validation messages now say name is required….
Basically, if I have 10 fields on my xpage, the validation message for all of them is the same, not specific to each field (And yes I have set the custom property help text to be different for each custom control)
*Edit: Just noticed the help text is correct for all fields, until I save the document, then when the validation fails and the fields turn red, it is at this point that all the error messages change to be the same....*
Im a little lost as to what Im doing wrong on both cases above so any pointers would be much appreciated.