[SOLVED] CB field Query output substitution

8 years 3 months ago - 8 years 3 months ago #276692 by activha
Hi

Using a query field I have an output with a value of 0 or 2 and I would like to use cbif to condition the display in a list display

Is it possible to use somewhere in a list display column:

[cb:if cb_pme_status ="0"]<div class="bs-callout bs-callout-info"><p class="h3 text-success">Compte actif</p></div>[/cb:if]
[cb:if cb_pme_status!="0"]<div class="bs-callout bs-callout-warning"><p class = "h3 text-danger">Compte inactif</p></div>[/cb:if]


Thanks

Please Log in to join the conversation.

8 years 3 months ago #276708 by krileon
Replied by krileon on topic CB field Query output substitution
You should be able to use a query field in substitution IF statements since we fixed it to use getFields API awhile back. You can use that in a Custom HTML field or use the Layout functionality to replace the Userlist Value Layout on the query field directly to change how it appears on userlists then just place the query field directly on the 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.

8 years 3 months ago #276710 by activha
Replied by activha on topic CB field Query output substitution
Opuses sorry completely forgot about the user list layout in the query field :-(

Of course ;-)

Thanks anyway

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.211 seconds

Facebook Twitter LinkedIn