Jump to content

How to show user input form?

Recommended Posts

Hi Alfred community, I'm working on a workflow that requires a user input form (like below) to show up so we can gather multiple input fields from the user. How can I accomplish that?


Things thought/tried

- I thought we could chain multiple Script Filters together, each asking for one input, but that isn't intuitive and the user can only see one input at a time. 

- Another was using one script filter with separator between each input field ( input1<separator>input2<separator>input) and then split the input based on the separator. That isn't intuitive as well. The Alfred bar can only show few chars and user has to keep entering separator every time. 




Edited by andy4222
Link to comment
  • andy4222 changed the title to How to show user input form?
  • 3 weeks later...

Hey @andy4222, there is no way to do this with Alfred as far as I know. However, you can build it yourself from scratch.

I just finished an experiment that raises a graphical prompt that passes the values you enter to Alfred. This works by wrapping the GUI, i.e. SwiftUI components, in an  NSWindow instance.


To make it work for your needs, you will need to customize the SwiftUI view and its components.

I think the results are quite promising though. 😄


You can download the experiment here





Link to comment
  • 5 weeks later...
  • 5 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...