Skip to Content Skip to Menu

Edit Custom Field Script (onchange) value

  • wanttobe
  • wanttobe
  • OFFLINE
  • Posts: 1
  • Thanks: 0
  • Karma: 0
7 years 11 months ago #288106 by wanttobe
I use your Community Builder component, and i create a custom field for registration and profile.
but i want to add some function, lets says;
1. i created a custom field (drop down single select) named provinces
2. i also created a custom field (drop down single select) named city

what i want is;
when i select some value on Province field, the value for city will change according to what i pick/ select on Province Field.
example;
when i select AAA on Province field, in the city field, there are A1, A2, A3, A4, A5
when i select BBB on Province field, in the city field, there are B1, B2, B3, B4, B5
when i select CCC on Province field, in the city field, there are C1, C2, C3, C4, C5

how can i do that?

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48512
  • Thanks: 8286
  • Karma: 1444
7 years 11 months ago #288121 by krileon
Replied by krileon on topic Edit Custom Field Script (onchange) value
CB Query Field and its Update On functionality can provide chaining like that. Basically 1 query grabs the countries and when it changes it updates provinces which queries for provinces of the selected country, etc.. Aside from that you'll need to custom code your own fieldtype plugin to do it.


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