This topic is locked

Dropdown dependent not working

7/28/2009 1:32:11 PM
PHPRunner General questions
D
d_gan author

I have a "Package" field with dependent on Category control call "Application Type". It show only "Please Select" but there is no list.

It work until I have inserted this Script

<script>

document.forms.editform.value_Application_Type.onchange=function()

{

if(this.options[this.selectedIndex].value=='Business')

document.forms.editform.value_Company.disabled=false;

else

{

document.forms.editform.value_Company.disabled=true;

document.forms.editform.value_Company.value='';

}

{

if(this.options[this.selectedIndex].value=='Business')

document.forms.editform.value_BRC_No_.disabled=false;

else

{

document.forms.editform.value_BRC_No_.disabled=true;

document.forms.editform.value_BRC_No_.value='';

}

}

}
</SCRIPT



How do I make both of this work?

D
d_gan author 7/29/2009

Anyone, Please Help???

Sergey Kornilov admin 7/29/2009

I recommend to post your application to Demo Account (use 'Demo Account' button on the last screen in program). Then open a ticket at http://support.xlinesoft.com sending your Demo Account URL for investigation.

D
d_gan author 7/31/2009

Found work around by changing onchange to onclick.

I guest the phprunner dependend dropdown is using onchange too.