Hi all,
I am now currently trying to extend the user form module (https://github.com/silverstripe/silverstripe-userforms). I noticed there is several hooks like
$submittedForm->extend(onPopulationFormField,$field)
Now I have a class class CustomForm extends UserDefinedForm {
public function onPopulationFormField($field){
...
}
}
But it doesn't enter that function. I am trying to populate a hiddenfield before the form is submitted to the server. Can someone provide me some examples or instruction on how to do this please?
Thank You.
Best regards.