Welcome to the nuBuilder Forums!

Register and log in to access exclusive forums and content available only to registered users.

Working with dropdown

Post Reply
mujib
Posts: 2
Joined: Thu Sep 03, 2015 7:03 pm

Working with dropdown

Unread post by mujib »

I want to filter the options to display in the second dropdown list ('city') based on selected value from previous dropdown ('state') instead of displaying all 'cities' options. So that only the cities of selected state will be popup.

How can I do this in nuBuilderPro?
How do I capture the id of 'state' (first dropdown)?

Thanks in advance
Mujib
admin
Site Admin
Posts: 2814
Joined: Mon Jun 15, 2009 2:23 am
Been thanked: 25 times

Re: Working with dropdown

Unread post by admin »

mujib,

The simplest way is by using a Lookup instead of a Dropdown, because a Lookup uses a Form and that Form can be filtered using Hash Variables from the Edit Form you are on.
city1.PNG
An even better way is create a Form that links State and City and just use 1 Lookup to choose both. (A Lookup used properly is so much easier to use than 2 dropdowns)
And if you want to store city and state in different fields you can by using Update Other Fields.
city2.PNG
Steven
You do not have the required permissions to view the files attached to this post.
mujib
Posts: 2
Joined: Thu Sep 03, 2015 7:03 pm

Re: Working with dropdown

Unread post by mujib »

Thanks a lot Mr. Steven.
admin
Site Admin
Posts: 2814
Joined: Mon Jun 15, 2009 2:23 am
Been thanked: 25 times

Re: Working with dropdown

Unread post by admin »

.
Post Reply