Skip to content

Print #2944

Answered by kevintosh
oaslsjcnndq asked this question in Help
Print #2944
Oct 9, 2021 · 6 comments
Discussion options

You must be logged in to vote

This is maybe very old, but I hacked a solution.

I want a very simple "Print" button that calls the system print dialog.

Since the normal Button element from Budibase does not support a JavaScript action (which would be great if it did) I just added a dummy button to have the button exist in the first place, then hid it with a Condition (if 1=1) and then added an Embed element with exact the same html code (got it from inspector), plus I added an onclick action:

<button onclick="window.print()" class="spectrum-Button spectrum-Button--sizeM spectrum-Button--primary svelte-1gv5n3y spectrum-Button--quiet c0559966773234991a3d43bc7904da611-dom" contenteditable="false" draggable="false"> Imprim…

Replies: 6 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by ConorWebb96
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
6 participants