Javascript value to a Formula?

Hi, i have this situation:on a web based Form users can select checkboxes and click Action. The action button will open a Form in a popup window.

From there i can access values with Javascript using window.opener.

But i need to fill some fields before the page is displayed. A WebQueryOpen agent can’t do this i think?

So i thought of using a javascript function in a computed field. Can this be done?

Like eval(javascript…)

For example a field has to get the value

window.opener.document.forms[0].CheckBox.value.

I don’t want to save this window.opener so i can’t inherit the fields :frowning:

Any suggestions?

Subject: Javascript value to a Formula?

Create a query string in your window.open call to pass the values and then parse them out into the fields in the new window…no inheritance required…

Subject: RE: Javascript value to a Formula?

Thanks, but of course i did think of that.The querystring is too long however.

The checkbox is a list of documents so it can have a lot document unique id’s.

I would like the popup window to check the parent form to see what’s selected.

This works fine using javascript, but i’m unable to use these values in the form because the field formula’s are computed before the onLoad event starts.

It should be in QueryWebOpen agent or in the first computed field, but i don’t know how.