fields diplayed only for user or group users

12 years 4 months ago #185852 by erilam
ok it works like that, thx a lot. I still have two questions more :

1- the line is occupied even if the field is hidden. It might be because CB consider that the filed is not empty so it display as an normal field, is it right ?

2- is it possible to make the same thing (display or not) with user list ?

Eric Lamy (erix)
www.agerix.fr/

Please Log in to join the conversation.

12 years 4 months ago #185937 by krileon

1- the line is occupied even if the field is hidden. It might be because CB consider that the filed is not empty so it display as an normal field, is it right ?

If the IF substitution returns nothing then it'll display nothing (and hide the field if hide empty fields is enabled). It's possible your WYSIWYG editor added a surrounding tag of <p> for example which would make the field always have content.

2- is it possible to make the same thing (display or not) with user list ?

Yup, just add the delimiter field to 1 of the 4 columns on your userlist.


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 to join the conversation.

12 years 4 months ago #186132 by erilam

krileon wrote:

2- is it possible to make the same thing (display or not) with user list ?

Yup, just add the delimiter field to 1 of the 4 columns on your userlist.


Hmm I mean if I have two list of users, listA and listB, is it possible for a user from listA to display a field on his profile just for user from listB ?

Eric Lamy (erix)
www.agerix.fr/

Please Log in to join the conversation.

12 years 4 months ago #186175 by krileon
Yes, using a delimiter field as long as you have a profile field that determines what list a user belongs to. Example as follows

Field 1
Type: Single Select Drop-down
Name: cb_profiletype
Title Profile Type
Values: List 1, List 2

Field 2
Type: Delimiter
Name: cb_name
Title: Name
Description: [cb:if user="#me" cb_profiletype="List 1"][name][/cb:if]


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 to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.203 seconds

Facebook Twitter LinkedIn