I would like the ability to concatenate values that are returned from a database lookup in one field. Example: In my database it has fields for last name and first name. On my Form I want to display them as one field so I would just have a name field and be able to put both the last name and first name values into one field.
Question
Question
Answer
Hi there,
Thanks for your user story. We'll take "customize sql query" request into consideration for future Forms.
This request doesn't necessarily need a user to be able to customize a SQL query, but be able to take two token values returned from a database lookup and put them side by side in the Forms interface.
to concatenate, what is the preferred seperator: use ; or , or space
I think the user should be able to choose what the separator is. So when Forms detects that more than one database value has been selected to fill a field, show another drop-down field with the most common values: ',' or ';' or ' ' or '-' or '.' or '/', etc. as a separator.
Replies
Blake,
I agree it would make this type of thing take one less step however, this could be easily done with a SQL view. Something like below would work perfectly for this. Once you make a view it will show up as if it was another table when you select which table to query. Obviously you would want to customize it to your needs.
select first_name + ' ' + last_name as first_last, first_name, last_name, employeeid from Users
John, thank you for the information. I was just thinking that from an end users perspective that doesn't know SQL, it would be nice if they could just do it through the Forms interface much the same way you can do it in Workflow.