Jump to content

Can't figure out how to get Selected select value in Hook


DanielD
 Share

Recommended Posts

Hello. I have a problem regarding getting the selected select field value in a hook after a form is submitted but before the email is sent.

I tried different ways:

$form->getChildByName('store');
$form->getChildByName('store')->get('value');
$form->getChildByName('store')->get('selected');

When i dump these with bd() i get a result only on the first line. The other two returns 'null'. I looked everywhere on the forum, and documentation but can't figure out how to get the selected value.

Thanks in advance.

Daniel

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...