Jump to:

17452 Posts in 4473 Topics by 1971 members


SilverStripe Forums » Archive » Forms: set classes to input fields as well

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: 995 Views
  • dio5
    Community Member
    501 Posts

    Forms: set classes to input fields as well Link to this post

    When generating special form fields like numericfield, I see that the css-class of 'numeric' and required' is only applied to the surrounding div.

    It would be better to include the class on the input field as well, just like there is a class of text.

    I don't understand why this was left out.

    Another weird issue is that with passwordfields, 'extraClass' is not set to the inputfield like with the other fields... forgotten?

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.