Contains Client Side Scripting - Workaround?

Contains Client Side Scripting - Workaround?

I use mobile devices heavily with my application.  I previously used on-input deluge to populate a dropdown list with a more precise list of choices for my field operators.  This was made impossible with the security changes implemented in April-May.  I have attempted to create my own work-arounds which have proved problematic.  As such I have been left with no choice but to require my field operators to scroll through many options in the dropdown before finding the one they are looking for.


Previously I would use a selection from another dropdown list to narrow the choices through a get records code to get a value to filter out unrelated records and then populate the dropdown.  My workaround was creating a checkbox in the records to be filtered and using update record deluge at the submit button of the previous form.  This has proven to take too long and I'm sure taxing your servers.

This is the script I used before the security changes on a "on-update" trigger:

C  =  Trial  [Trial_ID == input.TrialID_Entries];
for each V in VarietyInventory  [Commodity == C.Commodity]
{
    Variety:ui.add(V.Variety);
}






Question: Is there a better workaround to accomplish this?