I have two tables/queries .... 'Available Programs' and 'Enrolled Programs'. On my form I have a Dynamic select that pulls the options from a 'available programs' query. And when the form is submitted it adds a record to the 'enrolled programs' table.
What I need to do is hide or disable the select option if it already exists in the enrolled programs query so a client can't be added to the same program more than once.
I don't even know where to start with this. Any help would be appreciated. Thanks.
I think I got it! I created an array on the server side and I was able to use the 'NOT IN' on the second query to get my list of programs available to that client.
Works perfectly on a test page. Tomorrow I will try it on my live project. Thank you guys for your hints and input and time.
I changed the solution to @Apple' s suggestion of using the flatten formatter. That was WAY easier and works like a charm. Thanks @Teodor for the screenshot in another thread. That got me in the right direction. Man, that was so easy.
Note to self: I had to add a condition to the programs query. If the profiles query was empty it wasn't showing any programs. Adding a condition to the filter solved that.