Forum Discussion
JenniferJuhasz
4 years agoQrew Cadet
Hi Mike,
This is very much like what I had before for my Save & Submit button:
"<a class=\"Vibrant Primary\" style=\"width:310px; background: #2abdbc; text-align: center; font-size: 16px; font-family: Arial, Times, Sans-serif;\" href=\"targeturl" target=_blank><b>Submit</b></a>"
But the results ended up not submitting at all even though I have the 'Save on Redirect' option checked.
Jeff's solution works for saving my data - and my CSS code for the button appearance is:
var text bgcolor = "#2abdbc";
var text txtcolor = "white";
var text style = "style=\"text-decoration: none; width: 310px; text-align: center; background:" & $bgcolor & "; border-radius: 5px; padding: 8px 10px; color: " & $txtcolor & "; display: inline-block; font: bold 700 32px/1 \"Arial, Times, Sans-serif\", sans-serif; text-shadow: none; font-size: 32px"
But the font 'size' didn't increase to 32px at all - and I'm not sure why. Thoughts?
------------------------------
Jennifer Juhasz
------------------------------
This is very much like what I had before for my Save & Submit button:
"<a class=\"Vibrant Primary\" style=\"width:310px; background: #2abdbc; text-align: center; font-size: 16px; font-family: Arial, Times, Sans-serif;\" href=\"targeturl" target=_blank><b>Submit</b></a>"
But the results ended up not submitting at all even though I have the 'Save on Redirect' option checked.
Jeff's solution works for saving my data - and my CSS code for the button appearance is:
var text bgcolor = "#2abdbc";
var text txtcolor = "white";
var text style = "style=\"text-decoration: none; width: 310px; text-align: center; background:" & $bgcolor & "; border-radius: 5px; padding: 8px 10px; color: " & $txtcolor & "; display: inline-block; font: bold 700 32px/1 \"Arial, Times, Sans-serif\", sans-serif; text-shadow: none; font-size: 32px"
But the font 'size' didn't increase to 32px at all - and I'm not sure why. Thoughts?
------------------------------
Jennifer Juhasz
------------------------------
LauraThacker_ID
4 years agoQrew Trainee
I was trying to replicate your issue; and I think there is a bug with the class SaveBeforeNavigating not working in some cases.
Even if I take off the target=_blank (which means new window); I still do not get the save and even though the table is set to auto-save; it does not - it prompts me to leave the site.
Try the updates to the Styling in your formula and see if you're still getting the non-save issue that I am. If so, submit a support ticket. I suspect something bigger is going on here.
(I've submitted a ticket #676259 on the inability to do more than one API command when using SaveBeforeNavigating or being able to redirect somewhere else)
------------------------------
Laura Thacker IDS
------------------------------
var text targeturl="https://www.google.com";
"<a target=_blank class='Vibrant Success' SaveBeforeNavigating title='' style='font-size: 32px; display:inline-block; white-space; nowrap; background: #2abdbc; border: 1px solid #2abdbc; text-align: center; font-family: Arial, Times, Sans-serif; text-align:center; text-decoration:none' href=\"" &
$targeturl
& "\""
& ")'>Submit</a>"
I got the button the right size/color etc, but the record is not saving before redirect. I have also noticed this to be a problem when trying to make a SaveBeforeNavigating button do another API_EditRecord before navigating to the redirect location; which possibly means it is suffering the same problem.Even if I take off the target=_blank (which means new window); I still do not get the save and even though the table is set to auto-save; it does not - it prompts me to leave the site.
Try the updates to the Styling in your formula and see if you're still getting the non-save issue that I am. If so, submit a support ticket. I suspect something bigger is going on here.
(I've submitted a ticket #676259 on the inability to do more than one API command when using SaveBeforeNavigating or being able to redirect somewhere else)
------------------------------
Laura Thacker IDS
------------------------------
- JenniferJuhasz4 years agoQrew CadetHi Laura,
Thank you so much for your reply! It is so appreciated to have one of you more experienced QB users validate my understanding that there's a larger issue here; I have an open ticket with QB Support - I started there, initially, because we did receive successful 'Test' entries when I first built these surveys in late November and early December; but then when my team sent them out into the world, none of the replies were recorded. We found the issue last week, (of course during the holidays); and I opened a ticket right away.
QB has not been tremendously helpful - they insist nothing has changed on their end that would cause the 'Save on Redirect' option to stop working.
Jeff and Dan's solutions to update my formula to 'Save before Navigating' is working - and that's a relief; though we've lost all the data from last month, hopefully moving forward we have this resolved.
------------------------------
Jennifer Juhasz
------------------------------