elementor / elementor

The most advanced frontend drag & drop page builder. Create high-end, pixel perfect websites at record speeds. Any theme, any page, any design.
https://elementor.com/
GNU General Public License v3.0
6.58k stars 1.42k forks source link

Elementor form widget webhook advanced data not passing remote ip or time #8015

Open leadsmania opened 5 years ago

leadsmania commented 5 years ago

I understand that this is not for support questions but elementor support sent me here, so please answer.

Elementor form widget is not sending remote ip and time to zapier when I have advanced data is checked as described in the elementor form documentation.

https://take.ms/jDH55

Elementor documentation clearly states: https://take.ms/Fsc37a

Data passing to zapier:

fields[field_1][type] hidden form[id] 070f24a fields[name][type] text fields[name][value] joshlink fields[email][id] email fields[email][type] email fields[name][raw_value] joshlink fields[field_1][title] fields[email][value] test@test.com fields[field_1][id] field_1 form[name] New Form fields[email][required] 1 fields[email][raw_value] test@test.com fields[email][title] Email fields[name][required] 0 fields[field_1][raw_value] fields[name][title] Name fields[field_1][required] 0 fields[name][id] name

Nothing nothing nothing with remote ip and time is showing when advanced data is checked.

form url https://prosportsinsider.com/elementor-1752/

Saturnix commented 2 years ago

Same issue here

manufourc commented 1 year ago

Here is a function to add in your theme functions.php file to solve the problem :

function set_elementor_form_webhooks_meta( $args, $record ) { $settings = $record->get( 'form_settings' ); if ( isset( $settings['webhooks_advanced_data'] ) && 'yes' === $settings['webhooks_advanced_data'] ) $args['body']['meta'] = $record->get_form_meta( [ 'date', 'time', 'page_url', 'page_title', 'user_agent', 'remote_ip', 'credit' ] ); return $args; } add_filter( 'elementor_pro/forms/webhooks/request_args', 'set_elementor_form_webhooks_meta', 10, 2 );