Image submit button in formbuilder

Hi all,

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:

  1. Setting the button to type ‘submit’, but can’t find an option to use an image for the button.

AND

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.

Bill

I’ve cleared this one up myself using CSS on a submit button. Just thought Yii might have this built in…