1

I have setup a custom field and have a validater setup for it. I would like to be able to adjust and actually change the user input from within my validator. so say this is a multi value field, each set of values shows up in $item. I have adjusted and changed the values in this function, but how I can I save them and make sure the rest of the form processes using the changed values?

mycustomfield_field_validate($obj_type, $object, $field, $instance,$langcode,   &$items, &$errors){

  foreach($items as $item){
  // validation check is here
  }    
}
1

1 Answer 1

0

Perhaps hook_field_attach_submit can be used in your case?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.