🎉 Celebrate with 10% OFF on All Products! Use Code: GFEX10 Or Buy Any 2+ Items for 30% OFF with Code: GFEX30!

Gravity Forms Entry Clone Premium Add-on Setup Guide

Updated 10 min read Gravity Forms Entries & Workflow
On this page
  1. Video walkthrough
  2. What you need
  3. Install and activate
  4. Duplicate an entry
  5. The options screen
  6. Copy to the same form or to another form
  7. What to keep
  8. Uploaded files
  9. Feeds and notifications
  10. The defaults
  11. Start from my previous entry (front end)
  12. Whose entries are used
  13. Which fields are filled
  14. Pages and caching
  15. The merge tag
  16. For developers
  17. Privacy and security
  18. Troubleshooting
  19. Questions
  20. Does a copy count as a new submission?
  21. Can I copy an entry into a form with other fields?
  22. What happens to an uploaded file when I delete the original?
  23. Can a visitor see another person’s entry?

Video walkthrough

Gravity Forms Entry Clone: Duplicate Entries in Bulk or to Another Form, Prefill from Last Entry
Watch the Entry Clone add-on duplicate entries one by one or in bulk, and let members start a form from their own previous entry. Watch on YouTube

The Gravity Forms Entry Clone Premium Add-on adds two things that Gravity Forms does not have. In the WordPress admin it adds a Duplicate action for entries, so that an entry can be copied in the same form or into another form with a few clicks. On the front end it adds a form setting that lets a signed-in visitor start from their own previous entry, so a returning member does not have to type the same answers again.

Both halves use the Gravity Forms API and nothing else. No outside service is contacted, no table is added, and nothing is changed in the entries that already exist.

What you need

  • WordPress 6.5 or newer and PHP 7.4 or newer.
  • Gravity Forms 2.9 or newer. The add-on is tested with Gravity Forms 3.1.2 on PHP 8.3 and Gravity Forms 2.9.8 on PHP 7.4.
  • An active license key for this add-on.

If Gravity Forms is missing or older than 2.9, the add-on shows a notice in the WordPress admin and does nothing else.

Install and activate

  1. Install and activate the add-on like any plugin, after Gravity Forms.
  2. Open Forms → Settings → Entry Clone and enter your license key.
  3. In the same screen, choose the defaults for duplicating entries (explained below), or keep the safe ones.

Duplicate an entry

There are three places to start a copy, and all of them need the permission to edit entries (the Gravity Forms capability gravityforms_edit_entries) and an active license. A user who may only view entries sees none of them, and a direct link is refused.

  • The entries list: every row has a Duplicate link next to View, Mark read and Trash. It is not shown in the trash view.
  • The bulk actions menu: tick any number of entries and choose Duplicate to copy them all with your defaults, or Duplicate with options to open the options screen for the whole selection. One bulk action copies up to 500 entries.
  • The entry screen: a Duplicate entry box with a Duplicate button and an Options button. On a copy the same box says which entry it was copied from.
The Gravity Forms entries list with a Duplicate link under an entry and the Duplicate and Duplicate with options choices in the bulk actions menu
The entries list: a Duplicate link in every row and two new bulk actions.

The Duplicate link and button copy straight away with your default choices and open the new entry. Every copy gets an entry note, Duplicated from entry #12 by Jane Smith, and an entry meta value with the number of the entry it came from. You can show that value as a column in the entries list and use it as a filter.

The options screen

The Options button and the Duplicate with options bulk action open one screen with every choice. It works the same for one entry or for many.

The Duplicate entries options screen: copy to another form, the field matching table, what to keep, files, notes, feeds and notifications
Copy to another form: the matching of fields is shown and can be changed before anything is copied.

Copy to the same form or to another form

Choose The same form and the copy has exactly the same answers. Choose another form and the add-on has to decide which answer goes into which field. You pick how: by field ID (field 5 goes to field 5, when the types fit) or by field label (a field called Email goes to the field called Email, whatever its number; the admin label counts too and capital letters and extra spaces do not matter). Press Show the matching and the screen lists every field of the other form with the field it will take its answer from. Change any of them, or choose leave empty, before you press Duplicate.

The matching knows about field types. A text answer can go into a text, paragraph, drop-down, radio, number, email, phone or website field; a Name goes only into a Name, an Address only into an Address, a List only into a List, a Checkbox group into a Checkbox group, and so on. The parts of a Name or Address are matched one by one. For checkboxes the add-on matches the ticked choices, not their positions: a choice called Reports is ticked in the other form wherever that choice sits in its list, and a choice the other form does not have is dropped. Fields that do not exist in the other form are left out, and fields with no source stay empty.

What to keep

  • Status: keep the status of the original (active, spam or trash), or make the copy active.
  • Starred and read: keep, or reset (unstarred and unread, so the copy shows up as new).
  • User who made the entry: keep the original user, or use the user who duplicates.
  • Date of the entry: keep the original date, or use the time of the copy.
  • Entry notes: copy them (user, text and date are kept) or start with a clean list. The note about the duplicate is always added.

Payment details are never copied: the payment status, amount, method and transaction number stay with the original, so a second entry can never look like a second payment. Entry meta that other add-ons keep (scores, approvals, links to a parent entry) is not copied either, because it belongs to the original submission; a developer can add it with the filter described below.

Uploaded files

Copy the files (the default) makes a new file for the copy, in the Gravity Forms upload folder of the target form, with the usual numbering when a name is taken. After that the two entries own their files, and deleting one entry never breaks the other. This works for single uploads and for fields that allow several files. Point to the same files keeps the same addresses and saves disk space. In that case the add-on protects the file: Gravity Forms is told to keep it while any other entry still points to it, and it goes with the last entry that uses it.

Feeds and notifications

A copy is a record, not a new submission, so by default no notification is sent and no feed runs: no e-mail to you, no e-mail to the person, nothing sent to your CRM. Two boxes switch them on for one duplicate: Send the notifications of the form for the copy and Run the feeds of the form for the copy. Merge tags work in those notifications, including the tag for the source entry described below.

The defaults

All of these choices have defaults on Forms → Settings → Entry Clone. The Duplicate link, the entry screen button and the plain bulk action use those defaults without asking. Out of the box they keep status, flags, user and date, copy the files, leave the notes and send and run nothing.

Start from my previous entry (front end)

This is a setting of each form, on Settings → Entry Clone in the form. It lets a signed-in visitor fill the form with the answers of the last entry that same user made in that form: a membership renewal, a weekly report, a booking with the same address, an application that is sent every year.

  • Start from the previous entry: turn it on for the form.
  • How it starts: a button above the form, Copy my previous entry, that the visitor presses; or automatic, where the form opens already filled in.
  • Button text: your own words.
  • Fields to fill: all fields, or only the fields you tick in the list.
A Gravity Forms membership form filled in from the signed-in visitor's previous entry, with a notice above it and a link to start with an empty form
The form opens filled in from the visitor’s own previous entry, with a way back to an empty form.

When the form is filled in, a notice above it says so and offers Start with an empty form. The visitor can change anything before sending. The new entry remembers which entry it started from, and the merge tag shows it.

Whose entries are used

Only the visitor’s own, and nobody else’s, whatever their role. The visitor must be signed in. The entry must have been made by that same user (the Gravity Forms created by value), it must belong to the form that is being shown, and it must still be active, so a trashed or spam entry is never used. The button points to the visitor’s latest entry. If a developer wants another one, a filter exists.

A link with ?gfclone= and an entry number, for example a link you put in an e-mail or on a dashboard, fills the form from that entry, but only when it passes the same checks. If the number belongs to another user, does not exist, is trashed, or is not a plain whole number, the form stays empty and shows a short notice. A number that belongs to the visitor’s own entry of another form is simply ignored by this form, which makes pages with two forms work. An administrator who is not the owner gets nothing either. A visitor who is not signed in gets nothing, not even the button.

Which fields are filled

Single line and paragraph text, numbers, e-mail, phone, website, drop-downs, radio buttons, checkboxes (each ticked choice), multi select, date, time, Name and Address (every part), and List fields, including list fields with several columns and several rows. Multi page forms are filled on every page at once, so the visitor sees the answers when they reach each page.

These types are never filled: file upload and post image (a browser cannot be given a file), credit card, product, option, quantity, shipping, total and other payment fields, CAPTCHA, consent (agreement must be given again each time), password, signature and repeater fields. A developer can add more types with the filter gfclone_excluded_field_types. In the field list of the form setting the excluded fields are not offered at all.

Pages and caching

A page with a filled in form is different for every visitor, so the add-on asks WordPress for no-cache headers when it fills a form. Pages for signed-in visitors are normally not cached by page caching plugins; if yours caches them, exclude the page.

The merge tag

Use {entry_clone_source_id} in confirmations, notifications and any merge tag box. It gives the number of the entry that a new entry was copied from, whether the copy was made in the admin or by a visitor with the previous entry option, and nothing when the entry is not a copy. It is also in the list of merge tags in the form editor.

For developers

  • gfclone_duplicate_entry( $entry_id, $options ) makes a copy with the same options as the options screen: target_form, map_mode (id or label), map (target field id to source field id), status, flags, created_by, date, files, notes, run_feeds and send_notif. It returns the new entry id or a WP_Error, and checks the license. Check capabilities in your own code.
  • gfclone_get_user_last_entry( $form_id, $user_id ) returns the latest active entry a user made in a form, or null.
  • gfclone_get_source_id( $entry_id ) returns the entry a copy came from, or 0.
  • Filters: gfclone_options, gfclone_entry_before_add (change or cancel the copy before it is saved), gfclone_excluded_field_types, gfclone_prefill_entry_id, gfclone_prefill_value and gfclone_max_bulk.
  • Actions: gfclone_entry_duplicated (new id, old id, options) and gfclone_prefill_applied (form, entry, number of fields filled).
  • During a copy, GravityExtra\EntryClone\Cloner::is_cloning() is true, so your own hooks can tell a copy from a real submission.

Privacy and security

The add-on contacts no outside service and stores no new personal data: the only thing it adds to an entry is the number of the entry it was copied from. Every admin action checks a nonce and the permission to edit entries. The front end never reads an entry that does not belong to the signed-in visitor, checks it again on the server and never puts the entry number of another person in a page. The hidden marker that records the source of a submission is signed for the visitor and the entry, so a forged value is ignored.

Troubleshooting

  • No Duplicate link: check the license, and that your user can edit entries. The link is not shown in the trash view.
  • The copy has empty fields in the other form: open the matching table. A field with no match stays empty; choose the source by hand, or match by label.
  • A visitor sees no button: the form setting is off, the visitor is not signed in, or has no active entry in that form yet.
  • The form is not filled in when it is cached: exclude the page from page caching for signed-in visitors.
  • A file field is empty in the filled form: files are never filled on the front end, the visitor uploads again.

Questions

Does a copy count as a new submission?

No. It is an entry made through the Gravity Forms API. Notifications, feeds and confirmations do not run unless you ask for notifications and feeds on that one duplicate.

Can I copy an entry into a form with other fields?

Yes. Choose the form, press Show the matching, check the table and copy. Fields without a match stay empty and answers without a field are left out.

What happens to an uploaded file when I delete the original?

With the default, each entry has its own file, so the copy keeps working. With the same files option the file is kept until the last entry that uses it is deleted.

Can a visitor see another person’s entry?

No. The entry must be made by the signed-in visitor, in the form being shown, and be active. The rule is checked on the server every time.

Still need help?

Our support team answers tickets every day, usually within a few hours.

0
0
Your Cart
Your cart is emptyReturn to Shop
🔥 FREQUENTLY BOUGHT TOGETHER
Complete Combo & Save 40%!
ITEM IN YOUR CART
Gravity Forms Klaviyo Add-on
$39.00/yr
+
🎁 RECOMMENDED ADD-ON SAVE 40% OFF
Original Price: $39.00/yr
Bundle Special Price: $23.40/yr