Skip to content

How should you use the Dialog as a form? #399

Answered by benoitgrelard
csenio asked this question in Help
Discussion options

You must be logged in to vote

Hi @jescowuester,

If you're using Action I am guessing that your are using AlertDialog and not Dialog right?

If so, my first feedback seeing the image above would be that it's probably the wrong component for your use case.
AlertDialog should be used basically for things like user confirmation when a destructive action is about to happen, thinks like discard changes, etc. So you probably want to use Dialog instead here.

Secondly can you help me understand what you are trying to achieve?

  • Are you trying to submit the form but leave the Dialog open? (if so, how would the user close it?)
  • Are you wanting to submit it and asynchronously wait for the submission to happen and then close it?

I'm…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@kylemh
Comment options

@andy-hook
Comment options

Answer selected by benoitgrelard
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
4 participants