Skip to main content
Question

Turn notification hyperlink into a button

  • August 9, 2023
  • 0 replies
  • 150 views

Forum|alt.badge.img+1

Hello! I am creating a notification and am wondering if I can change the hyperlink listed in the notification into a button. Is this possible via a rich-text formula? Please let me know!



------------------------------
System User
------------------------------
This topic has been closed for replies.

MarkShnierYou
Forum|alt.badge.img+24

Yes exactly, you need to have a Rich Text field type to have the appearance of the button survive e-mail.

Here are my cheat notes.  Two examples.

Emailable button (Magic Buttons Kirk Trachey) w/ obscure record id (rid) Yes  
var text DisplayRecordWithObsureRID = URLRoot() & "db/" & Dbid() 
& "?a=dr&r=" & QB32Encode([Record ID#]);


var text URL = $DisplayRecordWithObsureRID;


var text ButtonWords = "Click here to Update ETD and ETA dates";

// Begin button style
var text bgcolor = "#34A853";
var text txtcolor = "white";
var text style = "style=\"text-decoration: none; width: 250px; text-align: center; background:" & $bgcolor & "; border-radius: 5px; padding: 8px 10px; color: " & $txtcolor & "; display: inline-block; font: normal 700 24px/1 \"Calibri\", sans-serif; text-shadow: none;";
// End button style

"<a " & $style & " href=" & $URL & ">" & $ButtonWords & "</a>"

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
button with a larger font and floating width to accommodate the words

var text URL = [Log In URL];
var text ButtonWords = "Log In"; 


// Begin button style
var text bgcolor = "#34A853"; // green
var text txtcolor = "white";
var text style = "style=\"text-decoration: none;  text-align: center; background:" & $bgcolor & "; border-radius: 5px; padding: 8px 10px; color: " & $txtcolor & "; display: inline-block; font-size: 150%; font: normal 700 24px/1 \"Calibri\", sans-serif; text-shadow: none;";
// End button style

"<a " & $style & " href=" & $URL & ">" & $ButtonWords & "</a>"



------------------------------
Mark Shnier (Your Quickbase Coach)
mark.shnier@gmail.com
------------------------------