Forum Discussion
UrsulaLl
8 years agoQrew Assistant Captain
Hi! I just recently asked this question myself. For us, it is definitely going to cause some chaos. My initial thought was to see if there is natural Quickbase functionality but it doesnt seem like there is. The javascript to hide these buttons is VERY simple.
$("#formFooterButtonsContainer").hide();
#formFooterButtonsContainer is the container that is holding these buttons. We want to hide this, so in jQuery (a JS library), we can just say .hide(). To put this into action is a little bit more time consuming.
We have to create a script page on the Pages section of the Application you are on. The only thing on this page is the script above: $("#formFooterButtonsContainer").hide(); Give this page a title, with no spaces and add .js to the end, so that QB knows it is a javascript page.
On your table where you want to hide the buttons, create a formula text field and add the following:
"<img qbu=\"module\" src=\"/i/clear2x2.gif\" onload=\"javascript:$.getScript('" & URLRoot() & "db/" &Dbid() & "?a=dbpage&pagename= NAMEOFYOURJSPAGE.JS&rand='+Math.random())\">"
add this formula field to your form, change the name to the name of your page, and you should be good to go!
Let me know if this doesnt work or you need more help.
All credit for this should go to Dan Diebolt with the IOL technique - you can find many a question/comments with this technique on here. Shout out to Chuck Grigsby for the $("#formFooterButtonsContainer").hide();
$("#formFooterButtonsContainer").hide();
#formFooterButtonsContainer is the container that is holding these buttons. We want to hide this, so in jQuery (a JS library), we can just say .hide(). To put this into action is a little bit more time consuming.
We have to create a script page on the Pages section of the Application you are on. The only thing on this page is the script above: $("#formFooterButtonsContainer").hide(); Give this page a title, with no spaces and add .js to the end, so that QB knows it is a javascript page.
On your table where you want to hide the buttons, create a formula text field and add the following:
"<img qbu=\"module\" src=\"/i/clear2x2.gif\" onload=\"javascript:$.getScript('" & URLRoot() & "db/" &Dbid() & "?a=dbpage&pagename= NAMEOFYOURJSPAGE.JS&rand='+Math.random())\">"
add this formula field to your form, change the name to the name of your page, and you should be good to go!
Let me know if this doesnt work or you need more help.
All credit for this should go to Dan Diebolt with the IOL technique - you can find many a question/comments with this technique on here. Shout out to Chuck Grigsby for the $("#formFooterButtonsContainer").hide();
EricEvans_Varga
8 years agoQrew Cadet
So I've created the </> page, and I've created the formula (allowing HTML), and I've added the field to the top of the form, and have updated the Everyone On The Internet Role to utilize that form ... but the footer (Save & Close and Cancel Buttons) do not disappear each time; they only hide occasionally.
My formula:
"<img qbu=\"module\" src=\"/i/clear2x2.gif\" onload=\"javascript:$.getScript\n('" & URLRoot() & "db/" &Dbid() & "?a=dbpage&pagename= HideSave.JS&rand='+Math.random())\">"
My page:
What am I doing wrong?
My formula:
"<img qbu=\"module\" src=\"/i/clear2x2.gif\" onload=\"javascript:$.getScript\n('" & URLRoot() & "db/" &Dbid() & "?a=dbpage&pagename= HideSave.JS&rand='+Math.random())\">"
My page:
What am I doing wrong?