I have one question to add to this - this was posted in another thread - the
code below allows you to populate a text box from selections made in a Drop
Down List (my question appears after the code):
If you noted the Programming Language as JScript, then add the following
code immediately before the last "closing brace" ("}"):
if(eventObj.Operation == "Insert")
{
var objField2 = XDocument.DOM.selectSingleNode("//my:myFields/my:field2");
if(objField2.text == "")
{
objField2.text = eventObj.Site.text;
}
else
{
objField2.text = objField2.text + ", " + eventObj.Site.text;
}
objField2 = null;
}
where in that code can I insert (and what code for that matter) something to
be able to separate the value/list that the person chooses?
For example, in the code above, as the person chooses different values, in
the
text box, it inputs them continuosly, i.e., Value1, Value2, Value3, (like a
sentence) etc...
I need mine to be listed vertically.....i.e.,
value1
value2
value3, etc.
Ideally, if each value chosen would start with a bullet or a dash, that
would be even better
: )
Just from hanging around this forum I've learn so much - it's great that its
available.
To all of you who provide us "non Tech" folks the answers - THANK YOU!!!! -
It's greatly appreciated......
Ramana - 27 Apr 2007 13:44 GMT
Hi,
Check out this link,
http://www.infopathdev.com/forums/thread/19371.aspx
I hope this will help you.

Signature
k.Ramana Reddy
http://www.autonomysystems.com
> I have one question to add to this - this was posted in another thread - the
> code below allows you to populate a text box from selections made in a Drop
[quoted text clipped - 42 lines]
> To all of you who provide us "non Tech" folks the answers - THANK YOU!!!! -
> It's greatly appreciated......
BostonCC - 27 Apr 2007 13:58 GMT
Thanks for the reply -
I tried your suggestion but it's not working. It is still doing the same
thing.
:(
> Hi,
>
[quoted text clipped - 49 lines]
> > To all of you who provide us "non Tech" folks the answers - THANK YOU!!!! -
> > It's greatly appreciated......
BostonCC - 27 Apr 2007 16:38 GMT
perhaps adding a code to the script is where the fix would occur?
does anyone have an answer? Thanks alot
> Thanks for the reply -
>
[quoted text clipped - 56 lines]
> > > To all of you who provide us "non Tech" folks the answers - THANK YOU!!!! -
> > > It's greatly appreciated......
BostonCC - 30 Apr 2007 11:18 GMT
Can anyone help me with this problem?
> perhaps adding a code to the script is where the fix would occur?
>
[quoted text clipped - 60 lines]
> > > > To all of you who provide us "non Tech" folks the answers - THANK YOU!!!! -
> > > > It's greatly appreciated......
BostonCC - 30 Apr 2007 12:30 GMT
Here's the answer provided in another forum....IT WORKS..
Instead of "," put "\r\n"
like this
Instead of "objField2.text = objField2.text + ", " + eventObj.Site.text;"
write "objField2.text = objField2.text + "\r\n " + eventObj.Site.text"
hope this will help you.
--------------------------------------------------------------------------------
B.Shiva Prasad
InfoPath Dev, India
> Can anyone help me with this problem?
>
[quoted text clipped - 62 lines]
> > > > > To all of you who provide us "non Tech" folks the answers - THANK YOU!!!! -
> > > > > It's greatly appreciated......