Hello and Happy New Year to all.
One of my forms populates key words within the text of another
letter-like form.
I need to take all selections in a multiple selection list box and have
them display in another text box as a list separated by commas
concatted to a boilerplate phrase.
When I concat this control with the phrase, all that's picked up is the
first box checked and no more.
Thanks for any and all help with this. I'm new to Infopath, so please
keep it as simple as you can for me.
Mike
Happy New Year to you also,
I place a button and a multiple list box (name mlb) on a empty form. Added
some jscript code:
function CTRL5_5::OnClick(eventObj) {
var multipleListBoxField = XDocument.DOM.selectSingleNode("//my:mlb");
var groupField =
XDocument.DOM.selectNodes("/my:myFields/my:group1/my:mlb");
for (i=0; i< groupField.length; i++) {
//Obtain the item. var item = groupField.item(i);
XDocument.UI.Alert(item.text); // here change to do with the values
what ever you want..
}
}
You now can access all the values selected in the multiple list box and do
with it whatever you want..
Regards,
Marcel
> Hello and Happy New Year to all.
>
[quoted text clipped - 11 lines]
>
> Mike
mptrauber - 31 Dec 2006 19:17 GMT
Thanks much, but I'm probably a year away from the proficiency level
that would allow me to take advantage of your kind advice.
I apologize, but I still need instruction on the "open this, click
that" level.
Thanks
> Happy New Year to you also,
>
[quoted text clipped - 34 lines]
> >
> > Mike