Help

Re: viewAsync - choose a view from a view section?

Solved
Jump to Solution
1255 0
cancel
Showing results for 
Search instead for 
Did you mean: 
Steve_Kiwi
6 - Interface Innovator
6 - Interface Innovator

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

Steve_Kiwi_0-1673478413103.png

 

 

1 Solution

Accepted Solutions
AirBenderMarcus
7 - App Architect
7 - App Architect

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.

See Solution in Thread

2 Replies 2
AirBenderMarcus
7 - App Architect
7 - App Architect

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.

Steve_Kiwi
6 - Interface Innovator
6 - Interface Innovator

@AirBenderMarcus 

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.