I am trying to add a postcode lookup to the registration form on our site. I have used CB Auto Actions to load the jquery code which performs the lookup, I just need to put in <div id="lookup_field></div> to show the postcode entry form and lookup button. How can I do this in a CB field? I have tried to do it in a Custom HTML field and in a Code field with no success.
To check the script was loading correctly, I put the <div> in the page header and it works properly. Link below shows it in the header.
You'd just add it to a Custom HTML field and set it to display on registration. Your jQuery could also just dynamically create the div if you wanted. My guess is it's not an issue with the field output, but probably how your jQuery is binding to it. I recommend onAfterRegisterFormDisplay trigger when loading in extra jQuery on registration page.
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.