JavaScript, the Web and computed fields - how to display?

I very rusty at Javascript and I can’t get what I would think a very simple thing to work. I want to have a computed type of field display a value on a form. The database is set to generate javascript, and I have to form to treat feilds as HTML and auto refresh …

I have a form, two fields…

myTest4 ----------- (text & editable)

myTest4Dis ------------- text, computed for display, (also tried computed) with a default value of … myTest4 (the editable field)

there is a button on the form with this javaScript code…

document.forms[0].myTest4.value = “blah”;

When I click the button, myTest4 is set to blah, but myTest4Dis doesn’t show anything. I tried deleting the button and then used this with pass through HTML …

No result in the computed field. I’ve tried to directly add the value to the computed field, no good.

With this, how do I display values in a computed type field on the web??? I goal is to display multi values with new lines in the computed field, but even as a single value, I can’t get it to work… blah!!

Subject: JavaScript, the Web and computed fields - how to display?

The auto-refresh usually doesn’t auto-refresh unless a multi-value field is changed (radio button, combobox).

Have you thought about playing with a div or span instead of a computed field?

Give a span an id </> then when you do the

document.forms[0].myTest4.value = “blah” you can have another call that does a document.getElementById(“mySpan”).innerHTML = document.forms[0].myTest4.value;

Subject: RE: JavaScript, the Web and computed fields - how to display?

Thanks very much for your help, I think I can get to work. As i said, it’s been a while!

Again, thanks !!!

Subject: JavaScript, the Web and computed fields - how to display?

wow, I just noticed that ac ac just post almost the same problem …

http://www-10.lotus.com/ldd/nd6forum.nsf/DateAllThreadedweb/380f6d1ae17b0caa852574dc0048dd80?OpenDocument

I wonder if Wall Street is starting to have an impact on us??

(sorry, but a little humor these days only helps!!)