How would you create this interactive input field?

Hello folks. Just wondering, how would you create this input field with advanced mouse interaction : see gif

  • Create a task when pressed “Enter key” : :thinking: no idea, how to do this?
    How do you create a thing just by pressing Enter from an input field. There does not exist workflow trigger on that action.

  • When clicked anywhere outside the input field, hide the input field and reset to default state the group : :thinking: no idea, how to do this?
    How would you do the workflow that hides the input when the user clicks anywhere outside of it?

Thank you :pray:
ezgif.com-video-to-gif

When submitted add a task to the DB and make sure filters on task allow for it to be shown and it’s sorted by created/modified asc

click anywhere on group / page other than existing list and other buttons hide input group -warning - performance will likely be sub-par

Hi, thanks for the answer.

  1. Sorry, I was unclear in my first question.
  • Create a task when pressed “Enter key” : :thinking: no idea, how to do this?

→ what I don’t get is how pressing my Enter key, when the input is focused, creates a thing

  1. Also, as for the second question, I don’t get it, how would you do the workflow that hides the input when the user clicks anywhere outside of it?

or similar

bunch of ways.

  • I mentioned click anywhere on page above which I didnt explain but means make the entire page a group and in workflows do a whenever an element (page group) is clicked w/ a conditional and the input group is visible → hide input
  • use a focus group
  • rules on input itself when its not in focus
    and many others if you take a look around I’m sure you’ll find some better ones.

Thanks

  1. Thanks for reffering to this other post, this solution works :white_check_mark:

  2. The first 2 possibilities can not realisicly be used in the product, and I don’t understand the last one.

  • “monitor when the whole page is clicked” → technicaly works but not acceptable because my mouse cursor is now a hand anywhere on the page
  • “use a focus group” → this can not be responsive so not acceptable
  • “rules on the input itself” → rules are not checked in real time and can not trigger stuff. I might not understand this option, or it might not work at all

Would you mind rephrase the last possibility?
Thanks

It seems crazy to have to do this but… this thread mentions a trick to solve this.

Really sometime Bubble is like a DIY school project