cb_conditional and CBCubs

12 years 5 months ago #181185 by erilam
cb_conditional and CBCubs was created by erilam
Hello everybody,

I need to put a condition on a plan type for profile edit (required or not) so how can do for that ?
I try to put a query result in field text from CBSubs SQL actions but it doesn't work.

in CBSubs :
REPLACE INTO `jos_comprofiler` SET `cb_typeadherent` = '1'
WHERE user_id = '[user_id]';

in CB field:
field conditional self - if cb_typeadherent = 1 then field is required 

Registration: enable		
Profile Edit: diseable		
Profile View: enable
If you had a solution it will be great !
Thank you for answers

Eric Lamy (erix)
www.agerix.fr/

Please Log in to join the conversation.

12 years 5 months ago #181191 by krileon
Replied by krileon on topic Re: cb_conditional and CBCubs
The above is correct except if you're wanting it to work on profile edit you've disabled it for profile edit. Switch "Profile Edit" to "Enabled" and it should also function in profile edit. Those parameters allow you to select where exactly the condition is allowed to work (please read tooltips carefully next to fields).


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

Facebook Twitter LinkedIn