[SOLVED] Using conditional values form Date of Birth?

12 years 2 months ago #191698 by mike5151
Sorry that I misunderstood you.

I have changed the values of the conditional as you suggest but the auto action is still not delivering the desired result. Clearly, I have a setting wrong somewhere but I don't know where it is.

Kind regards

Mike

Please Log in to join the conversation.

12 years 2 months ago #191699 by nant

mike5151 wrote: Sorry that I misunderstood you.

I have changed the values of the conditional as you suggest but the auto action is still not delivering the desired result. Clearly, I have a setting wrong somewhere but I don't know where it is.

Kind regards

Mike


This worked for me as a quick test


Attachments:

Please Log in to join the conversation.

12 years 2 months ago #191702 by mike5151
Thank you Nick

That is exactly (apart form the dates) what I have in the auto action - is there anything that I need to have done in the text field itself? Or is there any other setting parameter that I may have inadvertently switched that would prevent auto action form working?

Kind regards

Mike

Please Log in to join the conversation.

12 years 2 months ago #191709 by nant

mike5151 wrote: Thank you Nick

That is exactly (apart form the dates) what I have in the auto action - is there anything that I need to have done in the text field itself? Or is there any other setting parameter that I may have inadvertently switched that would prevent auto action form working?

Kind regards

Mike


Works for me on J251, CB 1.8 RC2 and CB Auto Actions 2.4

Please Log in to join the conversation.

12 years 2 months ago #191712 by mike5151
OK - I'll upgrade to the RC uipgrades and see if that helps.

Please Log in to join the conversation.

12 years 2 months ago #191779 by krileon
Latest release of CB Auto Actions allows for a date formatting function (next release will have more format functions). For example you probably want to do the below.

strototime(cb_dob) Greather Than or Equal To strtotime(2000-01-01)
strototime(cb_dob) Less Than or Equal To strtotime(2012-01-01)

This will turn the values into strtotime values which is much easier for PHP to compare 2 dates when in such a format.


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

Facebook Twitter LinkedIn