Closed GoogleCodeExporter closed 9 years ago
[deleted comment]
OK, I figured out that I had misunderstood the "preselect" option. I needed to
specify the form field and value, like: LOC_ID:"13:AK"
Well, I did this, but it doesn't quite work.
If I set preselect to Alaska, I get the initial "Choose..." select with the
list of
countries. Only if I select "United States ==>" do I get Alaska preselected.
I need for it to start off with United States *and* Alaska selected when I
first
display the form.
Original comment by psyclo1...@gmail.com
on 14 Jul 2009 at 6:02
[deleted comment]
This behaviour was by design - as you could see on the demo page, option values
in
the tree are not unique, for example you could have an option with the same
value in
each tree "branch" - so the plugin wouldn't know which option to choose from.
However, now I can see that the use case you presented is pretty common and
I'll try
to find a way to achieve that behaviour. Of course, any patches are more than
welcome.
Original comment by kkotowicz
on 6 Aug 2009 at 7:16
It is now (as of version 1.2) possible to pass an array of values for the
preselect option for a given field, so in your case it would be:
{"LOC_ID": ["United States","Alaska"]}
and it should work OOTB.
Original comment by kkotowicz
on 6 Oct 2010 at 8:54
Original issue reported on code.google.com by
psyclo1...@gmail.com
on 14 Jul 2009 at 2:30