• Resolved dkurth

    (@dkurth)


    Hi,
    Strange bug. I have 4 different select box fields in my system. The Country and State display he associated selection options (say you have Canada, united states and mexico, if I fill the field with Canada, it display Canada). I am doing an override for the loading of the fields and that has been working beautifully…except these two select boxes.

    Is there some kind of setting that I don’t know about that would tell the code to match one of the options submitted in the field? Instead of taking only the first item available. Don’t know where to look at this point.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter dkurth

    (@dkurth)

    Wrote too quick…classic (lol). Figured it out. For others, if they have the same problem. It is caused by the labeling in the array. This is how I fixed it:

    
    foreach ($products as $product) 
         {	 
         $ProductName = $product->get_name();
         $RowIndex    = $ProductName;		 
         $SubscriptionArray[$RowIndex] = $ProductName;
         }
    
    Thread Starter dkurth

    (@dkurth)

    I fixed it.

    Thread Starter dkurth

    (@dkurth)

    I fixed it

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘SELECT BOX – DEFAULT SELECTION NOT WORKING’ is closed to new replies.