[#2765] cb if on select field

12 years 7 months ago - 12 years 7 months ago #176226 by jfadeuilhe
[#2765] cb if on select field was created by jfadeuilhe
cb_crabstatut is a select field, values "Non", "Enfant", "Adulte", etc..

[cb:if cb_crabstatut="Enfant"]30€[/cb:if]

don't work, why ??

[cb_crabstatut]

don't work and display "[cb_crabstatut]" (text field works), but

[cb:userfield field="cb_crabstatut" /]

work and display value...


Help !

Merci d'avance...

Please Log in to join the conversation.

12 years 7 months ago #176254 by jfadeuilhe
Replied by jfadeuilhe on topic Re: cb if on select field
En complément :

[cb:if [cb:userfield field="cb_crabstatut" /]="Enfant"]30€[/cb:if]

ne fonctionne pas non plus.

Please Log in to join the conversation.

12 years 7 months ago - 12 years 7 months ago #176303 by krileon
Replied by krileon on topic Re: cb if on select field
Currently there's a bug regarding select field types substitutions in CB 1.7. The bug ticket as well as proposed fix can be found at the below forge link.

forge.joomlapolis.com/issues/2713


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

Please Log in to join the conversation.

12 years 7 months ago - 12 years 7 months ago #176360 by jfadeuilhe
Replied by jfadeuilhe on topic Re: cb if on select field
OK, Resolved, cool !

I Take the patch

Yes, {cb:[cb_crabstatut]} work now directly, but {cb:[cb:if cb_crabstatut="Enfant"]30€[/cb:if]} don't :(

Je croise les doigts...

I try more :

[cb_crabstatut] -> Adulte
[cb:if cb_crabstatut!="Adulte"]30€[/cb:if] -> 30€
[cb:if cb_crabstatut="Adulte"]30€[/cb:if] -> Nothing
[cb:if [cb_crabstatut]!="Adulte"]30€[/cb:if] -> Nothing
[cb:if [cb_crabstatut]="Adulte"]30€[/cb:if] -> Nothing

Please Log in to join the conversation.

12 years 7 months ago - 12 years 7 months ago #176370 by jfadeuilhe
Replied by jfadeuilhe on topic Re: cb if on select field
I have dream : [cb:else] :-)

[cb:if cb_crabstatut!="Passager"]Non[cb:else]Oui[/cb:if]

Please Log in to join the conversation.

12 years 7 months ago #176441 by krileon
Replied by krileon on topic Re: cb if on select field
I agree, that'd be a good feature to have. Have created a feature ticket as follows.

forge.joomlapolis.com/issues/2765


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.236 seconds

Facebook Twitter LinkedIn