thellie
Member
Going back to a thread which Hugh helped me with a while back, I used the following as a basis to get the title of an element from a third table. It's working fine in the form view, but not in the list view.
My code is:
It's showing a single name correctly in the form, but repeats for every instance of the name in the table_repeat_element table. Attached pics make it clearer, hopefully.
I can't work out why...
Code:
(SELECT name FROM table2 WHERE table2.id = {thistable}.element)
Code:
(SELECT option_name FROM extra_options WHERE extra_options.id = {thistable}.trek_extras)
It's showing a single name correctly in the form, but repeats for every instance of the name in the table_repeat_element table. Attached pics make it clearer, hopefully.
I can't work out why...