How to replace field value in a Drupal Webform's validator?
问题 In a Drupal Webform, I'd like to alter the submitted value (e.g. to strip any non-numeric character) when going through the validator. I follow the validator readme to add in hook_webform_validation_validators and implement the hook_webform_validation_validate hook. However I cannot locate a return parameter to alter the submitted webform value. For example, if a user enters $12,340 , I'd like to fail the submission and update the webform value to 12340 .When the user submits the second time,