Hi raschdmd
If I understand you correctly....
You have a form,
In this form you want to store a value,
This value is based on the concatenated value of two fields,
One of these fields is the Form Title,
The other field is a value based on a SQL query.
I have described my process below:
STEP 1:
Create three fields:
Field 1: {Type: text, Title: Title, Storage: title}
Field 2: {Type: text, Title: The Query, Storage: None}
Field 3: {Type: text, Title: The Fake Title, Storage: None}
(Field 1 stores the concatenated values of Fields 2 and 3)
STEP 2:
Field 2 (The Query): Set live to SQL Query and add this code:
SELECT COUNT(*)
FROM #__content
WHERE catid = 2
(Change catid to whatever value is required)
Add to Form (display in hidden position when site is live!!)
STEP 3:
Field 3 (The Fake Title): Display in Form, visible to the user. Title will be typed in here.
STEP 4:
Field 1 (Title): Select 5 from the column of numbers - "Conditional States + Computation".
Select "Edit" from the "Computation" column.
A Modal Window Appears.
Select "Concatenate" form the "Computation" Select List.
Add the desired fields.
Save and Close
Add to Form (display in hidden position when testing is complete!!)
Bucklash
PS I find it easier to use the BeforeStore Field to do things like Concatenate... more versatile :)