• Resolved luice

    (@luice)


    Hi
    I have installed a free version of the cf7 salesforce plugin. As I see in the FAQ you said that you do not need to create hidden fields in the contact form 7. You can use “crmperks_salesforce_post” hook. Can you send me an example or code for the screenshot URL “https://www.screencast.com/t/XowMDR4s8fvc” of field and add the field into the hook. We don’t know how to use this hook. Please help with this.

    The page I need help with: [log in to see the link]

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author CRM Perks

    (@crmperks)

    it is like other wordpress filters and passes $post_data as parameter

    Thread Starter luice

    (@luice)

    add_filter(‘crmperks_salesforce_post’,’fn_add_data’);
    function fn_add_data($post_data){
    $post_data[] = ‘retURL=”https://peninsulaviewliving.com.au/”‘;
    return $post_data;
    }

    Please have a look above the filter. is this correct? This filter put in my function.php file. Please confirm.
    After adding this filter “retURL=”https://peninsulaviewliving.com.au/” field send to salesforce account automatically. Please confirm

    Plugin Author CRM Perks

    (@crmperks)

    what is “retURL” ? is it a salesforce field name ?
    plugin shows all hidden fields in this list https://i.imgur.com/rA0y7cN.png
    You can add more salesforce fields like this $post_data[‘retURL’]=array(‘value’=>’ddddd’);

    Thread Starter luice

    (@luice)

    <form action=”https://webto.salesforce.com/servlet/servlet.WebToLead?encoding=UTF-8&#8243; method=”POST”>

    <input type=hidden name=”retURL” value=”https://peninsulaviewliving.com.au/”&gt;
    <input type=”hidden” name=”Relationship_to_Customer__c” id=”Relationship_to_Customer__c” value=”Customer”>
    <input type=hidden name=”Lead_Origin__c” value=”Tour Booking Page”>
    <input type=hidden name=”RL_Website_Location__c” value=”Frankston South – Peninsula View Community”>

    <label for=”first_name”>First Name *</label><input id=”first_name” maxlength=”40″ name=”first_name” size=”20″ type=”text” Required /><br>

    <label for=”last_name”>Last Name *</label><input id=”last_name” maxlength=”80″ name=”last_name” size=”20″ type=”text” Required /><br>
    </form>

    you can see the above code of form where you can see the hidden fields.I want to send this hidden value also in the salesforce.

    Thread Starter luice

    (@luice)

    These hidden fields are custom fields then we have to buy a plugin or it will possible with the free version? Please suggest us.

    Plugin Author CRM Perks

    (@crmperks)

    You can add custom fields using that filter
    or buy pro version

    Thread Starter luice

    (@luice)

    When i submitted the form after that i show the log then it shows the value of entry created in true in Salesforce response but When i tried to send the form data from the backend and i got error “Entry not sent”. Please have a look screenshot URL for your reference URL.https://www.screencast.com/t/No6uvcb4a8h

    • This reply was modified 4 years, 5 months ago by luice.
    Plugin Author CRM Perks

    (@crmperks)

    please enter debug email here https://i.imgur.com/bBhdf9V.png
    salesforce will send email about success or failure of entry

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Send Hidden fields’ is closed to new replies.