Save data in chronoform7

Update database records in ChronoForms.

Overview

The "data set" field in the "save data" action defaults to "whole form data," which prevents database updates.
Leave the "data set" field empty or replace "whole form data" with the appropriate data placeholder, such as {data:}, to allow the update to proceed.

Answered
ChronoForms v7
Br BrunoPigi 14 Feb, 2024
The "data set" entry in the "save data" action only shows the "whole form data" option. When I update a record, the database is not updated. I have to leave the "data set" empty and then the database gets updated.

Unfortunately, simply updating the form in the admin causes the "data set" entry to be automatically filled in with "whole form data" again.

What can I put instead of "whole form data"?
sk skittle 14 Feb, 2024
Answer
1 Likes
You can replace the Whole form data with the equivalent {data:}. If you are using model names to organize your data you can get all fields inside of a model using {data:model}. Inside of a model you can access individual fields using {data:model.field}. If you are not using model classifiers simply use {data:field}.
This topic is locked and no more replies can be posted.