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.

GForms -> WHMCS CRM Addon

  1. facupuig

    Hi there, I am using WP with WHMCS and I have the CRM Addon for WHMCS. The have a html form that you can tune to match your website, the only code required (I guess) is the following:

    <form action="../modules/addons/crmaddon/lead_gen.php" method="post" name="leadform" id="leadform">
            <input type="hidden" name="create" value="lead">
            <input type="hidden" name="leadsource" value="Web Site">
            <input type="hidden" name="leadstatus" value="Pre Qualified">

    How do I insert that in a GF?
    Thank you very much

    Posted 7 years ago on Sunday December 23, 2012 | Permalink
  2. If they provide a form, you can just use that instead of a Gravity Form. However, if you would like to capture the lead in Gravity Forms, you can change the form action with the gform_form_tag filter:

    That will allow you to set the action to your php form.

    You can also use the gform_after_submission hook to take all your collected data and send it anywhere you like:

    I'm not sure how you can add those hidden fields to the form with the input names as you have them. You might be able to add them as HTML fields in the form, but I have never tried that. We normally recommend the gform_after_submission hook.

    Posted 7 years ago on Monday December 24, 2012 | Permalink