Proforms - before send

Hello, can you help me with validation on the fields before pro forms will trigger actions on form submission? How I can build a function (probably using bricksforge/pro_forms/before_submit) which can check on of the numeric field and if possible block submission if not validated?