Script Troubleshooting help
I have form called “Add a Student” with a multiselect field called “Enrolled Classes”.
I have another form called “Classes” with a field called "Max number of students” and a field called "Number of Students Enrolled” which counts how many students are listed as enrolled in that class.
When I load my “Add a Student" form I only want to be able to select Classes that have spots available in them. Ie: "Max number of students” < "Number of Students Enrolled”. I have a workflow to do this:
classesAvailableList = Add_a_Class[Number_of_Students_Enrolled < Max_number_of_students].ID.getAll();
input.Enrolled_Classes:ui.add(classesAvailableList);
Any ideas how I could fix this?