clearing Drop down items with script

G

Gavin Pollock

Hey there,

I've set up 3 drop downs with OnAfterChange events, that when the value of
the next one's list is re-populated from querying Secondary Data Sources
which are web services... using the sample code I've found on the groups.

However, I think I need to clear the values of the children drop downs
because when I change a higher up level, the data remains in the lower ones.

How can this be done with script? I'm not entirely proficient with the DOM
yet!

Thanks,
Gavin
 
G

Gavin Pollock

Aha... got it. Thought I tried that, and it still wasn't working, but I
hadn't put the Rule on the 3rd dropdown as well. Now it's working fine.

Thanks!

"Greg Collins [InfoPath MVP]" <Greg.Collins_AT_InfoPathDev.com> wrote in
message You should use a Rule instead of script. It's much easier.

Create a rule with no condition that set's the value of the next drop-down
list in the cascading set to "". Then that one has a rule that does the same
to the next one, and so on.

--
Greg Collins [InfoPath MVP]
Please visit: http://www.InfoPathDev.com



Hey there,

I've set up 3 drop downs with OnAfterChange events, that when the value of
the next one's list is re-populated from querying Secondary Data Sources
which are web services... using the sample code I've found on the groups.

However, I think I need to clear the values of the children drop downs
because when I change a higher up level, the data remains in the lower ones.

How can this be done with script? I'm not entirely proficient with the DOM
yet!

Thanks,
Gavin
 

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