I have a field named cb_contactme that has two values, 1=no and 2=yes. If the member selects yes then it should display their phone number on their public profile so that they can be contacted. I have the phone numbers stored in another field (cb_phonenumber). I am using this code in the profile value area of the cb_contactme field:
[cb:if cb_contactme="2"]By Phone: [cb:userfield field="cb_phonenumber" /][/cb:if]
It is working correctly and pulling in the phone number. The problem is that I don't want the phone number to show up on the profile as its own separate entry for all users. If I set the cb_phonenumber field to not show up on a users profile then the phone number also stops showing up in the contactme spot. All I get in that case is the "By Phone:" part of the thing and no number afterward.
How do I make it so that the phone number can be seen only if the owner wants it to be?