Hi,
I need to validate update of a db field but nos sure how to do this. There are Text Field and Button on my page and I need to update certain field in database with Text Field value but only if that value is less than max allowed value. I have db function returning 0 to not permit or 1 to permit update. If update is permitted app should do update db field and redirect to another page. If not, app should display error message.
How can I create validation, what is the best approach?