Hey, I am working on creating my User profile page and I would like to concatenate two fields when displaying on the profile. For example: Address to concatenate City and State
and height in ft and inches to concatenate. Is this possible?
Yes, substitute them together in a Custom HTML field or using the Layout parameters of at least one of them. See the below for substitution usage information.
See the below for Custom HTML and Layout usage information.
Kyle (Krileon) Community Builder Team Member Before posting on forums:
Read FAQ thoroughly
+
Read our Documentation
+
Search the forums CB links:
Documentation
-
Localization
-
CB Quickstart
-
CB Paid Subscriptions
-
Add-Ons
-
Forge
-- If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
-- If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please
send me a private message
with your thread and will reply when possible!
-- Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
-- My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.
OK, next question. I have a created a couple of fields for height in feet and inches and I want to concatenate liket this:
[cb_profile_height_ft] Feet, [cb_profile_height_inches] inches
But if there isn't anything entered yet I see the display code. How do test if a value is blank? I tried:
[cb:if cb_profile_height_inches !=" "][cb_profile_height_inches inches[/cb:if]
But that doesn't work.
Note the formatting is not open to interpretation. Do not add extra spaces if it does not show a space in any of the examples as the REGEXP will not match it. Example as follows.
Kyle (Krileon) Community Builder Team Member Before posting on forums:
Read FAQ thoroughly
+
Read our Documentation
+
Search the forums CB links:
Documentation
-
Localization
-
CB Quickstart
-
CB Paid Subscriptions
-
Add-Ons
-
Forge
-- If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
-- If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please
send me a private message
with your thread and will reply when possible!
-- Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
-- My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.