Create a print button for a web app

How do I create a print button on a web app that will bring up the print dialog of the browser for a web app?

1 Like

That’s new I never heard of this before, most probs using an external API.

Maybe the links below?

https://developer.mozilla.org/en-US/docs/Web/API/Window/print

1 Like

Thank you will give it a try!

Hi,

We’ve ran into this before with client requests.

Depending on what you want to print, we’ve found it’s better to send an email with the information (you can generate a PDF and attach it if you want).

The other JS idea might work if you have an additional website/service to put it through, but I wouldn’t expect that to work directly from Adalo. The reasons for this are a bit complex, but in short you need to direct the user to the correct URL which is hard to do.

Erik

Hi, I understand your problem .I search on google and find this answer.

You can use this

Opens the Print Dialog to print the current document.

In most browsers, this method will block while the print dialog is open. However in more recent versions of Safari, it may return immediately.

window.print()

We go through how to make a print button, and other things.

2 Likes