Forums

Curly brackets in Thanks Message

m.g. 26 Mar, 2014
Hello. I need to add a conversion script in the Thanks Message of a form.
The script (from Facebook) have the curly brackets, but they are stripped out in the front view.

Ho I can preserve the full script?

Thank you

Michele

Demo of the script:
<!-- Facebook Conversion Code  -->
<script type="text/javascript">
var fb_param = {};
fb_param.pixel_id = '12345678';
fb_param.value = '0.00';
fb_param.currency = 'EUR';
(function(){
  var fpw = document.createElement('script');
  fpw.async = true;
  fpw.src = '//connect.facebook.net/en_US/fp.js';
  var ref = document.getElementsByTagName('script')[0];
  ref.parentNode.insertBefore(fpw, ref);
})();
</script>
<noscript><img height="1" width="1" alt="" style="display:none" src="https://www.facebook.com/offsite_event.php?id=12345678&value=0&currency=EUR" /></noscript>

see the brackets in the row 3
Max_admin 26 Mar, 2014
I can't understand what should be in this line:
var fb_param = curly:brackets-in-thanks-message;


Is this how its from FB ?

Anyway you can use a "Custom code" action instead!

Regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
m.g. 27 Mar, 2014
Answer
1 Likes
Thank you Max.
The code is a conversion script copied and pasted from facebook.

For who need help:
- In the "Events" list, on the "On Submit" filed, I have added a "Custom Code" Action with the full script.

It work.

Thank you.
This topic is locked and no more replies can be posted.