Buy Now
Sign in

Show multiple values in a text key

NJM , October 20 at 18:18
N
NJM

Hi there,

I was wondering how a put 2 (or more values) in e text key when you load values via dynamic data,

Let's say there's a dropdown that shows field 'name' from DB, but I want to add the firstname as well,
so what syntax I need to write in order to show name + firstname.

Thanks in advance!

GreyHead

Hi NJM,

Please see this FAQ for a simple example - in your case the code would need to be a bit more complicated to loop through all the values for the drop-down.

As an alternative you could use a DB Query in a Custom Code option and use CONCAT() to build the new value.

Bob

ChronoForms technical support
If you'd like to buy me a coffee or two, thank you very much