I am new to wix and without coding skills, but i need to stop users of my site from entering duplicate data in my User Profile collection and to display an error message whenever this occur, while users are trying to update their Profiles.
I have created a profile update dynamic page where a user will have to create a unique user pin or code with numbers that must follow a XXX-XXXX entry pattern (eg. 121-4467). The code must start with 121- followed by four other digits of a user's choice, but i want each code or pin to be unique to each user by AVOIDING DUPLICATED PIN or CODE.
I know that Hooks can be used to avoid dups but i need a detailed and specific help on how to do the following with codes:
1. Avoid Duplicate Pin or Codes.
2. Display error message if a duplicate pin is created during profile update.
3. Make Submit Button inactive when Pins or Codes are improperly inserted during profile update.
Please can someone help me with the proper code lines to use?
See page capture below: