Skip to Content Skip to Menu

🌟 CB Editor Assistant 1.0.0 is here! Discover our new AI Joomla Plugin that wrote its story! (and this banner!)
Start at just $12.50/month* or 💸 save 30% with our 🛍️ Intro Black Friday Offer for a lifetime*

Place two fields in a line

  • cppleal
  • cppleal
  • OFFLINE
  • Posts: 76
  • Thanks: 10
  • Karma: 1
5 years 3 months ago #313954 by cppleal
Place two fields in a line was created by cppleal
I've been looking for how to do it, but I haven't found anything. It sure is very simple.

I want to place two CB fields on the same line. A check field and a text field.

How could I do it?


Thanks.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48551
  • Thanks: 8291
  • Karma: 1445
5 years 3 months ago #313963 by krileon
Replied by krileon on topic Place two fields in a line
You can use a Custom HTML field and substitute them in using substitutions as shown on the below substitution tutorial. You can also substitute one field into another fields Layout under Parameters > Layout.

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

Alternatively you can write custom CSS to make them display side by side assuming the fields are normally displayed 1 after another. The below for example would caused the First Name and Last Name fields to display side by side.

Code:
#cbfr_46, #cbfr_48 { display: inline-block; width: 50%; }

46 is the ID of the firstname field while 48 is the id of the lastname field. Using this you can add the ids of your fields to display them side by side as needed.


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.
The following user(s) said Thank You: sirweb

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

Moderators: beatnantkrileon
Powered by Kunena Forum