Support

Home Forums Event Espresso Premium Using HTML in Questions Box

Using HTML in Questions Box

Posted: March 22, 2013 at 5:26 pm

Viewing 16 reply threads


bchilders

March 22, 2013 at 5:26 pm

In previous versions of Event Espresso I was able to add HTML into the Question box. In the current version I am using, I tried to add the following HTML to open a child window and display legal content.

I am 21 years of age and have read and agreed to the release of liability waiver provided by Get Off Auto, LLC

The current version will not let me enter this information and consistently truncates the HTML. Is there a reason why I can no longer do this? If so, is there another option to provide this functionality?


bchilders

March 23, 2013 at 3:21 pm

I realized that I forgot to expose the code snippet from the above link. Re-posting with the actual html that was used in the Question box.

I am 21 years of age and have <a href="void(0)">read and agreed to the release of liability waiver provided by Get Off Auto, LLC</a>


bchilders

March 23, 2013 at 3:24 pm

Interesting, the behavior that I am having was just replicated above when I entered the html code snippet. The post actually truncated the code snippet exactly as it is doing on my site. I am talking out the read and agreed to the release of liability waiver provided by Get Off Auto, LLC`


bchilders

March 23, 2013 at 3:26 pm

That did not work either..


Dean

March 25, 2013 at 2:58 am

Hi,

In recent versions we have tightened up the security aspects. As such a lot of the fields are being stripped of HTML and other code.

However, I had no issue in adding that code and editing, saving and publishing that question. This was on 3.1.30.7, what version are you using?


dberger

March 25, 2013 at 7:48 pm

I am having the same problem, using Version 3.1.30.7P


bchilders

March 25, 2013 at 9:46 pm

I am also using 3.1.30.7P. I tried to update the text box again, and it truncated the post exactly like the what is displayed on the post above on the 23rd at 3:21PM..


Dean

March 26, 2013 at 6:10 am

Can one of you send me login details please as I really can’t recreate this on the latest version.

If so, please send them via https://eventespresso.com/send-login-details/

NOTE: login details need to be Admin level.


bchilders

March 26, 2013 at 10:57 am

I sent login details for two sites. The Get Off Auto site has the question with the HTML code in the question box that works and is not truncated when saved. The Cork and Click site has the issue when I tried to create the same question and use the same HTML but it gets truncated. The only difference is that the Get Off Auto question was created on an earlier version of Event Espresso and I have not tried to update it.


Sidney Harrell

March 26, 2013 at 11:36 am

The problem is not the html, it is the javascript that you are trying to put into the question. You have several options:
You could use a non-javascript, html only solution. The only difference would be the terms and conditions would open up in a new tab, rather than a pop-up window.
You could use an html span in the question, and then put the javascript into a javascript file loaded on the page, or into a custom theme template for that page.
You could force the javascript into the question by bypassing the edit question page and pasting directly into the database field. (not recommended)


dberger

March 26, 2013 at 11:39 am

As I mentioned previously, I am running into the same issue. It can be seen here at the bottom of the page where the registrant accepts the terms and conditions [http://floridastarsac.com/event-registration/?ee=1]


Sidney Harrell

March 26, 2013 at 11:58 am

@dberger: yours looks like a completely different issue. bchilders site is not having a problem displaying html in the question, only in saving javascript into the question. When I look at the html being generated by your site in the question, it looks like<span>I accept the &lt;a href="http://www.floridastarsac.com/terms-conditions-privacy-policy/"&gt;terms and conditions (click to view)&lt;/a&gt;.</span>
Do you have the actual angle brackets in your question, or the html equivalent as seen above?


dberger

March 26, 2013 at 12:11 pm

This is what I entered:

I accept the <a href="http://www.floridastarsac.com/terms-conditions-privacy-policy/">terms and conditions (click to view)</a>.


Sidney Harrell

March 26, 2013 at 12:24 pm

There is probably another plugin or the theme which is taking the WordPress “the content” and running it through a routine to convert any html entities. As you can see here: http://eetesting.info/EE_branch/event-registration/?ee=341, the html you pasted above works without problem.
Can you deactivate any other plugins, one at a time, to narrow down the problem, or try switching to the WordPress default twentytwelve theme?


bchilders

March 26, 2013 at 2:21 pm

Thanks Sidney. Appreciate the feedback and tips for resolving the issue.


dberger

March 26, 2013 at 2:27 pm

This issue occurred when I did the latest update of the EE plugin. But, I will try to troubleshoot it based on your suggestion. Thanks!


Dean

March 28, 2013 at 2:02 am

@dberger – are you adding the HTML to the question title or the value? Right now only the question title will accept HTML.

Viewing 16 reply threads

The support post ‘Using HTML in Questions Box’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso