Hi, I have a problem of return value in a dropdown list.
In fact, I have two dropdown lists related I load with RPG features, but the problem I have is that
the second list retains the last value read and I would like it to be empty until that we choose a new value in this second list.
choices values
-
- Profound User
- Posts: 25
- Joined: Mon Sep 23, 2013 7:08 am
- First Name: ALIMA
- Last Name: SECK
- Company Name: OO2
- Contact:
-
- Experienced User
- Posts: 2711
- Joined: Wed Aug 01, 2012 8:58 am
- First Name: Scott
- Last Name: Klement
- Company Name: Profound Logic
- City: Milwaukee
- State / Province: Wisconsin
Re: choices values
I'm not sure that I follow you. Are you saying that you set your drop down to blank, but Profound UI is changing it to the last value in the list?
Have you ensured that blank is one of the allowed choices?
Have you ensured that blank is one of the allowed choices?
-
- Profound User
- Posts: 25
- Joined: Mon Sep 23, 2013 7:08 am
- First Name: ALIMA
- Last Name: SECK
- Company Name: OO2
- Contact:
Re: choices values
no no I selected from an initial list of countries and in a second city.
In both lists have IDs that are returned as a return value.
The problem I have is the following:
when I choose for example FRANCE as a country and as a city ABANCOURT, return values are respectively 'FR' and 5.
When I choose Senegal as a country, the second list is always worth 5.
when I want it to be blank until I choose a city to Senegal.
In both lists have IDs that are returned as a return value.
The problem I have is the following:
when I choose for example FRANCE as a country and as a city ABANCOURT, return values are respectively 'FR' and 5.
When I choose Senegal as a country, the second list is always worth 5.
when I want it to be blank until I choose a city to Senegal.
-
- Experienced User
- Posts: 2711
- Joined: Wed Aug 01, 2012 8:58 am
- First Name: Scott
- Last Name: Klement
- Company Name: Profound Logic
- City: Milwaukee
- State / Province: Wisconsin
Re: choices values
So when you choose Senegal (in your example), you must have some code that is running to re-load the cities list, correct? when that code runs, can you blank out the variable connected to the 'value' property of the cities? That way, it won't be set to 5 anymore, right?
-
- Profound User
- Posts: 25
- Joined: Mon Sep 23, 2013 7:08 am
- First Name: ALIMA
- Last Name: SECK
- Company Name: OO2
- Contact:
Re: choices values
In my example, when I choose Senegal without any city, There are white at the second drop-down list, which is correct.
But the value of this second list (if it appears) always keeps the ID
5 matching ABANCOURT (the last selected city).
What is normal is that whenever I select a new country, the values of the second list should be empty ('choices and the choices values)
But the value of this second list (if it appears) always keeps the ID
5 matching ABANCOURT (the last selected city).
What is normal is that whenever I select a new country, the values of the second list should be empty ('choices and the choices values)
- Alex
- Profound Logic Staff Member
- Posts: 233
- Joined: Fri Jan 04, 2008 12:10 pm
- First Name: Alex
- Last Name: Roytman
- Company Name: Profound Logic Software
- Contact:
Re: choices values
See if the following webinar will help:
http://www.profoundlogic.com/webinars.r ... =305893618
I believe In the webinar, they demonstrate how to relate 2 dropdowns. They go through an example that is similar to yours.
http://www.profoundlogic.com/webinars.r ... =305893618
I believe In the webinar, they demonstrate how to relate 2 dropdowns. They go through an example that is similar to yours.
-
- Profound User
- Posts: 25
- Joined: Mon Sep 23, 2013 7:08 am
- First Name: ALIMA
- Last Name: SECK
- Company Name: OO2
- Contact:
Re: choices values
Thank you alex,
I can already link the two drop-down lists but my problem must be a problem with javascript.
In fact, when I choose a city, the name of the city is always kept even if I change the country.
However it is hidden at the list, you see only white.
Is it possible to empty the contents of the second list every time you move to another country?
I can already link the two drop-down lists but my problem must be a problem with javascript.
In fact, when I choose a city, the name of the city is always kept even if I change the country.
However it is hidden at the list, you see only white.
Is it possible to empty the contents of the second list every time you move to another country?
- Attachments
-
- at first
- Capture1.PNG (17.13 KiB) Viewed 1276 times
-
- Profound User
- Posts: 25
- Joined: Mon Sep 23, 2013 7:08 am
- First Name: ALIMA
- Last Name: SECK
- Company Name: OO2
- Contact:
Who is online
Users browsing this forum: No registered users and 10 guests