Skip to Content Skip to Menu

Filling Registration Form Fields dynamicalle

  • mkodeih
  • mkodeih
  • OFFLINE
  • Posts: 2
  • Thanks: 0
  • Karma: 0
10 years 2 months ago #248122 by mkodeih
I would like to see how i can fill a field automatically by querying the database based on a selection made by the user on a previous field.
For example I have two fields entitled category1 and category2 , which are both query drop down fields. The first has the same set of data whereas the second shows different options depending on the choice made in category1.

Any idea how to implement that using CB plugins. What are the plugins to use and how to pass the parameter indicating the first choice to the second field ?

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48479
  • Thanks: 8282
  • Karma: 1443
10 years 2 months ago #248136 by krileon
Replied by krileon on topic Filling Registration Form Fields dynamicalle
We've no plugin available to do that. CB Query Field has no ajax features except for validation its Query Validation, which doesn't do what you're wanting. You'd need to modify the plugin and implement additional ajax usage.


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.

  • mkodeih
  • mkodeih
  • OFFLINE
  • Posts: 2
  • Thanks: 0
  • Karma: 0
10 years 2 months ago #248157 by mkodeih
Replied by mkodeih on topic Filling Registration Form Fields dynamicalle
Thank you for your reply. Would you recommend any tutorials or documentation that would help with respect to plugin development.
Furthermore, which plugin do I need to modify, the CB Query ?

Thanks.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48479
  • Thanks: 8282
  • Karma: 1443
10 years 2 months ago - 10 years 2 months ago #248183 by krileon
Replied by krileon on topic Filling Registration Form Fields dynamicalle

Would you recommend any tutorials or documentation that would help with respect to plugin development.

No, your usage is too specific to document except for the Ajax endpoint, which CB Query Field already has for its validation.

Furthermore, which plugin do I need to modify, the CB Query ?

Yes, you'd need to implement for it to refresh it self when a specific field changes or maybe when any value in the form changes. You'd need to write custom jQuery for that then add a new function handling IF to the Ajax endpoint (function fieldClass) for the field.


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.
Last edit: 10 years 2 months ago by krileon.
The following user(s) said Thank You: mkodeih

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

Moderators: beatnantkrileon
Powered by Kunena Forum