Auto populate fields based on another field in registration form of jomsocial

Hi,

We are using jomsocial. we need ajax kind of fields for load dynamically when registering the user  

example : take two fields state and city ..suppose is i selected particular state i am able to view the cities of the state in city field .how it can be done

Thanks & Regards
Byteridge
LVL 2
ByteridgeAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

ByteridgeAuthor Commented:
Briefly : update field based on another field
0
leakim971PluritechnicianCommented:
0
ByteridgeAuthor Commented:
first i need how to achieve this
0
leakim971PluritechnicianCommented:
1 - create a new table for cities with a "state" field, good to have a primary key
2 - insert all cities (with their state) in the table
3 - when the user achieve to enter the state (you use the onblur event) you do an ajax call to try to get a list of citie for the state, you can use a dropdown or with jquery an autocomplete object (http://bassistance.de/jquery-plugins/jquery-plugin-autocomplete/)

So you need :
- ajax page to return an array of cities from a given state
- a javascript to do the ajax call that handle and create options from an array of cities
0
ByteridgeAuthor Commented:
Jomsocial guys are going to add this functionality in future
..plz refer this url :
 http://uservoice.jomsocial.com/forums/4333-general/suggestions/74155-hide-empty-fields-more-field-types-and-dependabl
 
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Joomla

From novice to tech pro — start learning today.