Input mask

Hi there, I am trying to get from a form the input field to generate me the serial number with "-" symbol after every 4 characters. Anyone did that in BSS? Still learning, please advice. Thank you in advance. Sergio