Jan 11, 2023 03:09 PM
I've run across a script in our base that uses this code:
let view = await input.viewAsync("Pick a view", "Projects");
Our "Project" Table has 100+ views organized by sections, is there any way to modify the code to limit the input choices to a specific view section? (screenshot: Section=Templates)
if not, are there other ways to limit the input options using a view naming convention or similar?
Thanks for any input, I've reviewed this documentation, but didn't find any guideance.https://airtable.com/developers/scripting/api/input
Solved! Go to Solution.
Jan 11, 2023 03:42 PM
The only filtering for Views I'm aware of is filtering by TYPE (Grid, Kanban, etc...). What may work is creating another table where each Template gets it's own records and where one of the fields is the View ID. Users could then select the template's name from that smaller list of records and the View ID or even just the View name is fed back into the script.
Jan 11, 2023 03:42 PM
The only filtering for Views I'm aware of is filtering by TYPE (Grid, Kanban, etc...). What may work is creating another table where each Template gets it's own records and where one of the fields is the View ID. Users could then select the template's name from that smaller list of records and the View ID or even just the View name is fed back into the script.
Jan 11, 2023 05:18 PM
Thanks for the reply! I hadn't thought about separating the Templates into their own table, but that should work since our base has grown to a point where we probably shouldn't keep templates and live records in the same table.