Skip to Content Skip to Menu

🌟Discover the Joomla AI Plugin that wrote its own story! - CB Editor Assistant 1.1now for Joomla 3, 4 & 5!
✍️ 5-Day Free Trial, then 🎯 save up to 30% with our 🛍️ Intro Offer (First 50 users, ends Dec. 25th)
🌲 Merry Christmas! Great savings on Professional and Developer Memberships! Get 25% off now with code XMAS-2024!

[SOLVED] CB Auto Action ?

  • krileon
  • krileon
  • ONLINE
  • Posts: 48616
  • Thanks: 8302
  • Karma: 1446
10 years 4 months ago #247626 by krileon
Replied by krileon on topic CB Auto Action ?
Warning message to appear where? Like dynamically as they type? Yes, that's doable if my assumption is correct. You'd need to use the before registration form trigger in a Code action with Method set to jQuery then write some jQuery to do what you're wanting.


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 or Create an account to join the conversation.

10 years 4 months ago #247668 by pasquale1980
Replied by pasquale1980 on topic CB Auto Action ?
During the registration in the textbox city I enter "Rome", after in the description field that is a text area, insert "Rome is the capital of Italy", now I would like to receive an alert Example: "In the description it is not possible to insert the name of the city"(it's good also using onBeforeRegisterForm), because Rome has been included in the description. I also found this post:
www.joomlapolis.com/forum/153-professional-member-support/191087-verify-email-with-cb-auto-action-on-registration?start=6
here check that the contents of the two fields is the same e-mail, is it possible adapt it using "Does Contain" instead of "Not Equal To"?
Thank you.

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48616
  • Thanks: 8302
  • Karma: 1446
10 years 4 months ago #247777 by krileon
Replied by krileon on topic CB Auto Action ?
No, that's a jQuery Validate rule. It has no support for "Does Contain". You'll need to write custom jQuery for what you're wanting then append it to the registration page using CB Auto Actions.


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 or Create an account to join the conversation.

10 years 4 months ago #247926 by pasquale1980
Replied by pasquale1980 on topic CB Auto Action ?
I tried in several ways but I can not, I do not know if it is sufficient:

`cb_textbox` LIKE '%[cb_textarea]%'

or

if `cb_textbox` LIKE '%[cb_textarea]%'
{
alert ("attention");
}
else
{
alert ("ok");
}

please, could you give me an example of how to set up the code JQuery in CB Auto Action? I have a textbox where I enter a name (eg. Rome) and a textarea where I post a free text (eg. Rome is the capital of Italy), since there is Rome in the textbox and Rome in the textarea I wish there was a warning.
Thank you.

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48616
  • Thanks: 8302
  • Karma: 1446
10 years 4 months ago #247952 by krileon
Replied by krileon on topic CB Auto Action ?
That's not valid JS. Please see the below site for some JS, jQuery, and more tutorials.

www.w3schools.com/

The below example should get you started.

Code:
$( '#cb_textbox' ).on( 'keyup', function() { alert( 'Field changed!' ); });


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 or Create an account to join the conversation.

10 years 3 months ago #249423 by pasquale1980
Replied by pasquale1980 on topic CB Auto Action ?
Hi, is it possible with CB Auto Action hide from the user menu items "View", "Messages" when there isn't a friend request accepted and make them visible only if there is a friendship between two users?
Thanks.

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum