What I'm trying to do is put some PL/SQL code in forms to save the data to the database so the 'Would you like to save?' message does not come up.

Example:

if al_b = 'ALERT_BUTTON1' then
--save or commit here.
/*this is what I have now: */ COMMIT_FORM;
end if;

This if statement gives me an ORA-06502 error message. The alert message askes the user if they want to save the current record.