[eluser]Andy Ingham[/eluser]
Hi,
Within a 'callback' form validation function, is it possible to amend the value that the user has entered, so that they see the updated value when the form is re-displayed?
My situation is that the user enters a postcode in a form and in the 'callback' function it checks whether the postcode already exists on file. In the 'callback' function before doing the check I remove any spaces the user may have entered and convert to uppercase. If the postcode is found to already exist on file then the form will be redisplayed, but when it's redisplayed I want to show the 'updated' version of the field, i.e. with space removed and converted to uppercase.
Does anyone know how to do this?
Many thanks,
Andy