function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
99Raj999999Raj9999 

SalesForce for Google AdWords lead to web form related error

Hello friends, I have created “SalesForce for Google AdWords lead to web form”. I have followed the following instruction....
<FORM action="http://www.mycompany.com/mycustomform.php" >
<INPUT type="hidden" name="sfga" value="insert-your-salesforce-oid-here"/>
...
</FORM>
</TABLE>
</DIV>
...
<SCRIPT type="text/javascript" src="https://lct.salesforce.com/sfga.js"></SCRIPT>
<SCRIPT type="text/javascript">__sfga();</SCRIPT>
</BODY>
</HTML>
Ref:- https://sfma.salesforce.com/lead_tracking_setup/printable_instructions 1)     Input “sfga” should be in side the form tag.2)     Place the code snippet at the bottom of your web pages, just before the closing </BODY> tag Above will create perfect implementation for the “SalesForce for Google AdWords” and i did it successfully. Now my problem is, I am using ajax on this page for country dropdown, on selection of country I am hiding/showing some fiels. It is work fine if I don not put Input “sfga” in side the form tag. But when I placed Input “sfga” in side form tag on this page, then Ajax stop working. It's gives Java script error “access denied”. Can any one help me on this issue? Thanks in advance.Rajesh
Mike LeachMike Leach

What are you using for an Ajax library? What is the Javascript error (if any)? There may be a conflict between the sfga and Ajax libraries.

 

Things to look at:

  • Install Firebug for Firefox and note any exceptions
  • The JQuery equivalent of JQuery.noconflict() is one place to start looking.

99Raj999999Raj9999
Thank you for reply. 
  • I am using anthem Ajax Library.
  • I am getting java script error “Access Denied”


Yes there is a conflict between the sfga and Ajax libraries.

Here is the combination of three things. We developed our site using “sitecore” and for dynamic functionality we are using .net. 
I do not understand why there is conflict between sfga and Ajax libraries. 
Please help me more on this problem 
Thank you
Rajesh