# Input Attributes

**URL:** <https://forum.mautic.org/t/input-attributes/1481>\
**Category:** General Discussion\
**Created:** [January 28, 2015, 2:12am UTC](https://forum.mautic.org/t/input-attributes/1481 "2015-01-28T02:12:51Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![freak3dot](https://avatars.discourse-cdn.com/v4/letter/f/9de0a6/32.png) [@freak3dot](https://forum.mautic.org/u/freak3dot)\
**Post date:** [January 28, 2015, 2:12am UTC](https://forum.mautic.org/t/input-attributes/1481/1 "2015-01-28T02:12:51Z")

</div>

I’m attempting to put bootstrap classes on form fields.  
  
  
  
First, I noticed that the form file in the theme doesn’t seem to allow styling at that granular a level (based on looking at all themes).  
  
  
  
I also looked at forms in the application. I found Input Attributes. I’m not sure I’m using them properly.  
  
  
  
The tooltip says to enter something like class=“myclass”. However, if I enter

Code:

class="form-control"

it shows up as

Code:

class=""form-control""

in the form.  
  
I can safely enter:

Code:

class=form-control

  
  
However when I get to the submit button I want to add two classes. Uh oh.

Code:

class="btn btn-primary"

it shows up as

Code:

class=""btn"

---

<div class="post-metadata">

**Author:** ![freak3dot](https://avatars.discourse-cdn.com/v4/letter/f/9de0a6/32.png) [@freak3dot](https://forum.mautic.org/u/freak3dot)\
**Post date:** [January 28, 2015, 2:12am UTC](https://forum.mautic.org/t/input-attributes/1481/2 "2015-01-28T02:12:51Z")

</div>

I’m attempting to put bootstrap classes on form fields.

First, I noticed that the form file in the theme doesn’t seem to allow styling at that granular a level (based on looking at all themes).

I also looked at forms in the application. I found Input Attributes. I’m not sure I’m using them properly.

The tooltip says to enter something like class=“myclass”. However, if I enter

```auto
class="form-control"
```

it shows up as

```auto
class=""form-control""
```

in the form.

I can safely enter:

```auto
class=form-control
```

However when I get to the submit button I want to add two classes. Uh oh.

```auto
class="btn btn-primary"
```

it shows up as

```auto
class=""btn"
```

---

<div class="post-metadata">

**Author:** ![gmillard](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/gmillard/32/5_2.png) [@gmillard](https://forum.mautic.org/u/gmillard)\
**Post date:** [January 30, 2015, 12:42am UTC](https://forum.mautic.org/t/input-attributes/1481/3 "2015-01-30T00:42:54Z")

</div>

This looks like a bug to me. Checking it out now.

Thanks,  
Alan

---

<div class="post-metadata">

**Author:** ![gmillard](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/gmillard/32/5_2.png) [@gmillard](https://forum.mautic.org/u/gmillard)\
**Post date:** [January 30, 2015, 2:51am UTC](https://forum.mautic.org/t/input-attributes/1481/4 "2015-01-30T02:51:43Z")

</div>

I think I figured it out:

[https://github.com/mautic/mautic/commit/c87ecf10199152135b9b277cdb777360c4ec2d90](https://github.com/mautic/mautic/commit/c87ecf10199152135b9b277cdb777360c4ec2d90)

---

<div class="post-metadata">

**Author:** ![silavapi](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/silavapi/32/7424_2.png) [@silavapi](https://forum.mautic.org/u/silavapi)\
**Post date:** [February 2, 2020, 11:00pm UTC](https://forum.mautic.org/t/input-attributes/1481/5 "2020-02-02T23:00:54Z")

</div>


