I’m building a webapp and using form builder — which is a great tool. I really like being able to abstract the form elements from the HTML.
However, I want to use an image as the submit button, but am having problems getting this to trigger the $form->submitted() function correctly. I’ve tried:
- Setting the button to type ‘submit’, but can’t find an option to use an image for the button.
2a) Setting the button to type ‘image’
2b) Setting the button to type ‘image’ and adding ‘onClick’ => ‘document.formName.submit()’
But neither of these trigger the submitted() function to test positive.
Can anyone help?
Thanks in advance.