ChronoEngine.com homepage

Forums

Please write a review for the extension you are using on the Joomla extensions directory before posting a new question as we are being spammed by many negative reviews.

Thank you for your support!

Acymailing firstname+lastname = name

galbur 17 Jun, 2019
Hi

In Chronforms 5 i had a custom code to merge "firstname" + "lastname" to "name" to subscribe (via CURL) to a Acymailing Newsletter.
<?php
$form->data['name'] = "{$form->data['firstname']} {$form->data['lastname']}";
?>
Unfortunately it doesn't work in chronforms 6 anymore.

All the Best
Christoph
healyhatman 18 Jun, 2019
Answer
$this->data("fieldname") to get the value
$this->data("fieldname", "value", true) to set a value

Or just use both data fields in the Curl action
curl_field_name:{data:firstname} {data:lastname}
galbur 18 Jun, 2019
Hi healyhatman

Thanks a lot. To use both data fields in the Curl Action is working. Good idea ...

all the best
Christoph
This topic is locked and no more replies can be posted.

2Checkout.com

2CheckOut.com Inc. (Ohio, USA) is an authorized retailer for goods and services provided by ChronoEngine.com