Hide "Sender address" button when transport medium is `email` or `webform`
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.
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.
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.
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?
But maybe even just making the label more verbose could help?
But maybe even just making the label more verbose could help?
![]()
Yes, sure. But imo its not clear that the blue button is selected. Maybe in combination with a ticked box or something.