Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » Image based submit button

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

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

Page: 1
Go to End
Author Topic: 1964 Views
  • LesC
    Avatar
    Community Member
    70 Posts

    Image based submit button Link to this post

    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

  • LesC
    Avatar
    Community Member
    70 Posts

    Re: Image based submit button Link to this post

    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?

  • Ingo
    Avatar
    Forum Moderator
    801 Posts

    Re: Image based submit button Link to this post

    Try ImageFormAction.

  • Willr
    Avatar
    Forum Moderator
    5503 Posts

    Re: Image based submit button Link to this post

    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.

    1964 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.