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've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

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   2371 Views

Avatar
LesC

Community Member, 70 Posts

27 November 2008 at 2:22am

Hi,

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.

L

Avatar
LesC

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?

Avatar
Ingo

Forum Moderator, 801 Posts

29 November 2008 at 9:55pm

Try ImageFormAction.

Avatar
Willr

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.