trader88888
Forum Replies Created
-
need more people to do the same.
Forum: Plugins
In reply to: [Brilliant Web-to-Lead for Salesforce] Google ReCaptcha v3ditto, i’d like that too. and there are probably 10 other people that don’t post for one that do … so can you add 9 more votes here?
Forum: Plugins
In reply to: [Brilliant Web-to-Lead for Salesforce] Storing IP AddressHello,
I have a need to now have this ip address capture on another form, so can I replace the line above with something like this?
(so it works on form 2 and 3)?
$form_id = 2,3; // form id to act upon
Thanks for your help!
- This reply was modified 8 years ago by trader88888.
Forum: Plugins
In reply to: [Brilliant Web-to-Lead for Salesforce] Storing IP AddressThanks i was missing it in the form and thought it would just be passed some how ?? lol thanks again, love how its working.
Forum: Plugins
In reply to: [Brilliant Web-to-Lead for Salesforce] Storing IP AddressHey Nick
Very much appreciated – I was just working through as I found that example. I have a form with the ID: 2. So in my functions.php I’ve put the following:
add_filter( 'salesforce_w2l_field_value', 'salesforce_w2l_field_value_referrer_example', 10, 3 ); function salesforce_w2l_field_value_referrer_example( $val, $field, $form ){ $form_id = 2; // form id to act upon $field_name = 'Remote_Addr__c'; // API Name of the field you want to autofill if( $form == $form_id && $field_name == $field ){ if( isset( $_SERVER['REMOTE_ADDR'] ) ){ return $_SERVER['REMOTE_ADDR']; } } return $val; }
I had based this code off your examples you kindly pointed out (helpful as i’m really new to development). The form id is 2, and the field “Remote_Addr__c” is one I have in my salesforce:
Eg: https://screencast.com/t/bbmJmOmJryThe only part of this i don’t think i fully understand which i’m not sure if its impacting it is this:
add_filter( 'salesforce_w2l_field_value', 'salesforce_w2l_field_value_referrer_example', 10, 3 );
I’m not sure if 10, 3 needs to be changed to something… or perhaps something else…
Are you able to point me in the right direction as i’ve cleared all my cache and can’t seem to get this darn ip stored which would be sooo helpful to me.
Thanks!
Clearly way to many people have different plugins, different themes and everything else that it has to be related to this plugin or something not being unique where its the trigger to a much bigger issue.
I tried what VM System says with no luck with disabling all the plugins and re-enabling. Glad that worked for you as a TEMPORARY FIX but im still swimming in shark infested waters.
Same thing here, 414 error after auto refresh. this is SO annoying ?? please fix.