Simplify the code when a new row is added from form edit.