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

Question

Question

Check All/Clear All HTML Buttons not showing in 10.2.0.834

asked on April 21, 2017

In forms 10.1 I have a form with a "check all" or "clear all" for a section of checkboxes that worked perfectly; however, I'm testing it in our DEV environment and the copied form's buttons are not showing now - only the html code.

<p>&lt;button onclick="checkAll()" type="button"&gt;Check All&lt;/button&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;button onclick="clearAll()" type="button"&gt;Clear All&lt;/button&gt;.<br></p>

Same in both environments

HTML ISSUE 10.1.png
HTML ISSUE 10.2.png
0 0

Answer

SELECTED ANSWER
replied on April 23, 2017 Show version history

Your markup doesn't work for me. However, if I convert the encoded characters back to their regular versions, it works. Try it by copy/pasting this into your form:

<button onclick="checkAll()" type="button">Check All</button><button onclick="clearAll()" type="button">Clear All</button>

 

0 0
replied on April 24, 2017

A coworker assisted me in cleaning up the code.  I put the original version of the code in 10.1 and it adds all the garbage to it.  So maybe not an issue for 10.2 - just need to know that we will need to clean up the garbage inserted by 10.1 for our current forms to work in 10.2.

 

Thanks.

0 0
replied on April 24, 2017

No problem.

By the way, the stuff it inserts isn't actually garbage. It needs to encode special characters in a certain way to be able to send that data back to the server. That's why you see < get replaced by &lt; for example. You can see more examples of HTML encoding here.

Of course, I can't comment on why your buttons broke. Maybe LF can comment on that.

0 0

Replies

replied on April 21, 2017

Does that show on the actual browser or on the Layout. If it's on the Layout, it might just be the way it's shown to you, but it might show correctly on the browser.

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

Sign in to reply to this post.