Buy Now
Sign in

Acymailing firstname+lastname = name

galbur , June 17 2019, 15:08
G
galbur 151
June 17 2019, 15:08 #387575
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 8
June 18 2019, 03:02 #387595
 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}
Web developer at SkySpider.com.au - I DO NOT work for ChronoEngine!
Donations: paypal.me/healyhatman
Professional Work: kamron@skyspider.com.au
Custom CF / CC Plugins and Extensions: skyspider.com.au/store
G
galbur 151
June 18 2019, 13:30 #387627
Hi healyhatman
Thanks a lot. To use both data fields in the Curl Action is working. Good idea ...
all the best
Christoph