Forum Discussion
JeffPeterson1
Qrew Captain
Hi Jennifer, I'm doing something similar and it still works fine for me.
Try this code:
var text ButtonWords = "Save and Submit";
var text URLONE = "https://https-ourQBInternalEOTIThankYouPage&ifv=1";
// Begin button style
var text bgcolor = "#8ab3d1";
var text txtcolor = "white";
var text style = "style=\"text-decoration: none; width: 150px; 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 class='SaveBeforeNavigating'" & $style & " href=" & $URLONE & ">" & $ButtonWords & "</a>"
------------------------------
Jeff Peterson
------------------------------
Try this code:
var text ButtonWords = "Save and Submit";
var text URLONE = "https://https-ourQBInternalEOTIThankYouPage&ifv=1";
// Begin button style
var text bgcolor = "#8ab3d1";
var text txtcolor = "white";
var text style = "style=\"text-decoration: none; width: 150px; 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 class='SaveBeforeNavigating'" & $style & " href=" & $URLONE & ">" & $ButtonWords & "</a>"
------------------------------
Jeff Peterson
------------------------------
DanLadner1
3 years agoQrew Trainee
Yep, I think the
Here's another (very similar, but simpler) example:
------------------------------
Dan Ladner
------------------------------
class='SaveBeforeNavigating'
piece is what's missing in OP's code.Here's another (very similar, but simpler) example:
var text rdrURL = "www.redirectPage.com";
"<a class='SaveBeforeNavigating' href='" & $rdrURL & "'>Submit</a>"​
------------------------------
Dan Ladner
------------------------------