Forum Discussion

GregGebhardt's avatar
GregGebhardt
Qrew Member
5 years ago

Custom Save button - Redirect not acting as expected

Using the IOL method I have hidden much of the native UI for QB to create a clean look, this includes the native save buttons.

I have created a Custom save button that 'seems' to work.  It says it is saving and then redirects to my desired site. When I review the table the record is not there, It did not save.  Any help would be appreciated.  Not great with Java/JQuery.   

I have read that if you hide the native menus that the DoSave does not work anymore. Feedback here is also welcome. 

Formula RTF:

var text SAVE = "onclick=\"$('#saveButton').click()"; //other variation same results //var text Save="onclick=DoSave()";
var text REDIRECT = "http://www.redirectedsitesomewhere.org";

"<a " & $SAVE & "; href='"& $REDIRECT &"'><img src='https://dabuttonfactory.com/button.png?t=Submit+Request&f=Open+Sans-Bold&ts=16&tc=fff&hp=31&vp=10&c=11&bgt=unicolored&bgc=19204b'/></a>"



------------------------------
Greg G
------------------------------
  • Quick Base makes UI modifications regularly that could have unintended / unforeseen consequences with injected JS like this. I would encourage you to investigate the option of building custom forms using Code Pages if you need to have a specific layout that the standard form-builder can't accommodate.



    ------------------------------
    Blake Harrison
    bharrison@datablender.io
    DataBlender - Quick Base Solution Provider
    Atlanta GA
    404.800.1702 / http://datablender.io/
    ------------------------------