Skip to Content Skip to Menu

[SOLVED] Show Empty Fields setting problem

  • ricco1
  • ricco1
  • OFFLINE
  • Posts: 310
  • Thanks: 8
  • Karma: -7
8 years 1 month ago - 8 years 2 weeks ago #289084 by ricco1
Hi,

Joomla! 3.6.5
CB 2.1.0

After updating CB to 2.1.0 the empty fields are shown in the profile although the Show Empty Fields setting in the CB > Configuration is set to NO.

Please advice?
Last edit: 8 years 2 weeks ago by krileon. Reason: Added [SOLVED] tag to subject

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48711
  • Thanks: 8320
  • Karma: 1447
8 years 1 month ago #289103 by krileon
Replied by krileon on topic Show Empty Fields setting problem
Works perfectly fine here. We didn't even touch that code with CB 2.1 or any recent build. Are you using CB Core Fields Ajax on those fields? Are they being conditioned by CB Conditional? Hidden by CB Privacy? Try disabling non-core plugins 1 by 1 to see if issue goes away or check multiple profiles to see if it's affecting just a few users.


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: ricco1

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

  • ricco1
  • ricco1
  • OFFLINE
  • Posts: 310
  • Thanks: 8
  • Karma: -7
8 years 1 month ago - 8 years 1 month ago #289131 by ricco1
Replied by ricco1 on topic Show Empty Fields setting problem
Actually now I think it's better with fields shown. :cheer:

Thanks.
ricco
Last edit: 8 years 1 month ago by ricco1.

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

  • ricco1
  • ricco1
  • OFFLINE
  • Posts: 310
  • Thanks: 8
  • Karma: -7
8 years 2 weeks ago - 8 years 2 weeks ago #289857 by ricco1
Replied by ricco1 on topic Show Empty Fields setting problem
I think I've found out where the problem is.

If we enter anything in Field > Parameter > Layout > Profile Value Layout, then CB always thinks that there is something in the field, even if condition it, like ie:

[cb:if user="#me" user_id<="0"]Anything[/cb:if]
[cb:if user="#me" user_id>"0"][value][/cb:if]

or

[cb:if user="#me" user_id<="0"]Anything[cb:else][value][/cb:else][/cb:if]

What we are trying to do is: If the user is guest show "Anything", but if the user registered > show the value, in the same time if the user is registered and the value is empty > don't show the field.

Currently if we enter anything in the Profile Value Layout, CB is not respecting the don't show the empty fields rule.

Please advice?
Last edit: 8 years 2 weeks ago by ricco1.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48711
  • Thanks: 8320
  • Karma: 1447
8 years 2 weeks ago #289906 by krileon
Replied by krileon on topic Show Empty Fields setting problem
If the value is null or empty string it'll be treated as empty in regards to that parameter. It must have some sort of value being output. It does a trim as well so leading or trailing spaces shouldn't affect it. So it'd have to be a linebreak or a non-breaking space maybe. What type of field is it? Have you checked _comprofiler to see what value is actually stored and trying to output?


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: ricco1

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

  • ricco1
  • ricco1
  • OFFLINE
  • Posts: 310
  • Thanks: 8
  • Karma: -7
8 years 2 weeks ago #289943 by ricco1
Replied by ricco1 on topic Show Empty Fields setting problem
Yes, sorry, you are right. I was using the Snippets extension which was entering some HTML comments.

Thank you.
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