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
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″ method=”POST”>
<input type=hidden name=”retURL” value=”https://peninsulaviewliving.com.au/”>
<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.
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 5 years, 9 months ago by
luice.
please enter debug email here https://i.imgur.com/bBhdf9V.png
salesforce will send email about success or failure of entry