I am trying to populate a dropdown in infopath form, based on xml returned by a sharepoint webservice. (I know what u are thinking, why code? I need to perform some business logic before populating it)
The problem i am facing is that I do not know how to add the items to the drop-down.
I found this, http://social.msdn.microsoft.com/Forums/en-US/sharepointinfopath/thread/c9593115-24c1-4c3c-960e-3149916f3fdb
It does exactly what I need, however its not in VB script, and I am not familiar with converting it over to vb script.
Is there a method or way to clone an item of an item from the dropdown and append to it in VBS.
copyitem = DOM.SelectSingleNode("//my:myFields/my:fldChoices").clone()
copyitem.displayname = "";
copyitem.value = "";
dropdown.append(copyitem)
thanks in advance