Use of $form->dropDownList in Javascript inner.html

Hi everyone,

I am trying to use a simple javascript function to append a div to a create form in order to add multiple rows.

I am able to do this successfully with $form->textField and $form->textArea within the javascript innerHTML function but when I try to use $form->dropDownList the script stops working.

Has anybody else run into this problem? Is there an alternate syntax to use inside of HTML to render a dropDownList?

EDIT: if I change the dropDownList to anything but listBox it will render the form. I have no idea why $form->dropDownList wont work but $form->"anythingElse" will.

Many thanks,

Chris

Hi, i am not quite sure what are you trying to accomplish. Do you want to populate dinamically a dropdown list after you add a new record?

Could you past an example or code snippet related with what you are trying to do?

Thanks and my best regards…