Skip to Content Skip to Menu

Ajax text field | hide for visiter if empty ?

13 years 2 months ago - 13 years 2 months ago #172833 by pepperstreet
Ajax text field | hide for visiter if empty ? was created by pepperstreet
Hello,
the AJAX text field is really cool. I know, it is supposed to be a frontend action. And in general a "click here" or some other visual hint is displayed for the owner...
But how do I hide such a field for the visiter, if it is still empty? The owner may not enter some text, or he decides to do it later. Than I have an empty, collapsed bubble graphic. That looks really odd.

EDIT:
Additionally, I tried the CB Privacy plugin. I can see and change the privacy setting, but it has no effect.
Last edit: 13 years 2 months ago by pepperstreet.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48424
  • Thanks: 8274
  • Karma: 1443
13 years 2 months ago - 13 years 2 months ago #172944 by krileon
Bubble is purely CSS, it displays the same way any field does. You should be able to set CB > Configuration > User Profile to not display empty fields; can't guarantee this will work for the ajax field as it has custom code that is returned. CB Privacy has no affect when you're viewing your own profile or if a moderator is viewing the profile.


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.
Last edit: 13 years 2 months ago by krileon.

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

13 years 2 months ago - 13 years 2 months ago #172952 by pepperstreet
Replied by pepperstreet on topic Re: Ajax text field | hide for visiter if empty ?
Thats why i am asking... the user are simple registered users. I also checked the global empty field setting... it seems not to work for the Ajax field. At the moment I am clueless...

EDIT:
By the way, what is the differencr between the first and last parameter option "discrete" and "hidden" ?
Last edit: 13 years 2 months ago by pepperstreet.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48424
  • Thanks: 8274
  • Karma: 1443
13 years 2 months ago - 13 years 2 months ago #173006 by krileon
Given custom code is rendered, the field is never empty so the empty parameter probably won't work. Discrete display and hidden display don't have a whole lot of differences. It's mainly a different CSS class to allow better styling. The main difference is hidden changes the background for the input to transparent.


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.
Last edit: 13 years 2 months ago by krileon.
The following user(s) said Thank You: pepperstreet

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

Moderators: beatnantkrileon
Powered by Kunena Forum