When I do a GET request with a form, the submit value shows up in the query string:
my/pretty/url?daterange=2017-05-10+~+2017-06-28&submit=Submit
Not that important, but I would like to get rid of it. How could i do this?
My form initialize method:
public function initialize($entity = null, $user_options = array())
{
parent::initialize($entity, $user_options);
$daterange = new Element\Text('daterange');
$daterange->setAttributes(array(
'id' => 'daterange',
));
$this->add($daterange);
$filter = new Element\Submit('filter');
$filter->setUserOption('icon', 'filter');
$filter->setAttributes(array(
'title' => $this->translator->_('filter'),
'value' => $this->translator->_('filter'),
'class' => 'btn btn-primary btn-sm'
));
$this->add($filter);
}