Jump to content

How to show user input form?


Recommended Posts

Posted (edited)

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. 

 

 

image.png.3cfada34fccaa7668fdd15f52cabb211.png

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

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

gui1.thumb.png.a61e8125306b5c7e99b8bad086eedb7c.png

gui2.thumb.png.af3a47c25392dfdbe8a6107a08c1a362.png

gui3-back-to-alfred.thumb.png.785405b51e2e328517ed8f603afe998e.png

 

  • 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...