• Joomla 5.1

    For running J!5.1 you must install Fabrik 4.1
    See also Announcements

  • Subscription and download (Fabrik 4.1 for J!4.2+ and J!5.1) are working now

    See Announcement
    Please post subscription questions and issues here

    We have resolved the issue with the J! updater and this will be fixed in the next release.

Multi line label does not work in form view

mhas16

Member
I gave an element a multi line label with <br> as the line separator.
But the label is not displayed on different lines in the form view.The <br> tag is also displayed as text on the form label.
I am using the "tabs" template for the form.
In the admin view i.e. in the back-end when I go to Components-Fabrik-Elements where all elements are displayed in a List,here the label is displayed in multiple lines.
Could you please let me know how to get it displayed in multiple lines in the front-end using tabs template.
I have also added custom css for fabrik Label in the site's main template.css(templates/jm-0013/css)

#form_4 .fabrikLabel {
display: block;
width: 500px;
}
Is this causing an issue ?
 
Did you set "WYSIWYG editor for element labels"=yes in Fabrik Options/Forms?
If not then all HTML is ignored.
 
Thank You for the suggestion.
I did not have that option set.
I have now set the WYSIWYG editor to yes but still I see the <br /> tags in the form.
 
I have uploaded the screenshots for the same
 

Attachments

  • form-br-tag.jpg
    form-br-tag.jpg
    99.6 KB · Views: 532
  • admin-newline.jpg
    admin-newline.jpg
    112.5 KB · Views: 481
How are your labels looking in element settings WYSIWYG editor?
I would try to re-edit there.
 
They are fine in the WYSIWYG editor.They appear on separate lines without the <br />
 

Attachments

  • element.jpg
    element.jpg
    124.9 KB · Views: 502
Can you delete the <p> tags?Paragraphs are breaking all kind of formatting.
Set your editor to something like RETURN = new lines..
 
I think the problem is on the front - end form.
Coz even in the element editor it is fine , only on the front-end form the html is treated as text.
I tried deleting the <p> tags but they are added by default by the editor for new lines.
I changed the editor to add <br> tags instead of <p> but still on the front-end form it is the same.
The custom css that I mentioned above,could that be the issue ?
 
The front-end is OK. Logged in where to the back-end administrator or front-end ?
It is OK even when I am logged in to the administrator back-end and for the front-end the site does not need you to login
 
Back
Top