Onchange field

hi everyone
how can I open a new window on field event onchange?

Marcov

Re: Onchange field

Hi,

yes, make an onChange Event (Ajax Events / New Ajax Event / your Field / onChange) and in the PHP-Code use sc_redir().

Re: Onchange field

or you can use javascript … on the onchange…
simple:

window.open(’…/app/app.php’);

Re: Onchange field

sc_redir() onchange event not working!

how can I pass parameters using window.open (’…/ app / app.php ')???

Re: Onchange field

Yes, my mistake …

Use javascript:


var field_value = document.F1.yourfield.value 
window.open("../your_new_form/your_new_form.php?param=" + field_value)

And in the new form in event onScriptInit use:


if (isset ($_GET['param']))

{
 // do what you want ...
}