Discussions

 View Only
  • 1.  Custom Save button - Redirect not acting as expected

    Posted 12-26-2020 09:06

    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
    ------------------------------


  • 2.  RE: Custom Save button - Redirect not acting as expected

    Posted 12-26-2020 14:21

    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/
    ------------------------------