Skip to Content Skip to Menu

Text field v Text area question

  • huntrdog
  • huntrdog
  • ONLINE
  • Posts: 29
  • Thanks: 5
  • Karma: 0
1 hour 19 minutes ago #344084 by huntrdog
Text field v Text area question was created by huntrdog
Hello,

I am using a field for business hours.When the field type is Text Area (cbft_textarea), CB renders multiple unwanted
Code:
<br>
tags before the content on the profile page, creating a large vertical gap.When I change the field to a Text field, the extra spacing disappears, but line breaks are no longer preserved, causing all hours to display on a single line.Is there a recommended field type, display setting, or layout substitution that allows multi-line business hours to display correctly without the extra leading
Code:
<br>
tags?Thanks in advance for your help!

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 50496
  • Thanks: 8640
  • Karma: 1472
43 minutes ago #344085 by krileon
Replied by krileon on topic Text field v Text area question
Textarea fields replace linebreaks with br elements otherwise they won't render properly. So those unwanted br elements are just linebreaks that exist in the field. If you want more control over the fields HTML you'll need to use an editor fieldtype.


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.

Moderators: beatnantkrileon
Powered by Kunena Forum