Custom Query Prepopulation: SELECT CASE
-
I am trying to get a dropdown field to dynamically prepopulate options using different queries depending on the value of another field (fieldname7).
I was able to get CFF to return simple text values ala:
SELECT CASE WHEN (<%fieldname7%> = 1) THEN (“YES”) ELSE (“NO”) END as text
I want to replace the “YES” and the “NO” with a select query instead, like SELECT name FROM employees;, but doing this substitution yields blank. Similar queries not based on fieldnames work directly in mysql.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘Custom Query Prepopulation: SELECT CASE’ is closed to new replies.