Jump to content

How to get single select value?


Recommended Posts

Hello community!

 

I'm creating a module and stuck on quite simple thing I couldn't find or figure out by myself.

Let me explain.

I have a dropdown in module configs:

array(
	'type' => 'select',
	'lang' => true,
	'label' => $this->l('Type list'),
	'name' => 'type_list',
	'desc' => $this->l('Please select type you want to delete.'),
	'options' => array(
		'query' => $configuration_array,
		'id' => 'id', 
		'name' => 'title',
		'default' => array(
			'value' => '',
			'label' => $this->l('---')
		)
	)
)

And I need to catch the value from this select that was selected in the moment of submit.

Could anyone tell please me how to do it?

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
×
×
  • Create New...