The form is getting validated when the custom thumbnail upload is clicked...i.e; if the title of the form is not given then the error message 'The title field required' is displayed when we click on upload button of custom thumbnail.

Thanks.

Comments

whan’s picture

Not sure that i have made the problem clear want to post it again........
Working with embedded field module i have a problem regarding the custom video thumbnail upload..... If you select custom video thumbnail to upload, then proceed to save/upload and you didn't place anything in the node title field, the form reloads requesting that you give the node a title.

Thanks.

aaron’s picture

Version: 5.x-1.0 » 6.x-1.x-dev
Category: bug » feature
Priority: Normal » Minor

i was almost tempted to mark this as 'by design', as it's how drupal handles things by default. however, this should at some point be cleaned up to use ahah handlers, which would address this concern. not sure if i'll get around to it anytime soon, and i expect this entire module will be deprecated later this summer by the media module. but just in case, i'm changing the status of this issue to reflect that. (patches are welcome!)

whan’s picture

The core upload module the files are attached to the node without triggering the validation..... Is it possible to proceed in any such way that the problem could be solved...... I created a node with required fields below the custom video thumbnail.this is posing a major problem.

Thanks.

whan’s picture

Hi,

Found the same type of validation error for delete button in http://drupal.org/node/216064 . Tried this way but didn't work. Please suggest a way. I have to fix it.

$form['upload'] = array(
'#type' => 'button',
'#value' => t('Upload'),
'#name' => 'emthumb_'. $fieldname .'_op',
'#attributes' => array('id' => $fieldname .'-attach-button'),
'#tree' => FALSE,
'#weight' => 10,
'#redirect' => array('node/'. $node->nid .'/add', $destination),//I'm not sure what to place in the argument array() in this line.
);

whan’s picture

I used image CCKfield to upload the image instead of Custom video thumbnail.

ophir’s picture

Thought I'd add my comment here since it seems related to this request. I'm using an embedded video field (YouTube) with a custom thumbnail. The node title field is listed first on the form as it needs to be populated before the button is clicked to upload the user specified thumbnail file. What happens for me is that after the thumbnail is uploaded, the node title field is now blank and has to be repopulated before the node can be saved. This doesn't happen if the node has been previously saved and the thumbnail is just being updated. Could there be a work around for this? The behavior is the same for versions 6.x-1.20, 6.x-1.x-dev and 6.x-2.x-dev.

bropp’s picture

I have the exact same issue. This happens in all versions I've tried.