1

I want to use Drupal to make a forum where users can post either as text or upload images. This can be achieved with the Comment Upload module.

However if you attach an image and try to post without any text, you get an error message saying 'Comment field is required.'.

Are there any solutions to this? Is it possible to remove the validation causing this issue?

2
  • 1
    in Drupal 6, you will need to write a custom module that implements hook_form_alter() and changes the validation criteria for the Comment add/edit form. In Drupal 7, you can simply add/remove fields from comments the way you do on node types with CCK in Drupal 6. If moving to Drupal 7 is an option, I would strongly suggest doing so. If it is not, I will try to come up with a more detailed Drupal 6 solution for you.
    – sheena_d
    Commented Feb 6, 2012 at 15:33
  • Ill switch to 7, about time I had a look at it really. Thanks
    – Evanss
    Commented Feb 10, 2012 at 11:21

1 Answer 1

0

Seems like 'Comment Field is required' when clicking the Attach is similar (identical?) to the issue you encountered.

That issue has status Closed (fixed), and also contains a patch for it.

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