GetInputs() as $oInput) { if ($oInput->HasValue()) { $aChoices[strval($oInput->GetValue())] = $oInput->GetName(); } } $oOptionsRegister->SetOption('choices', $aChoices); } }