Gossamer Forum
Home : Products : DBMan SQL : Discussion :

Delete success form

Quote Reply
Delete success form
Hi,

When I delete a record or records, I get a message saying "1 records have been deleted." and the delete search form is displayed.

I would like to alter this so the search form is not displayed. A simple message "Your changes have been saved" will do just fine.

Where do I need to edit code to do this, please? I note there are templates for add_success and modify_success, but not for delete_success. Weird?
Tim Ault
Oxford UK
Quote Reply
Re: [timbo] Delete success form In reply to
You can replace the last command in delete_records subroutine with:

return ('delete_success.html', {
header => $self->_language('HEA_MODED'),
msg => $self->_language('DEL_SUCCESSFULLY', $rec_modified)
});

Make sure the delete_success.html is available in your template set.

TheStone.

B.
Quote Reply
Re: [TheStone] Delete success form In reply to
Works fine, thanks very much.