Forum Discussion

MikeTamoush's avatar
MikeTamoush
Qrew Commander
2 years ago

Possible to make a custom cancel button?

Old threads show ways to make a formula/url or rich text that emulates the cancel button, but it involves using javascript. Is there any current way to make a custom cancel button?

My use case involves needing it for mobile. I have a custom save button that does more than just save, and so I want a custom cancel button next to it (I currently have a big warning telling the user not to use the native buttons below, since I cant get rid of them).

I tried just making a button to navigate away from the page - the problem is it autosaves no matter what. I want it to NOT save. I believe the advanced option to save when navigating away from the page, does not have any effect on mobile, so I cant simply uncheck it.



------------------------------
Mike Tamoush
------------------------------
  • Did you ever get a working Cancel button?

    If not then you may try this and see if it works, I believe it does.
    1) Create a Code Page 
    2) Create a Rich Text formula



    ------------------------------
    Gabe Figueroa
    ------------------------------
    • MikeTamoush's avatar
      MikeTamoush
      Qrew Commander

      Awesome thanks I will try this!



      ------------------------------
      Mike Tamoush
      ------------------------------
    • MikeTamoush's avatar
      MikeTamoush
      Qrew Commander

      Ahh, I just realized I have this code page already. I use it for closing a popup window. I tried it as just a 'cancel' button, and it didnt work. Not sure what I would need to modify to make it work. Either way, if I change a field the first thing it does is autosave the record. I'd rather not turn off the 'autosave when directed away from the page' as I only need this cancel in a unique scenario, but that is always an option probably. However, i dont think turning that option off works in mobile, so I need my button push to mimic the native cancel.



      ------------------------------
      Mike Tamoush
      ------------------------------