on a Contact form, I would like to have some JavaScript that returns the user to the main Contact view listing.
Detail: when a user first enters a form, the javascript checks certain information and pops up a dialog. if the user presses a particular button (logic will deactivate certain records, including the current record), I want to return the user back to the primary view for the entity. because the record may no longer be there since it was deactivated.
Is there a way to do that?