Discussions

Expand all | Collapse all

Can I hide the green Save Record button?

Chris Chris09-22-2016 19:23

  • 1.  Can I hide the green Save Record button?

    Posted 09-20-2016 20:21

    Hi,

    I'd like to force Everyone On The Internet to use a custom Save Record button and remove the green Save buttons. Is this possible?

    Thanks

    CGreene



  • 2.  RE: Can I hide the green Save Record button?

    Posted 09-20-2016 20:33
    IOL with this selector:

    $("#saveButton, #saveButton + a").hide();

    The second selector uses the adjacent sibling combinator + to select the split button dropdown after the save button.

    I should add that while we can safely continue to modify the DOM like this it will likely become more problematic as QuickBase moves forward using frameworks like angular and react to manage the "views". Never fear we will just tap into those frameworks with our JavaScript - or just modify the page using Service Workers before the browser tab has a chance to even see the page.

    There is no stopping Service Workers. You will want to be on the cutting edge of this new technology!!!!!


  • 3.  RE: Can I hide the green Save Record button?

    Posted 09-22-2016 19:23
    Excellent! Works perfectly. Thank you.


  • 4.  RE: Can I hide the green Save Record button?

    Posted 09-23-2016 18:11
    I updated my answer where I wrote "adjacent sibling selector +" where I should have wrote "adjacent sibling combinator +".

    In any event, creating your own Save button might not give you all the functionality of the real save button. There are a number of things the QuickBase Save button does behind the scenes that may not be apparent such as conflict resolution or field validation. So even if you Save button appears to work now for simple cases you might get a different behavior with one of the edge cases.

    When I modify the behavior of a QuickBase form I try to make the least invasive change to the page. Often time this is done through writing script that either automatically creates or intercepts a user action. You can think of such a script as as acting like an "invisible friend" that is generating user input on your behalf through script. In this fashion you script will not interfere with QuickBase code.


  • 5.  RE: Can I hide the green Save Record button?

    Posted 06-22-2017 03:01
    how do I apply this on my app. I want to hide the standard quickbase save and save & add new button on the top right corner and instead use the custom save button created using formula url. to ensure users use this instead of standard button. The button should be disabled on form add/edit.

    Can I request for step by step instructions for this. Any help will be appreciated.


  • 6.  RE: Can I hide the green Save Record button?

    Posted 06-22-2017 09:59
    Create a formula text field in the table, add the below code and enable the "Allow HTML" as checked 
    "<img qbu=\"module\" src=\"/i/clear2x2.gif\" " & "onload=\"javascript:if(typeof QBU=='undefined'){QBU={};$.getScript('" & URLRoot() & "db/" & Dbid() &"?a=dbpage&pagename=module.js&rand='+Math.random())}\">"

    then create a new page by 

    Home-Settings-Pages 

    Create a new page with the below code
    $(".IconOnly").hide();
    $("#saveButton").hide();

    Save the page 

    Create a new record , now you won't have a save button !!


  • 7.  RE: Can I hide the green Save Record button?

    Posted 04-26-2019 17:48
    This works great but Id like to know what the code in the Formula text field means, can you please explain it as Im pretty good with JS in QB but I dont follow some of this


  • 8.  RE: Can I hide the green Save Record button?

    Posted 04-26-2019 17:51
    I dont follow the following:
    what does the qbu mean
    and where did you find the source src=\"/i/clear2x2.gif\"


  • 9.  RE: Can I hide the green Save Record button?

    Posted 09-18-2017 13:42
    This worked great. With the new Save Button quickbase added at the footer though this only hides the header. anychance you have an update that i can copy and past in? 


  • 10.  RE: Can I hide the green Save Record button?

    Posted 09-18-2017 14:15
    The new footer Save Button has an ID of "footerSaveButton" so simply add this line below:

    $("#footerSaveButton").hide();


  • 11.  RE: Can I hide the green Save Record button?

    Posted 09-18-2017 14:23
    perfect. thanks for the quick turn around!!


  • 12.  RE: Can I hide the green Save Record button?

     
    Posted 12-07-2017 20:23
    If you add &ifv=1 to the end of the url, it will remove everything. Then you can establish your own buttons.


  • 13.  RE: Can I hide the green Save Record button?

    Posted 05-14-2018 20:57
    This is awesome!!  

    What is the syntax for creating a button for:

    1. saving and redirecting back to a dashboard page
    2. saving and redirecting to the same form that you are on (not the main form)

    Again...this post was great!


  • 14.  RE: Can I hide the green Save Record button?

    Posted 12-27-2018 18:25
    Would you be so kind to post the JavJavaScript to have the button read "Save & Keep Working" on load? thanks in advance


  • 15.  RE: Can I hide the green Save Record button?

    Posted 01-31-2019 08:18
    Would you be so kind to post the JavJavaScript to have the button read "Save & Keep Working" on load? thanks in advance


  • 16.  RE: Can I hide the green Save Record button?

    Posted 01-03-2020 14:35
    Is this still possible?  This would be for a set role and not a EOTI role.  I would like the user to be able to edit a record but force them to use a formula button I created to save the record that also in the background sends data to another connected table.

    ------------------------------
    Joshua Case
    ------------------------------



  • 17.  RE: Can I hide the green Save Record button?

    Posted 01-03-2020 17:51
    Would Automations help you here?
    re:  created to save the record that also in the background sends data to another connected table.

    ie Can you have the user do a normal save and the trigger an Automation to add that record in another table?  So a no code, no risk solution.



    ------------------------------
    Mark Shnier (YQC)
    Quick Base Solution Provider
    Your Quick Base Coach
    http://QuickBaseCoach.com
    mark.shnier@gmail.com
    ------------------------------



  • 18.  RE: Can I hide the green Save Record button?

    Posted 01-14-2020 15:49
    So I actually had already set up automation after sending my initial comment but I still need the same thing i.e. hide the default green save buttons in order to drive users to use my custom save/submit URL button.    

    My automation creates the record in the separate table BUT if you save via the default green button it just saves the record and keeps the user on that same page/record.  The issue with this is for me (open to suggestions) is that my app is for customers to see their related records/requests and adds the ability for external customers to comment on a record i.e. asking for an update.  I've added an embedded report under the submit comment section to show all comments related to the record but the newest one that was just created once saved via the green button will not display in the record unless you refresh the page after you save.  I feel this will lead to confusion on the client-side that the system is not working.  So my custom URL save button saves and loads to a code page saying "Thanks for submitting your comment" while the automation does its thing and then the code page redirect's the user back to the home page of the app.  So then when they navigate back to the record they see there new comment posted. 

    Hope that makes sense.  Any help or suggestions are appreciated.

    ------------------------------
    Joshua Case
    ------------------------------



  • 19.  RE: Can I hide the green Save Record button?

    Posted 01-14-2020 16:45
    I suggest you use the same cheat that Quick Base did when they first demoed Automatons in front of 1,000 EMPOWER attendees.  They put the child table on a Tab.  By the time the user clicks the tab, the children will be there.

    ------------------------------
    Mark Shnier (YQC)
    Quick Base Solution Provider
    Your Quick Base Coach
    http://QuickBaseCoach.com
    mark.shnier@gmail.com
    ------------------------------



  • 20.  RE: Can I hide the green Save Record button?

    Posted 01-15-2020 15:26
    I tested that and it does not work.  You hit "save and close" and click the next tab and the new record is not in the embedded report.  I have to refresh the record to show it.  

    I will move forward with my URL button as I named the button "Submit Comment" which makes the user think they have to click that to submit the comment.  It loads the code page stating that their comment was submitted and they are none the wiser.

    ------------------------------
    Joshua Case
    ------------------------------



  • 21.  RE: Can I hide the green Save Record button?

    Posted 01-15-2020 15:31
    Do you have the form properties set to "load separately" for embedded reports?

    ------------------------------
    Mark Shnier (YQC)
    Quick Base Solution Provider
    Your Quick Base Coach
    http://QuickBaseCoach.com
    mark.shnier@gmail.com
    ------------------------------



  • 22.  RE: Can I hide the green Save Record button?

    Posted 01-15-2020 15:34
    I do now and it does work.  Thank you very much.  I didn't know about that setting.

    ------------------------------
    Joshua Case
    ------------------------------