Need help with accessing form elements

Hello,

I am using the script in the URL I provided.
I open a modal message, and I need to change some values in a form in the document that opened the modal message depending on selection I make within the modal window.
How do I do that?  
Basically I am trying to do the same thing as wen trying to access elements of a parent window when using javascript:window.open(), however this does not work here.

Thnx
spairusAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Michel PlungjanIT ExpertCommented:
just use

document.getElementById('formFieldId').value='whatever'
or
document.forms[0].fieldName.value='whatever'
there is no opener
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
spairusAuthor Commented:
Hello mplungjan,

Thats exactly what I was trying to do, but I get the message that document.formname has no properties, although it does exist
0
spairusAuthor Commented:
You were right, document.getElementById('formFieldId').value='whatever' did work. I don't know why using document.forms[0].fieldName.value='whatever' doesent work, but it doesent matter. Thnx.
0
Michel PlungjanIT ExpertCommented:
Perhaps the field is not in the form?
I said document.forms[0] and you said document.formname has no properties....

so how did you access it and how does the form tag look like?
And does the field have a name or only an ID

0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Scripting Languages

From novice to tech pro — start learning today.