The fields machine names are coming instead of human readable names in validation. e.g field_reg_fax[und][0][number] مطلوب حقل

Comments

JulienThomas’s picture

Hello.

I confirm this. For me, it happens when Phone Number is used as Commerce Order field.
I think that for any reasons, Clientside Validation may conflict with the module.

see for instance https://drupal.org/node/1952904

JulienThomas’s picture

A quick fix would be
a) in cck_phone.module @678
replace as follows

  $element['number'] = array(
    '#type' => 'textfield',
    '#maxlength' => $field['settings']['size'],
    '#size' => $field['settings']['size'],
-//  '#title' => t('Number'), 
+ '#title' => t('Phone Number'),

(without //)
the error will thus display "Phone Number", translated

To preserve the design, do not forget the rule

.form-phone-number label {display:none;}
JulienThomas’s picture

Status: Active » Needs review
ckng’s picture

Issue summary: View changes
Priority: Critical » Normal
Status: Needs review » Needs work

Would appreciate if a proper patch could be generated. https://drupal.org/patch