Forum Discussion
JenniferJuhasz
4 years agoQrew Cadet
Hi everyone,
Still looking for a response. Does anyone know if this no longer functions in QB? I'm also not getting responses from Customer Support.
Thank you,
Jen
------------------------------
Jennifer Juhasz
------------------------------
Still looking for a response. Does anyone know if this no longer functions in QB? I'm also not getting responses from Customer Support.
Thank you,
Jen
------------------------------
Jennifer Juhasz
------------------------------
- SSNJeffP4 years agoQrew Captain
- SSNJeffP4 years agoQrew CaptainHi 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
------------------------------- DanLadner14 years agoQrew TraineeYep, I think the
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
------------------------------ - JenniferJuhasz4 years agoQrew CadetThank you so much - I couldn't get Dan's option to work without Syntax errors (the problem with learning how to do this on the go, without actually having an opportunity to sit and study/learn is a sizeable gap in knowledge on my part);
Jeff's formula works well for me, and test entries are now submitting (thank you!) - one question; I can't seem to increase the font size at all. Doesn't seem to matter if I list it as bold, bolder, 900, 32px or 64px - it's always the same size. The original code that I used was one I learned through QB Junkie for the <a class=\"Vibrant Primary\">; but I'm not sure how to call that out.
Suggestions? And thank you - I appreciate it very much - the appearance of the button matters quite a bit to our leadership team.
------------------------------
Jennifer Juhasz
------------------------------