Create task by submitting wordpress form issue

I’m using Gravity Forms for user to submit javascript and send another copy to Asana to create task.

However, the javascript in Asana description looks like broken but no problem with a copy sent to company email (Microsoft Outlook)

The code

var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-XXXXX-X']);
_gaq.push(['_trackPageview']);

(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();

</script>

In Asana

var _gaq = _gaq || &#91;&#93;;

_gaq.push(&#91;&#039;_setAccount&#039;, &#039;UA-XXXXX-X&#039;&#93;);

_gaq.push(&#91;&#039;_trackPageview&#039;&#93;);

(function() {

var ga = document.createElement(&#039;script&#039;); ga.type = &#039;text/javascript&#039;; ga.async = true;

ga.src = (&#039;https:&#039; == document.location.protocol ? &#039;https://ssl&#039; : &#039;http://www&#039;) + &#039;.google-analytics.com/ga.js&#039;;

var s = document.getElementsByTagName(&#039;script&#039;)&#91;0&#93;; s.parentNode.insertBefore(ga, s);

})();

</script>

It seems like turning those symbols into html code.

My guess is that Asana is protecting itself against injections.
I don’t know Gravity form, but maybe you can try to use the html_notes field of the API instead of the notes field.

Bastien
Asana consultant, author and developer

Hi!

Where can i find the html_notes? From Gravity Forms or?

This is the name of the field inside the API. If Gravity form is using the API backstage, they should be using this field and not the notes one. How are you using Gravity Forms with Asana? Using Zapier?