Caldera_Forms_Entry Class

sunset and mountains

The class Caldera_Forms_Entry can be used to create, and modify saved Caldera Forms submissions. This article is developer-facing documentation. For documentation on how to work with saved entries from the WordPress user interface, please read this article.

This is a brief introduction to using this class to create and edit Caldera Forms submission data. In addition, links to other documentation on working with forms and form entry data are provided.

How To Create Caldera Forms Entries With PHP Code

Here is an example of how to create a new entry, add one field value to it, save the entry, update its status:

How To Edit Caldera Forms Entries With PHP Code

When you save an entry, the entry ID is returned. If we create an object of the Caldera_Forms_Entry class, and pass the entry ID, that entry will be queried from the database. This allows us to access saved submission data for other purposes or to edit saved Caldera Forms entry data. In the previous example, we were creating a new entry, so we used false for entry, ID. This time, used the id of a saved entry.

Further Reading