Please Log in to join the conversation.
azjr wrote: Hi - could you please advise what and/or how to use the available CB tools/plugins/whatever to ensure that some fields are not entered the same value?
Example: fields for primary (required) + alternative emails; or phone numbers that must be unique: ideally a way to query and return error message if the value already exist.
Thanks!
Please Log in to join the conversation.
Please Log in to join the conversation.
SELECT * FROM `#__users`, `#__comprofiler` WHERE `email` = '[value]' OR `cb_pg1email2` = '[value]' OR `cb_pg2email2` = '[value]'
/^[\(](?<area>\d{3})[\)][ ](?<group1>\d{3})[-](?<group2>\d{4})\W*?$/
Please Log in to join the conversation.
SELECT `id`
FROM `#__comprofiler`
WHERE `cb_phone` = '[value]'
SELECT u.`id`
FROM `#__users` AS u
LEFT JOIN `#__comprofiler` AS cb
cb.`id` = u.`id`
WHERE ( u.`email` = '[value]'
OR cb.`cb_pg1email2` = '[value]'
OR cb.`cb_pg2email2` = '[value]' )
Please Log in to join the conversation.
Please Log in to join the conversation.