website icon indicating copy to clipboard operation
website copied to clipboard

Hide "Sender address" button when transport medium is `email` or `webform`

Open baltpeter opened this issue 2 months ago • 4 comments

When there are multiple address fields for a request, we display a "Sender address" button such that the user can choose which was should be used as the sender address.

Image

But this is only ever used when we generate a PDF (i.e. when the transport medium is letter or fax). Thus, we should hide the buttons when the transport medium is email or webform.

baltpeter avatar Nov 15 '25 14:11 baltpeter

Sidenote: I am unhappy with the "sender address" buttons anways. They confused me last time I used the generator. It was not clear to me, that one marks one of the addresses as sender address. Maybe this should be drop-down? Or a question in the next step? Or radio buttons, which might make it clearer.

mal-tee avatar Nov 15 '25 23:11 mal-tee

Yeah, I thought about that as well. The current implementation really isn't clear. But I couldn't really come up with a better one.

Semantically, this should be a radio button, but that doesn't work when "split up" like this.

Or a question in the next step?

Not sure what a dropdown would look like. Do you have a mockup in mind?

baltpeter avatar Nov 16 '25 10:11 baltpeter

But maybe even just making the label more verbose could help?

Image

baltpeter avatar Nov 16 '25 10:11 baltpeter

But maybe even just making the label more verbose could help?

Image

Yes, sure. But imo its not clear that the blue button is selected. Maybe in combination with a ticked box or something.

mal-tee avatar Nov 16 '25 11:11 mal-tee