Hi Klas, I am not getting the overall proposed solution, I try to explain: I need a select dynamic field that uses values of other fields in the form as WHERE conditions to determine the options of the select field. This is unfortunately not natively supported in Seblod so you are suggesting to use javascript part of the field to tune the option list.
Now, I have read in the forum that only removing options is supported and not adding: no chance of adding? I ask this because if it's like that, the SQL query must be very general (like all items in #__content) to be filtered later on, being a very long (and thus slow) list...
Second problem/question: the Javascript code would filter out many options to implement the WHERE conditions based on other fields values, but to know the list of options to be deleted, I need to query the DB in the JS: I think I need to use an AJAX call again (maybe through select2), no? With which parameters (like which URL)?
cheers and thanks
Giuse