hello, i am new in contao , i would like to know if there is a way to change the submit filed in a form with a
i have the code from modules/frontend/FormSubmit.php
Code:
public function generate()
{
if ($this->imageSubmit && is_file(TL_ROOT . '/' . $this->singleSRC))
{
return sprintf('<input type="image" src="%s" id="ctrl_%s" class="submit%s" alt="%s" value="%s"%s />',
$this->singleSRC,
$this->strId,
(strlen($this->strClass) ? ' ' . $this->strClass : ''),
specialchars($this->slabel),
specialchars($this->slabel),
$this->getAttributes());
}
return sprintf('<input type="submit" id="ctrl_%s" class="submit%s" value="%s"%s />',
$this->strId,
(strlen($this->strClass) ? ' ' . $this->strClass : ''),
specialchars($this->slabel),
$this->getAttributes());
}
the question is how can i get the from id that has the submit button ? somthing like "$this->formid" ... is this possible?
class FormSubmit extends Widget also form submit Widget
thank you
Bookmarks