I am trying to display title with my form select field, but I keep getting first value of my sql select statement. I already tried to use Initial Value, but this does not work. I can set {field} = 'title OnLoad, but this code will be performed each time form is reloaded.
I am using this SQL:
SELECT DISTINCT Site
FROM data
WHERE id_active = 1
ORDER BY Site ASC
WHEN I use this I get title displayed on first load, but Site is not selected distinct:
SELECT DISTINCT id, Site
FROM data
WHERE id_active = 1
ORDER BY Site ASC