codefog / contao-haste

Haste is a collection of tools and classes to ease working with Contao
http://codefog.pl/extension/haste.html
MIT License
43 stars 24 forks source link

Use SUBMIT_TYPE = auto in Form.php #117

Closed SGehle closed 6 years ago

SGehle commented 6 years ago

Would it be possible to add the SUBMIT_TYPE = auto in Form.php like it is used in https://github.com/contao/core/issues/4077

// Skip mandatory fields on auto-submit (see #4077) if (\Input::post('SUBMIT_TYPE') != 'auto' || !$objWidget->mandatory || $objWidget->value != '')

qzminski commented 6 years ago

I don't see any practical use case for this. That stuff relates to backend and it's very specific to DCA. If you need it in your frontend implementation you can always create your own class that extends Form and override appropriate methods.

SGehle commented 6 years ago

Yes, i use it that way. My usecase is having different Isotope ProductTypes in a form with different mandatory fields.