How do you validate a form input from a database before submission? I would want to check if the input is unique from a postgresql database and display an error if it is -so that the user would know about it. An error is being flagged by postgresql in the logs when a user inputs a value which is already in the database. How do I inform a freindly message to the user about it (instead of a bomb) while using ad_form?
Request notifications