[[!FormIt?
&hooks=`myCustomHook,spam,email,redirect`
&myVariable1=`5`
&myVariable2=`10`
]]
$myVariable1= $modx->event->params['myVariable1']; $myVariable2= $modx->event->params['myVariable2'];
$myVariable1 = $modx->getOption('myVariable1', $scriptProperties, '');like in any other snippet, you can get the properties with the $scriptProperties - array, in a formit-hook-snippet.
$myVariable1 = $modx->getOption('myVariable1', $scriptProperties, '');