Is there something like a form card?

Hello,
I’m currently searching for something like a form card.
Like a card with configurable input fields and one or two buttons to submit or cancel.
When submit gets pressed, a service should get called and the fields get passed to that service.

This functionality already exists in browser mod as a popup, but not as a standalone card.

Does someone know of a card like that?

Thanks!

I don’t know of anything that is an all-in-one, but I use Text-input-row card with a couple helpers and scripts to do what you have described. I have a gist that shows the set up.

Thanks, forgot to mention that I’m currently using a similar approach. However, this has the issues that

  1. it creates many helpers (which is acceptable)
  2. two users can’t simultaneously use / fill out a form

You figure this out? Same boat!

  1. two users can’t simultaneously use / fill out a form

Nope, still using a browser mod popup

Not sure why you need a browser mod popup, doesn’t the default script popup do the same thing?

Theoretically, yes, but last time I tried, there were no formatting options.
Like, you couldn’t configure whether a select field should get displayed as multiple radio buttons or as a single dropdown (dropdown preferred). Many radio buttons get quite crowded, especially on mobile.

Normal Script:
script call

With popup:
popup

The script can be configured to use dropdown, it’s an option on the select selector (mode: dropdown):

https://www.home-assistant.io/docs/blueprint/selectors/#select-selector

1 Like

Wow, didn’t know that. Still a little bit clunky and unflexible for my taste, but good to know, thanks!