Skip to main content

Save for Elementor Pro Form

By enabling this Elementor PRO Form Extension, you can find another new "Actions After Submit" called Save.

Add it to the "Add Action" multi-select, and the new Save Section will appear.

Use Cases

With the Save for Elementor Pro Form, you can accept new post entries in any post type, new user entries, new terms entries, and option entries via Elementor Forms. You can also allow them to update the existing entries on the current page or use a specific ID.

Settings

You can choose how to Save the Form Submission data, like:

  • Post, as a standard WordPress Post, of the Type you prefer and optionally related to a specific Term;

  • Term, as Term of the selected Taxonomy;

  • User, as User with a particular Role;

  • Option, like a WordPress global Option.

The fields listed in Form fields to save are stored with the selected type, usually as metadata.

  • Ignore Empty fields: skip empty Fields to preserve DB from creating useless rows in the Meta table;

  • Save Files as Media: all Form File Fields will be added to the Media Library and will be saved with their new ID instead of the file URL;

  • Save Multiple as Array: convert the multiple submitted values in the array. It works for Checkbox, Select Multiple, and File Upload fields;

  • Redirect To, redirect the user to a new Object after the submission (not available for Option);

  • Anonymous data: remove submitter User info like IP and username;

  • Update existent data: update the object (Post, User, Term, or Option) if it still exists instead of creating a new one. Anyone who submits the form can update the listed fields, including visitors who are not logged in;

  • Form fields to save: the Custom IDs of the form fields to save, separated by commas (for example name,message). Each ID is used as the metadata key, or as the option name for Option; some IDs match WordPress fields, such as post_title, post_content or first_name. Only the listed fields are saved: an empty list saves no form fields, and a new or renamed field is saved only after its ID is added to the list;

  • Suggest new fields when saving: when an administrator saves the page, the form fields missing from "Form fields to save" are listed and can be added to it by ticking them. Fields with a dynamic ID are not suggested;

  • Fields not to suggest: the field IDs that are no longer suggested. The fields left unticked are added here automatically; remove an ID to have it suggested again, or add it to "Form fields to save" to save it.

Save as Post

Some specific extra settings are:

  • Update existent data by selecting Post, where you can set the ID or select the Post from a dropdown. If empty, it will update the current Post.

  • Taxonomy fields: a form field whose ID is the name of a taxonomy of the post type (for example category or post_tag) assigns the submitted terms to the post. Terms can be given by ID, slug or name.

  • Create New Terms: creates the submitted terms that do not exist yet, including from visitors who are not logged in. Turn it off to assign only existing terms.

  • Featured image: an upload field with the ID _thumbnail_id, listed in "Form fields to save", sets the featured image of the post. Enable "Save Files as Media" so the uploaded image is added to the Media Library.

To create a new Post is a good ruleset:

  • Title: the post title indispensable to recognize it in a list

  • Content: optional; the Post Content can be empty

  • Type: you can set any type available

  • Term: optionally, you can assign a specific term to the new Post

  • Status: set Post State as Published or Draft

  • Current Post as Parent, helpful to retrieve all Posts generated from this Post

On each setting, you can use Dynamic Shortcodes like {form:field-id} or {date:now @format=Y}

Save as User

This lets you Create a new User or Update an existing User:

  • Update existent data select User, where you can search a User from a dropdown if empty will update the currently logged-in user.

  • Auto Login: when creating a new user, the visitor who registers is logged in automatically. Content that depends on the logged-in user appears from the next page load, so we suggest adding a Redirect after the form submission.

To create a new User is a good ruleset:

  • Username, is optional, if empty, it will be auto-generated, but if you set it manually, it needs to be unique

  • Email, required, on save the extension will check if the submitted email is just used by another user returning an error

  • Password, optional, if empty, it will be auto-generated

  • Role, assign a default Role capability to the new User or Add/Set the Role to the existing User

With this extension and Elementor PRO, you can manage all user registration, login, and update processes.
​

On each setting, you can use Dynamic Shortcodes like {form:field-id} or {date:now @format=Y}

Save for Elementor Pro Form can create users only if you set the "Membership" setting to "Anyone can register" on WordPress General Settings.

Save as Term

This lets to Create a new Term or Update the existing Term:

  • Update existent data select Term, where you can search a Term from a dropdown if empty, will update the Term if the form is on a Term page

To generate a new Taxonomy Term based on this data:

  • Name: the name identify the Term;

  • Description, optional, is the content of the Term;

  • Taxonomy, the Taxonomy with which to associate the new Term;

The first level will generate the Taxonomy Term without a parent.

On each setting, you can use Dynamic Shortcodes like {form:field-id} or {date:now @format=Y}

Save as Option

Each field listed in Form fields to save is stored as an option, using its Custom ID as the option name.

This lets you Create a new Option or Update existing Options:

  • Update existing data (WARNING): If this setting is not activated, the option will not be updated if it's just existing.

Read saved entries from the backend

If you saved form entries to DB, you can manage them from the standard WordPress admin area.

We suggest you create a new dedicated CPT for these form-generated Posts.

To view all Post (or User or Term) meta information in the admin area, add a new field with the same Key (the meta key needs to be the same as the Field Custom ID) with PODS (or ACF) to the used CPT for Post or to User or Taxonomy.

You have to set the Form Field Custom ID.

with the same ACF Field Name (or PODS Name) as configured in ACF or PODS) Settings.

Saving ACF field values that are in a group

To save data in a field that is under a group, simply use the following: groupID_fieldID in the form field ID that you want to save as meta.

Meta Key Filter

You might want to save a meta key with a name different from the field name. You can do this with the following filter:

apply_filters( 'dynamicooo/form-save/meta-key', $field_name, $form_name );
Did this answer your question?