I want to add a Cancel button to my forms (so users can change their minds and exit the form without saving anything they’ve changed). I searched for this topic and found a feature request from six years ago but as far as I can tell, it has not ever been implemented. This seems pretty basic so I think I must be missing something. Please tell me I’m missing something.
I may be missing or misunderstanding something though
Thanks for the reply. No, I don’t think you’re missing anything.
But I have two responses.
First, I’ve had some little problems with modal dialogs in Knack as form pages: It seems to me that the original table page sometimes does not get updated immediately after the form is submitted and that modal window closed. I need to test this more carefully, though. Not sure what I’m seeing.
Second, yes, the close box will work, but not all users understand that. And more important, it’s valuable to have an explicit cancel option. An awful lot of stuff on the internet and in desktop apps too now saves records automatically. I start a message in my email app or Google documents, then simply close my browser — and the document I was working on is saved. So an explicit “Cancel” button (meaning “exit and save nothing”) is a clarifying option to have. I would note that Knack provides Cancel buttons itself in the builder.
So I guess I should submit this as a feature request.
Re your first point, if you set the “Form Rules” to “Redirect to the parent page” instead of “Show a confirmation message”. This will close the form and then refresh the underlying table. If you just close a form that adds a record you will need to refresh the page to show the new entry.
I almost always change the rule from showing “Form successfully submitted” to redirect to parent.
You can see this on the below video which starts at 4min 40secs
I’m not a coder.
Heh, me, neither, not any more.
Thanks for the excellent tips.
Here it is. You can customize on which forms the button appears by tweaking the first few lines.
THANK YOU, KnackPros!
I tried to send you a private message but apparently you’ve got that turned off. I wanted to know if there was any chance I could hire you for, oh, 20-30 minutes.
Sure. Feel free to schedule a call:
That’s strange about the Private Messages, hm.
Nice one Ian (@KnackPros) - I was hoping you’d know the answer
It wasn’t the answer I wanted (I wish this were easier) but it’s AN answer and looks to be best available now, so I’ve marked this as the solution. Thanks again to Ian at KnackPros!