HOW TO USE FORM DATA IN PHP

How to access and modify form data in a ChronoForms v6 custom PHP action.

Overview

The issue arises from using outdated CF v4 methods that are incompatible with CF v6.
Use the v6 syntax to retrieve form data and assign new values directly to the data array.

Answered
Connectivity v6
at atanunu 02 Mar, 2017
Sir, Please, how can I use the form data in a custom PHP action; and how can I convert custom generated values to form data in PHP?
at atanunu 02 Mar, 2017
Sir,

I tried but seems not to be working with CCv6; I still need help, please
Max_admin Max_admin 03 Mar, 2017
Answer
Hi,

In v6 you can get the form data using this syntax:
{data:field_name}

or in php:
$this->data("field_name");


You may also add any value to the data array like this:
$this->data["field_name"] = "abc";


Best regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
This topic is locked and no more replies can be posted.