Skip to main content

PHP Action for Elementor Pro Form

Updated over 10 months ago

With PHP action you can run any PHP code along the other Elementor Pro's form actions. You can access the form field values through the array $fields, the key of the array are the IDs of the fields.

An example:

$fullname = $fields['firstname'] . ' ' . $fields['lastname'];
// ... do something with the full name ...

Note: PHP's echo cannot be used in PHP actions. This is because the actions are executed inside an AJAX call.

Did this answer your question?