Element description Icon

Status
Not open for further replies.

jo-ka

Member
Hello.
Is there a way to have an icon (glyphicon or font-awseome) prepending the element description?

I've tried something like
<i class="fa fa-user" aria-hidden="true"></i> User, and icon-user User, but with no avail.

Thank's in advance.
 
What do you mean: directly the element label or a tooltip?
For inserting HTML into the label you must enable "WYSIWIG editor for element labels" in Fabrik Options/Form.
Otherwise I think any tags are removed.
 
Yes, directly the element label.
I didn't knew about that option. I'll try and see if it solves my question

Thank's in advance.
 
I suspect you may also have to tweak your J! input filter settings in order to enter HTML directly. If I recall correctly, the default will remove a lot of tags from WYSIWYG input.

-- hugh
 
Thanks to you both guys,

I've defined the WYSIWYG for Element Label option in Fabrik Form options, and then I've set the CodeMirror editor as my default editor.

Then I can use whatever tags I want like this:
HTML:
<i class="fa fa-vcard-o" aria-hidden="true"></i>&nbsp<span style="font-weight:600">Customer</span>

and here's the result is the expected ( I was trying to upload a print screen, but there's an error coming that It's not possible to upload files...)

BR
 
Status
Not open for further replies.
We are in need of some funding.
More details.

Thank you.

Staff online

Members online

Back
Top