add extra information based on a dropdown choice

V

virgul

Hi,


I have a dropdown list based on the secondary data source and I wan't
that when I select a name infopath automaticaly populate the field
location. Is there any way to do that without code?
Thanks

Thierry

++
 
V

virgul

I have try with rules but how to define the position of the location to
take?

ex:
This is send by a webservice in the secondary data source
My dropdown Name: Albert, David, Tom
Field location posibility: Ny, LA, Chicago

I have define a rules on my dropdown : if dropdown is not empty the
value of field location is they location.
But that send me always NY with all of my choice (Albet, David, Tom)
who I can define a position of my name?
Thanks for your suggestion

++

Thierry
 
V

virgul

I have try to do with rules but I have a probleme how to say to
infopath that he takes the same markup als the name I explian me:

Dropdown : Fred Ford, Albert Noah, David Henry
They live: LA, NY , Chicago

in my dropdown what is the correct rules for define where they live in
the field location.

If I do a rule when dropdown is not empty and I Change the value of the
field location by where they live. infopath send only the first "LA"
For all name that I select.

ex: Albert Noah live in NY not in LA

So what is the correct XPath expression for take the correct location (
a count or what) ?

Thanks

++
 
V

virgul

Ok stupid question I have found my solution in infopathdev.com
Thanks Greg

++

Thierry
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top