Duplicate Validator For Text Field
Hi,
I have a text field named "username1" which the default value is hashtag current user, I am trying to implement a Complain Report form where in if the current user already have a pending report and try to submit report again it will give an error of "Exists".
I have successfully implemented it using Duplicate Validator how ever I want my text field to be readonly and display as a label but if I do checked the readonly and display as a label for username1 the duplicate validator will not work anymore. It will not check if there is existing record in database.
I am trying to find ways how to make the username1 textfield not editable and display as label at the same time if I clicked submit and the username1 exist in the database, It will not go through and Display error message "Exists"