Title: Send Hidden fields
Last modified: June 10, 2020

---

# Send Hidden fields

 *  Resolved [luice](https://wordpress.org/support/users/luice/)
 * (@luice)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/send-hidden-fields/)
 * 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&#8221](https://www.screencast.com/t/XowMDR4s8fvc&#8221);
   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](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fsend-hidden-fields%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 8 replies - 1 through 8 (of 8 total)

 *  Plugin Author [CRM Perks](https://wordpress.org/support/users/crmperks/)
 * (@crmperks)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/send-hidden-fields/#post-12963555)
 * it is like other wordpress filters and passes $post_data as parameter
 *  Thread Starter [luice](https://wordpress.org/support/users/luice/)
 * (@luice)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/send-hidden-fields/#post-12963608)
 * add_filter(‘crmperks_salesforce_post’,’fn_add_data’);
    function fn_add_data($
   post_data){ $post_data[] = ‘retURL=”[https://peninsulaviewliving.com.au/”&#8216](https://peninsulaviewliving.com.au/”&#8216);;
   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/&#8221](https://peninsulaviewliving.com.au/&#8221);
   field send to salesforce account automatically. Please confirm
 *  Plugin Author [CRM Perks](https://wordpress.org/support/users/crmperks/)
 * (@crmperks)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/send-hidden-fields/#post-12963639)
 * what is “retURL” ? is it a salesforce field name ?
    plugin shows all hidden fields
   in this list [https://i.imgur.com/rA0y7cN.png](https://i.imgur.com/rA0y7cN.png)
   You can add more salesforce fields like this $post_data[‘retURL’]=array(‘value’
   =>’ddddd’);
 *  Thread Starter [luice](https://wordpress.org/support/users/luice/)
 * (@luice)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/send-hidden-fields/#post-12963822)
 * <form action=”[https://webto.salesforce.com/servlet/servlet.WebToLead?encoding=UTF-8&#8243](https://webto.salesforce.com/servlet/servlet.WebToLead?encoding=UTF-8&#8243);
   method=”POST”>
 * <input type=hidden name=”retURL” value=”[https://peninsulaviewliving.com.au/”&gt](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](https://wordpress.org/support/users/luice/)
 * (@luice)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/send-hidden-fields/#post-12971468)
 * 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](https://wordpress.org/support/users/crmperks/)
 * (@crmperks)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/send-hidden-fields/#post-12971486)
 * You can add custom fields using that filter
    or buy pro version
 *  Thread Starter [luice](https://wordpress.org/support/users/luice/)
 * (@luice)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/send-hidden-fields/#post-12990611)
 * 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](https://www.screencast.com/t/No6uvcb4a8h)
    -  This reply was modified 5 years, 9 months ago by [luice](https://wordpress.org/support/users/luice/).
 *  Plugin Author [CRM Perks](https://wordpress.org/support/users/crmperks/)
 * (@crmperks)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/send-hidden-fields/#post-12990649)
 * please enter debug email here [https://i.imgur.com/bBhdf9V.png](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.

 * ![](https://ps.w.org/cf7-salesforce/assets/icon-256x256.png?rev=2609799)
 * [Integration for Salesforce and Contact Form 7, WPForms, Elementor, Formidable, Ninja Forms](https://wordpress.org/plugins/cf7-salesforce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/cf7-salesforce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/cf7-salesforce/)
 * [Active Topics](https://wordpress.org/support/plugin/cf7-salesforce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/cf7-salesforce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/cf7-salesforce/reviews/)

 * 8 replies
 * 2 participants
 * Last reply from: [CRM Perks](https://wordpress.org/support/users/crmperks/)
 * Last activity: [5 years, 9 months ago](https://wordpress.org/support/topic/send-hidden-fields/#post-12990649)
 * Status: resolved