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.

All other Modules /

Discuss all other Modules here.

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

User defined forms module


Go to End


2 Posts   1078 Views

Avatar
hulsey

Community Member, 13 Posts

12 August 2011 at 2:16am

I am having trouble with fields lining up correctly when I create forms using the user defined forms module. I have attempted to re-write some of the css involved in the forms. Not with much success. here is an example of a form I created http://www.hulseyenvironmental.com/commercial-industrial/yellow-grease-container-order-form/ and this is another http://www.hulseyenvironmental.com/contact-us/ (the contact us lines up almost correctly & i had to re write alot of css in the form.css file to make this happen)

Notice that the second one lines up pretty closely, I had to re write alot of the css to make this happen.

Is there s way that I can override the built in CSS of the user defined forms with out having to create major changes. It seems to be picking up it's style attributes from this file themes/paddygreen3/paddygreen/css/form.css and not from userforms/css/FieldEditor.css

Avatar
Ryan M.

Community Member, 309 Posts

12 August 2011 at 7:45am

Duplicate the CSS file and move it to your own theme's css folder. The module will automatically use it instead. Note that you can do this with just about any file, especially .ss template files. This is how we override module defaults without touching their code, making for smoother upgrades in the future.