How to add class to form


(Doron Mendelson) #1

Hi,

 

I need to add a class to a customized form and I don't know how to do that.

 

I need the form element to be something like this:

<form class="form-horizontal" id="form_email_190714" enctype="multipart/form-data" action="/support/index/_nocache" method="post">  

Thanks in advance,

 

Doron


(Anthony) #2

I dont think theres an option to add a class at the form level. There is an option to add extra classes to the submit buttons and to individual questions - there's fields on the relevant screens for those elements. Could your CSS address the ID of the form directly as #form_email_190714 ? Or could you wrap the whole form in a DIV with the class you want and then address that (you could customise one of the bodycopies to add the DIV around the placeholder that represents the form, or you could do something with paint layouts) ? Other than that a bit of jQuery to add the class at the browser end? What you're really looking for would be a good enhancement that others could well find useful.

Tony