You are viewing limited content. For full access, please sign in.

Question

Posted to Laserfiche Cloud

Question

Buttons (not links) for approval in emails

asked on August 1, 2022

Hi, 

Using LF Cloud. The boss has requested that instead of links to APPROVE / REJECT, we have buttons instead. I've had a crack at this but no joy. Although I can get the buttons displaying in the email, clicking them does nothing, it just stays on the email client screen.

The HTML code I've used in my business process (email user once the task is assigned) is this:

<button onclick="location.href='{/dataset/direct_approval_approve}'" type="button">Approve</button>

Can it be done? Thanks, Brett.

0 0

Answer

SELECTED ANSWER
replied on August 1, 2022

Last I checked, most email systems do not allow java script to work for security reasons.

Suggest changing it back to links which works and adding some style to make it look like a button.

1 0

Replies

replied on August 1, 2022

Thanks Michael, I got it working with this:

<a href="#" style="background-color: gray; color: white; padding:0.5em 1em;text-decoration: none;text-transform: uppercase;font-weight:bold; font-size:12pt">

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.