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


Posted to Laserfiche Cloud


Buttons (not links) for approval in emails

asked on August 1


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


replied on August 1

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


replied on August 1

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.