Hello there everyone let me explain you what I exactly want to do
I have a form with some basic details and referral ID. Please note the referral ID is members unique “ID”
Now the feature I want is that whenever a person submit form with referral ID I want two verification to be done
Condition 1: ID is valid or exist in members database
Condition 2: Current logged in user ID should not be same as entered referral ID
If both condition is true then proceed booking
else if first condition is false then show "Invalid referral ID ".
if second condition is false then show “You can’t use your own referral ID”
Can anyone guide me how to create such type of hooks in database? Please