<![CDATA[ Check Extended Field for Duplicates - My Forums]]> https://forums.modx.com/thread/?thread=103712 <![CDATA[Check Extended Field for Duplicates]]> https://forums.modx.com/thread/103712/check-extended-field-for-duplicates#dis-post-557878
I found this thread https://forums.modx.com/thread/101939/use-getobject-to-check-existing-data and was curious if it would work for an extended (ClassExtender) field ("screenName") to check if the same value already exists?]]>
todd.b Apr 10, 2018, 01:58 AM https://forums.modx.com/thread/103712/check-extended-field-for-duplicates#dis-post-557878
<![CDATA[Re: Check Extended Field for Duplicates]]> https://forums.modx.com/thread/103712/check-extended-field-for-duplicates#dis-post-557917 BobRay Apr 11, 2018, 06:33 AM https://forums.modx.com/thread/103712/check-extended-field-for-duplicates#dis-post-557917 <![CDATA[Re: Check Extended Field for Duplicates]]> https://forums.modx.com/thread/103712/check-extended-field-for-duplicates#dis-post-557907 todd.b Apr 10, 2018, 10:11 PM https://forums.modx.com/thread/103712/check-extended-field-for-duplicates#dis-post-557907 <![CDATA[Re: Check Extended Field for Duplicates]]> https://forums.modx.com/thread/103712/check-extended-field-for-duplicates#dis-post-557881
$screenName = ''; // set this to what the user entered 
if ($modx->getCount('userData', array('screenName' => $screenName))) {
    /* screen name is already in use */
};
]]>
BobRay Apr 10, 2018, 05:17 AM https://forums.modx.com/thread/103712/check-extended-field-for-duplicates#dis-post-557881