Skip to Content Skip to Menu

🕒 Save Time and Effort with CB Editor Assistant: Effortlessly create and refine content in Joomla 3, 4, & 5.
🎁 Limited Offer: Enjoy a 5-day FREE trial and save up to 30% afterward!

Ajax Autocompletition script for postal codes

  • krileon
  • krileon
  • ONLINE
  • Posts: 48709
  • Thanks: 8319
  • Karma: 1447
12 years 2 months ago #215315 by krileon
I don't know, as I said we don't help with custom coding. That maybe work an you should be able to use CB Auto Actions to add the jQuery to the header, but you'll need to have the database working and the endpoint working (AutoCompletion.php). The best approach is to develop a new fieldtype plugin to better provide this as ajax response api is available for fieldtypes.


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.

  • selor
  • selor
  • OFFLINE
  • Posts: 32
  • Thanks: 1
  • Karma: 1
12 years 2 months ago #215331 by selor
the strange thing is there is a lot of form who use this postal autocomplete code in the world and that is terrible that its too complicated to implément that in CB ...
I was thinking that pay and use autoaction + dblookup + such cb plugin will permit to achieve that things or things like auto uppercase in realtime in the form registration process for the user ...

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48709
  • Thanks: 8319
  • Karma: 1447
12 years 2 months ago #215337 by krileon
It's truly not that complicated as you don't have to do any deep level programming. It's all low level programming and configuration (mostly copy and paste to CB Auto Actions if code already exists an works).

DB Lookup field can be used to check the users input against the database and report a response based off that. It's not an auto complete nor is it advertised as such, but I suppose it could somewhat be used like one.

CB Auto Actions can be used to add the jQuery to the registration form very easily. It can also be used to add jQuery that uppercases inputs as you're wanting. You of course need to code said jQuery.


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.

  • selor
  • selor
  • OFFLINE
  • Posts: 32
  • Thanks: 1
  • Karma: 1
12 years 1 month ago #215599 by selor

krileon wrote:
CB Auto Actions can be used to add the jQuery to the registration form very easily. It can also be used to add jQuery that uppercases inputs as you're wanting. You of course need to code said jQuery.


OK thanks for the answer Krileon :)

I have made some test but i think i doesnt understand the good trigger to choose if i want to auto uppercase in the field during the registration.
Which trigger choose ? "the user is entering is lastname and when he go to the second field the lastname is switched to uppercase.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48709
  • Thanks: 8319
  • Karma: 1447
12 years 1 month ago #215640 by krileon
You'd use the before registration form display trigger in a Code action with method set to jQuery then add whatever jQuery you need to the Code block.


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.

Moderators: beatnantkrileon
Powered by Kunena Forum