Re-arranging options within alert?

What I’m trying to do:

I have an alert which contains a large volume of text. I also have a button which opens a webpage with additional information. However, when I use the “standard” alert configuration code (below), the button always shows up at the very bottom of the alert box. Is there any way to re-position the button to be above the RichText box?

What I’ve tried and what’s not working:

Code Sample:

result = alert(buttons=['Open Doc'],content=TA,
                    content2 = RichText(content="res_text"),
                title=f"Doc Text\n\n\n{fin_doc_link}",
                large=True) ``` 

Clone link:
share a copy of your app

You can create your own form with labels, buttons, etc. and load that inside the alert.

Or you can try with alert2.

2 Likes

Yes, the buttons just raise an event, if you create an alert without any buttons, then load a form (as @stefano.menci said) within the alert that contains buttons that raise those same events, you can place the buttons wherever you wish in that custom form.

1 Like