You are viewing limited content. For full access, please sign in.

Question

Question

Custom HTML

asked on July 6, 2015

Not sure what, if anything I'm doing wrong. I've added a horizontal rule via custom HTML and <hr>. The rule shows up just fine on the Forms edit page, but is not displayed during preview or publishing.

0 0

Replies

replied on July 7, 2015

I just tested it and it works fine for me. Do you have any custom CSS on the form? Also, do you have any field rules that might be hiding that Custom HTML field?

When previewing in Chrome, are you able to see the <hr> element in the form source? Selecting it should show you the styling that gets applied to it.

0 0
replied on July 7, 2015

hi there, it works for me. Did you refresh or leave Edit page after adding the custom HTML? The changes won't take effect until you leave the page.

0 0
replied on June 14, 2018

Did anyone figure this issue out?  I see the same problem (sporadically).  I can have five or six custom HTML elements in my form, each containing only a <hr> tag, and several of them will work just fine, but one or two of them will just display as a blank line, and I can't figure out why.

0 0
replied on June 14, 2018

Looks like it is maybe a Google Chrome issue angry

0 0
replied on July 7, 2015

Technically you should be using <hr />. Depending on the browser it may not display properly the other way because it doesn't know how to interpret a non closing tag.

0 1
replied on July 7, 2015

This isn't correct. Tags like <hr> and <br> are known as "void elements" and don't need to be closed when writing HTML.

Please see here for details.

0 0
replied on July 7, 2015

Ege, that is correct for HTML5. I didn't realize that Forms outputs the HTML as HTML5 until I just looked at the source code. So please ignore my comment.

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.