Group Mods

  • Profile picture of @mercime
  • Profile picture of r-a-y
  • Profile picture of Hugo

Want to create smarts fields in Registration like facebook !!! (4 posts)

Started 7 months, 3 weeks ago by: mycreativeway

  • Profile picture of mycreativeway mycreativeway said 7 months, 3 weeks ago:

    I’m working on Educational community website, where students will create their accounts. In that registration form I want to Include their current location, College, Current city, Year of passing and so on. But I just want to add smart fields when they register.

    For example:

    If while registration, a student click on the field called ‘College’, he will add its name manually :
    some will type : ” St.xavier’s college ”
    some will only type: ” St.xavier’s ”
    I dont want that case.

    So i want to make it like if student type just “St. ” he will get list of colleges in dropdown starting with ‘St.’. something like facebook profile fields.

    I hope you are getting me !!!

  • Profile picture of Anthony Anthony said 7 months, 3 weeks ago:

    Hi, This sounds like a real head scratcher, but I found some things you could get started with, http://devthought.com/2008/01/12/textboxlist-meets-autocompletion/ and http://www.brandspankingnew.net/specials/ajax_autosuggest/ajax_autosuggest_autocomplete.html I found them at http://www.noupe.com/tools/100-essential-web-development-tools.html Maybe writing a plugin that applies them to a text field in the BuddyPress custom fields. Thanks for asking for my help :)

  • Profile picture of mycreativeway mycreativeway said 7 months, 2 weeks ago:

    Hey, Anthony thanks….

  • Profile picture of Roger Coathup Roger Coathup said 7 months, 2 weeks ago:

    @mycreativeway

    jqueryui has an autocomplete widget you can work with (or have a look at the older autocomplete plugin that’s used already in BuddyPress for usernames e.g. when you send a message). http://jqueryui.com/demos/autocomplete/

    The correct way to set up it up in a WP environment is by getting the autocomplete plugin to make an AJAX request to admin-ajaxurl, which will call on to an action that you create to return suggested names.

    It’s not straightforward, but a Google around will retrieve details on how to best setup an Ajax call in WP – alternatively the book “Professional WordPress Plugin Development” has a good chapter on it.