Jump to content

FORM dropdown list from script


FiGi
 Share

Recommended Posts

Hi,

I have a little problem going through a form that looks like this:

Posted Image

I can easily select what i want from the 3 option lists on the left

$oForm = _IEFormGetObjByName ($oIE, "rejestrowanie")
$oSelect = _IEFormElementGetObjByName ($oForm, "lista_klient")
_IEFormElementOptionselect ($oSelect, "745")

, but the options list on the right is built with a script:

poz = 1;
        czynnosc.options.length = poz;
        for (key in czynnoscArray)
        {

                  czynnosc.options.length = poz+1;
                  czynnosc.options[poz].text = czynnoscArray[key];
                  czynnosc.options[poz].value = key;
                  poz++;

        }


        if(lista_grupa.selectedIndex!=0)
        {

and using the same method as above it just doesn't work :)

Can anyone help me with this? ...Thanks in advance

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...