This is a feature lacking that gives a weird and bad UX.
When it exists a delete link on table lines, deleting works very smoothly.
But most other cases, like having a Delete link at the bottom of an Edit Form, leaves the user in No man’s land. All the form fields disappear, and there are absolutely no way to inform the user on what to do or where to go. It’s like Hello?
TBH I never give users the ability to hard delete records. As there is no audit trail it’s a risk I prefer to avoid. I do understand the UX challenge though.
Due to the inability to batch delete from the Live app I try and get users to “hard” delete whenever practicable which causes the problem outlined above by Michael, as Carl says in his very clear and concise video, keeping the record and marking it as deleted/archived keeps an audit trail and gives us much more control over the process, so yes some control over the delete option would be very welcome even if its just to place the confirmation box next to the record that is being deleted would be an improvement.
Hi @MichaelG , I was searching for the same thing… and I implement a workaround that worked for me using javascript, just change to the view where you have the action button.
( visitantes is my table name )
I hope it works for you
// After delete -visitante- at -visitante edit page- this redirects to parent page
$(document).on(‘knack-record-delete.view_80’, function(event, view, record) {
Knack.Navigation.redirectToParentPage();
});
Hi @Daniel2 ,
In my case, I put the Delete buton under the Form view of the record details.
So the parent page would be the Details view of the record, which would have been deleted.
What would be the code to redirect to whatever page prefered?
tks
I would normally use custom filter buttons to show “Active” or “Archived”. However, if you still want to allow the user to add filters, I’d set the table data source to not show archived records. I’d then add a new page linked from a menu button to a section that has all the archived items. This may be under admin control or available to everyone.