Title: Caldera form auto-generate unique code
Last modified: August 31, 2016

---

# Caldera form auto-generate unique code

 *  [mhairilongmuir](https://wordpress.org/support/users/mhairilongmuir/)
 * (@mhairilongmuir)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/caldera-form-auto-generate-unique-code/)
 * Hi,
 * Is it possible (or is there a plugin available, paid or free) that will allow
   a unique code to be generated when the form is submitted?
 * Cheers
 * [https://wordpress.org/plugins/caldera-forms/](https://wordpress.org/plugins/caldera-forms/)

Viewing 7 replies - 1 through 7 (of 7 total)

 *  Thread Starter [mhairilongmuir](https://wordpress.org/support/users/mhairilongmuir/)
 * (@mhairilongmuir)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/caldera-form-auto-generate-unique-code/#post-6989362)
 * Or can I use a hidden field and entry_ID for this? I don’t see any documentation
   on how to use it.
 * If this isn’t currently possible, will it be possible to have it developed with
   a support ticket?
 *  Plugin Contributor [David Cramer](https://wordpress.org/support/users/desertsnowman/)
 * (@desertsnowman)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/caldera-form-auto-generate-unique-code/#post-6989364)
 * try this- [https://github.com/Desertsnowman/cf-keygen](https://github.com/Desertsnowman/cf-keygen)
 *  Thread Starter [mhairilongmuir](https://wordpress.org/support/users/mhairilongmuir/)
 * (@mhairilongmuir)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/caldera-form-auto-generate-unique-code/#post-6989370)
 * Oh great, thanks.
 * Sorry, I’ve never used a plugin downloaded from GitHub before, do I just ‘download
   zip’ and then upload it the same as normal plugins? I don’t see any instructions.
 * Thanks again
 *  Plugin Contributor [David Cramer](https://wordpress.org/support/users/desertsnowman/)
 * (@desertsnowman)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/caldera-form-auto-generate-unique-code/#post-6989372)
 * in this case, yes that will work fine.
 *  Thread Starter [mhairilongmuir](https://wordpress.org/support/users/mhairilongmuir/)
 * (@mhairilongmuir)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/caldera-form-auto-generate-unique-code/#post-6989441)
 * Apologies for the basic questions, but how do I get it working?
 * I installed the plugin (but didn’t see anything new appear in the navigation 
   after that, so I’m not sure if there are settings for it?), then did another 
   test on the form, but there was no output on the results.
 * Thanks
 *  Plugin Contributor [David Cramer](https://wordpress.org/support/users/desertsnowman/)
 * (@desertsnowman)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/caldera-form-auto-generate-unique-code/#post-6989443)
 * So sorry.
    It’s a form processor. So once activated, edit the form you want the
   code generated for.
 * Then go to the processors tab and click Add Processor.
 * In the modal, that pops up, you’ll see the processor `Keygen` Click `Use Processor`
   and the processor will be added to the page.
 * You will then see the config panel with Name and Pattern. Give it a name to remember
   what its for. Something like Entry Key or what ever you want.
 * The pattern is the the format of the unique code. the asterisk * is randomly 
   a letter or number, an ‘a’ is a letter and a ‘9’ is a number so,
    if the pattern
   is `***-a-9` then the unique code would be something like `a81-u-2` or `3pq-d-
   8`.
 * Now if you want the code used in a field, you can add a `hidden` field and set
   the value to `{keygen:key}` this field, on submit will then use the key generated
   by the processor.
 *  Thread Starter [mhairilongmuir](https://wordpress.org/support/users/mhairilongmuir/)
 * (@mhairilongmuir)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/caldera-form-auto-generate-unique-code/#post-6989463)
 * Thank you very much for the instructions. I tlooks like it’s generating random
   numbers, is it possible to change these to be incremental? (After this is done,
   I’m good to go!!!!)
 * Many thanks

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Caldera form auto-generate unique code’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/caldera-forms_475846.svg)
 * [Caldera Forms - More Than Contact Forms](https://wordpress.org/plugins/caldera-forms/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/caldera-forms/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/caldera-forms/)
 * [Active Topics](https://wordpress.org/support/plugin/caldera-forms/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/caldera-forms/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/caldera-forms/reviews/)

## Tags

 * [code](https://wordpress.org/support/topic-tag/code/)

 * 7 replies
 * 2 participants
 * Last reply from: [mhairilongmuir](https://wordpress.org/support/users/mhairilongmuir/)
 * Last activity: [10 years, 3 months ago](https://wordpress.org/support/topic/caldera-form-auto-generate-unique-code/#post-6989463)
 * Status: not resolved