Forum Discussion
GeoffreyHarmuth
8 years agoQrew Captain
Thanks Dan, so I figured it out. so for those of you that want to know what the code is to remove the buttons on mobile, here we go:
$("div.btn-form-footer.btn-form-container-3btns").hide();
//removes full footer buttons in mobile
$("div.btn-form-header.btn-form-container-3btns").hide();
//removes full header buttons in mobile
$("div.ui-btn.ui-btn-up-s.ui-btn-inline.ui-shadow.ui-btn-corner-all.ui-fullsize").hide();
//removes both save and save and new buttons in the header, but leaves cancel.
I cant figure out how to just remove the "save and add new" button without also removing the "save" button.
Hope this helps someone save some time!
$("div.btn-form-footer.btn-form-container-3btns").hide();
//removes full footer buttons in mobile
$("div.btn-form-header.btn-form-container-3btns").hide();
//removes full header buttons in mobile
$("div.ui-btn.ui-btn-up-s.ui-btn-inline.ui-shadow.ui-btn-corner-all.ui-fullsize").hide();
//removes both save and save and new buttons in the header, but leaves cancel.
I cant figure out how to just remove the "save and add new" button without also removing the "save" button.
Hope this helps someone save some time!
- PaulVorster18 years agoQrew CadetThank you for your information, I am in the process of doing exactly the same.
- PaulVorster18 years agoQrew CadetThank You got it right!
- LorraineChung8 years agoQrew TraineeThanks for this!! It totally worked!
But somehow it removed the submit button that I created in the form
Has anyone figured out how to just remove the "save and add new" button without also removing the "save" button, and change "save" to "submit"? - GeoffreyHarmuth8 years agoQrew CaptainSo this is the problem that I don't think can be solved. If i understand correctly the "save" and "save & new" are bound together in the same container.
If you make a submit button with a formula url field it will work. If you use a rich text formula field it doesnt work in mobile.
The downside of the formula url button is that it doesn't care for any form rules/required fields that need to be completed. - LorraineChung8 years agoQrew TraineeCan I be a hassle and ask for the code (and steps) to making a formula url button that saves the record and says "submit"?
Even better if I can get some direction on how to make the button save and redirect to a thank you page....
I'm such a noob in QB and coding, the forum and everyone really helped so much! - GeoffreyHarmuth8 years agoQrew CaptainHi Lorraine - Go to the app exchange and search for "Magic buttons" - They have examples for all types of buttons in all different shapes an sizes for both Rich text as well as Formula URL. This helped me a lot