Skip to Content Skip to Menu

[SOLVED] Check Box (Multiple) and cb content bot

  • AchLive
  • AchLive
  • OFFLINE
  • Posts: 253
  • Thanks: 14
  • Karma: 3
2 years 4 months ago #329612 by AchLive
Hi, I created a Check Box (Multiple) field and retrieve its value with the cb content bot plugin in article. Recovery works like this:
Value1 | * | value2 | * | value3 | * | value4
I would like to replace with
Value1, value2, value3, value4
then use the comma as a separator and not | * |
How can it be done?
Thanks for the support

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48424
  • Thanks: 8274
  • Karma: 1443
2 years 4 months ago #329617 by krileon
Replied by krileon on topic Check Box (Multiple) and cb content bot
Looks like you're using a raw value substitution output. You need to use the formatted value substitution. Example as follows.

[cb:userfield field="FIELD_NAME" /]

Check out our substitution tutorial below for further usage information.

www.joomlapolis.com/documentation/279-community-builder/tutorials/18353-using-substitutions-throughout-cb


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.

Please Log in or Create an account to join the conversation.

  • AchLive
  • AchLive
  • OFFLINE
  • Posts: 253
  • Thanks: 14
  • Karma: 3
2 years 4 months ago #329624 by AchLive
Replied by AchLive on topic Check Box (Multiple) and cb content bot
Hi krileon, thanks for the reply.
I tried [cb: userfield field = "My_FIELD_NAME" /] but it doesn't return any values.
Maybe there is some problem with the Check Box (Multiple) fields?
To get the result I would like, could you write exactly what should I set?
Thank you

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48424
  • Thanks: 8274
  • Karma: 1443
2 years 4 months ago #329628 by krileon
Replied by krileon on topic Check Box (Multiple) and cb content bot
The syntax is exactly [cb:userfield field="FIELD_NAME" /] with FIELD_NAME being the name of your field. Do not add extra spaces to it. userfield substitutions also respect access and display settings for fields. So the field needs to be configured to display on profile and you need to have permission to see it for that substitution to output anything.


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.

Please Log in or Create an account to join the conversation.

  • AchLive
  • AchLive
  • OFFLINE
  • Posts: 253
  • Thanks: 14
  • Karma: 3
2 years 4 months ago - 2 years 4 months ago #329630 by AchLive
Solved, Thank you
Last edit: 2 years 4 months ago by AchLive.
The following user(s) said Thank You: krileon

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum