The Caldera Forms Easy Digital Downloads processor (free version) adds an auto-population option for Caldera Forms select fields for Easy Digital Downloads products. It also offers a processor that causes a field to be populated with downloads licensed with Easy Digital Downloads Software licensing. This is used in our support form, for example.
This document covers the free version of the Caldera Forms Easy Digital Downloads integration. These features are also offered by the “Pro” version, which also offers payments and custom bundles. Those features are documented in a different getting started guide.
Using The Auto-population Option
When this add-on, or the pro version are active, select fields will have an “Easy Digital Downloads” option when you choose to you field auto-population. When used the field will use the ID of the download product as value, and title as the label. It has no options.
This field can be customized using the “cf_edd_pro_autopopulate_options” filter. This filter exposes the WP_Query arguments used to populate the field.
Using The Software Licensing Processor
If you want to create a field for a user — by default the logged in user’s licensed downloads, you can use this processor.
To use this processor you first need to make a field. Create any type of select field in your form. You do not need to give it any options. They will be ignored.
Once you have added the field, add the “EDD: License Download” processor to your form. This processor has three settings:
- Field In this setting, map the field that you create and wish to be filled with the user’s licensed downloads.
- User ID In this field you can set the ID of the user whose licenses are used. Leaving this empty will use the current, logged in user’s ID.
- Empty Message This message will be shown if the user has no licensed downloads.