PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Marketing Automation Issue

  1. The page found at http://www.shiftselling.com/won-sales-analysis/ is one of many that I have started to use Gravity Forms for.

    Unfortunately Gravity Forms uses the field identifier "id" and the marketing automation service I use requires a field with the identifier "name" to be included somewhere between the <form method='post' and action=''>.

    The request I received from the support team for Active Conversion follows:

    Attached is a screenshot of the source code for the forms section on: http://www.shiftselling.com/won-sales-analysis/. In the red boxed area of the source code, between the <form method='post' and action=''>, we like the following snippet to be added

    name='ac-form-1'

    The URL for the screenshot mentioned is http://www.shiftselling.com/files/misc/ActiveConversion-Case252-FormIdentifierIssue.png

    What options are there to resolve the issue?

    Can I somehow update options or code anywhere - that will not be overwritten when I upgrade to the future versions of Gravity Forms - that will allow my marketing automation software to work.

    Has anyone had a similar issue with their marketing automation software? If so how did you resolve it?

    ANY assistance is GREATLY appreciated.

    Call my cell phone (403.874.2998) if you prefer to talk about how I can resolve this issue.

    Thanks!

    Craig

    Posted 14 years ago on Friday November 5, 2010 | Permalink
  2. How are you integrating with this 3rd party? Gravity Forms has it's own form action, so at what point is this going to interact with this 3rd party service because the form action can't change otherwise the entries won't be saved, validation won't happen, etc.

    Posted 14 years ago on Friday November 5, 2010 | Permalink
  3. A piece of code is included in the footer of the page template.

    <!-- START OF ACTIVECONVERSION CODE -->
    <script type="text/javascript" language="javascript" src="http://live.activeconversion.com/ac.js"></script>
    <script type="text/javascript" language="javascript">
        var __pid=30014;
        __am_track();
    </script>
    <noscript>
       <a href="http://activeconversion.com/" rel="nofollow">
          <img  src="http://activeconversion.com/webtracker/track.html?method=track&pid=30014&java=0" alt="Marketing Automation" border="0">
       </a>
    </noscript>
    <!-- END OF ACTIVECONVERSION CODE -->

    This allows the form fill contents to be submitted to their servers. It also places a cookie on the visitors machine and allows me to track when, how often, and what pages they visit.

    I use to hard code the forms but ever since I installed Gravity Forms and used it to implement my forms I have not been able to be notified, by the service provider, when someone completes a form, returns to my web site, or clicks on a link to download a resource mentioned in my notification emails.

    What other info would you like in order to help me find a solution to the problem.

    Thanks,

    Craig

    Posted 14 years ago on Monday November 8, 2010 | Permalink
  4. Craig,
    You can use a hook to add a name attribute to the form tag.
    Add the following to your theme's function.php

    To apply to all forms on your site

    add_filter("gform_form_tag", "form_tag", 10, 2);
    function form_tag($form_tag, $form){
        return str_replace("<form", "<form name='ac-form-1'", $form_tag);
    }

    OR, to limit to a specific form (Id:78)

    add_filter("gform_form_tag", "form_tag", 10, 2);
    function form_tag($form_tag, $form){
        if($form["id"] != 78)
            return $form_tag;
    
        return str_replace("<form", "<form name='ac-form-1'", $form_tag);
    }
    Posted 14 years ago on Monday November 8, 2010 | Permalink
  5. Alex;

    Thanks! That gets me started in the right direction but it gives each form the same name.

    I then have to go back to the marketing automation companies configuration tool and rename each form.

    I know there is an identifier called "id" that comes from the name I give the form.

    Is there a way to assign that "id" to the "name" so I don't have to reconfigure the name at the marketing automation companies site?

    Thanks,

    Craig

    Posted 13 years ago on Sunday December 12, 2010 | Permalink
  6. @CraigElias Alex's 2nd example above shows you how to do it for a specific form. So you can give each form it's own name. You would repeat that block of code for each form, and could give each form whatever name you want.

    Posted 13 years ago on Monday December 13, 2010 | Permalink