I know more or less what is the syntax of a trigger statement(at least in theory, since I have never made use of a trigger in an app).

My question is if a trigger can cover the situation below:

Set a column value to null if the corresponding value that comes from a submitted a form is an empty string.

Can the above be achieve with a trigger?