Page 1 of 1
[SOLVED] FEU: Set Form CSS Class In {$startform}
Posted: Thu Apr 23, 2015 10:49 pm
by ptysell
Trying to figure out how to set the css class in {$startform} so that instead of generating
Code: Select all
<form id="forumID" method="post" action="http://myurl.com/index.php?page=1" class="cms_form">
it would generate
Code: Select all
<form id="forumID" method="post" action="http://myurl.com/index.php?page=1" class="MyCSSClass">
Sure it is something simple but being driven nuts migrating over from some legacy CSS that will be difficult to update.
Thanks for the help.
Re: FEU: Set Form CSS Class In {$startform}
Posted: Fri Apr 24, 2015 7:19 am
by staartmees
"After a bit of nagging on the part of people who actually respect standards, FormBuilder no longer encourages tricks like embedding CSS in static text fields. Instead, it creates a stylesheet called "FormBuilder Default" that you are encouraged to attach to the page template that you use for pages that contain your form."
Re: FEU: Set Form CSS Class In {$startform}
Posted: Fri Apr 24, 2015 11:27 am
by velden
Quick and dirty:
Code: Select all
{$startform|replace:'cms_form':'myClass'}
Re: FEU: Set Form CSS Class In {$startform}
Posted: Fri Apr 24, 2015 3:22 pm
by ptysell
staartmees wrote:"After a bit of nagging on the part of people who actually respect standards, FormBuilder no longer encourages tricks like embedding CSS in static text fields. Instead, it creates a stylesheet called "FormBuilder Default" that you are encouraged to attach to the page template that you use for pages that contain your form."
How does that help me with opening a form tag in FrontEndUsers?
The goal is to not rewrite/test 500 form related CSS styles/structure.
velden wrote:Quick and dirty:
Code: Select all
{$startform|replace:'cms_form':'myClass'}
I figured out the issue.
The CSS styles are hardcoded in
[edited by moderator] the core which is called by FEU via the {$startform} tag.