Real Beginner Question

How to combine form fields in ChronoForms 6.

Overview

The problem is that custom PHP code used to concatenate fields in CF5 is not compatible with CF6.
Use the built-in "Set Field Value" action in the form wizard to combine the firstname and lastname fields into the fullname field.

Answered
U U Can Drive 10 Mar, 2018
Answer
I have been using Chronoforms 5 and have upgraded to 6 because I need my registration form to auto activate which no-longer works with 5.
The problem is things have changed and what I knew before I no-longer seem to know.

I have three fields firstname - lastname - fullname

On submit I used the following code in a "Custom Code" action[pre]<?php
$form->data['fullname'] = "{$form->data['firstname']} {$form->data['lastname']}";
?>[/pre]
I can't seem to get this to work anymore.
I've also tried it as custom code again and with the PHP action. I've also tried it like this:
$form->data['fullname'] = "{$form->data['firstname']} {$form->data['lastname']}"
as it says to not use the tags.

Could someone please tell me how to do this the v6 way?

Thanks in advance.[br][br]Oh, and my Checkbox seems to be a mutation of the Chronoforms one and my templates one and doesn't work???Real Beginner Question image 1
This topic is locked and no more replies can be posted.