Skip to:
Content
Pages
Categories
Search
Top
Bottom

Cities Dropdown against selected country Dropdown


  • sibahmed
    Participant

    @sibahmed

    Hi i want some help that i want to make profile fields city dropdown which is that at the time of registration as a buddypress member when user select a country from country dropdown then against that country cities want to appear in city dropdown to select please help Thank You !

Viewing 1 replies (of 1 total)

  • Boone Gorges
    Keymaster

    @boonebgorges

    Hi @sibahmed, and thanks for the post!

    Unfortunately, BuddyPress doesn’t have these kinds of fields built in. They’re called “nested” or “conditional” fields, and they’ve been requested in the past – see https://buddypress.trac.wordpress.org/ticket/579. It’s a large job to build it as a feature for BuddyPress, though it’d be easier to build a custom tool for yourself that does this.

    If you’ve got the technical experience, you could a custom BP_XProfile_Field_Type, whose edit logic would contain the markup and JavaScript to enable these sorts of fields. I did some quick searching, and it looks like someone was writing this at some point – see https://rimonhabib.com/coming-up-next-buddypress-nested-conditional-fields/. Maybe worth following up there?

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.
Skip to toolbar