Drop Down List URGENT HELP NEEDED!!!

B

BostonCC

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......
 
B

BostonCC

Thanks for the reply -

I tried your suggestion but it's not working. It is still doing the same
thing.

:(
 
B

BostonCC

perhaps adding a code to the script is where the fix would occur?

does anyone have an answer? Thanks alot
 
B

BostonCC

Can anyone help me with this problem?

BostonCC said:
perhaps adding a code to the script is where the fix would occur?

does anyone have an answer? Thanks alot
 
B

BostonCC

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.
 

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