How to set a trigger that sets column value before it inserts

Here is my code so far. So basically, I expect it to insert the row and put the hashid value of the serial id but somehow I cannot make it to work.
unknown.png
Was this page helpful?