Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

Archive /

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo

Image based submit button

Go to End

4 Posts   2158 Views


Community Member, 70 Posts

27 November 2008 at 2:22am


I'm having great fun putting a site together at high speed with SS, and have found my first little problem that I can't work out...

How do you use a input type=image on a form?

I've got a search form, and can't see anywhere in the docs or on the forum how to use an image in the FormAction.

Any help would be much appreciated.



Community Member, 70 Posts

27 November 2008 at 2:23am

Oh and does anyone know why the SS search form code spit out so much random HTML such as a div element and span elements?

Where does this get written?


Forum Moderator, 801 Posts

29 November 2008 at 9:55pm

Try ImageFormAction.


Forum Moderator, 5523 Posts

30 November 2008 at 6:33pm

Or you just want to style the normal form action button with CSS. All forms outputed from SS should have custom ID's attached so you just need to find that out then in your CSS file just style the action button with the image as a background and a set width / height.