Hi - In Admin Field Builder on the Username field of the Join form there is this code that checks to make sure the new Username is unique
return ( preg_match( '/^[a-zA-Z0-9_-]+$/', $arg0 ) and !file_exists( $dir['root'] . $arg0 ) );
My question is ...
I have a field called Sponsorname.
I want to make the system check to make sure that the sponsorname DOES exist.
So the name they enter must be NOT unique.
Can anyone tell me how to adapt the above code to achieve this?
Of course even though the field is Sponsorname it has to check the Username to make sure it is not unique.
Can I just enter appropriate code in the Field popup AdvancedTab Check box ?? Or can you suggest a better way?
Thanks
Dan V