Closed (duplicate)
Project:
FileField
Version:
6.x-3.2
Component:
Code
Priority:
Critical
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
22 Oct 2009 at 10:08 UTC
Updated:
24 Oct 2009 at 00:59 UTC
Hi ,
Iam using content profile module for profile registration , so i used file field cck , which i gave this field as required the validation is not working .. i tried with form_alter for giving custom code not able to get the formvalues else than the default form
Array
(
[user_registration_help] => Array
(
[#value] =>
)
[account] => Array
(
[#type] => fieldset
[#title] => Account information
[#weight] => -10
[name] => Array
(
[#type] => textfield
[#title] => Username
[#default_value] =>
[#maxlength] => 60
[#description] => Spaces are allowed; punctuation is not allowed except for periods, hyphens, and underscores.
[#required] => 1
)
[mail] => Array
(
[#type] => textfield
[#title] => E-mail address
[#default_value] =>
[#maxlength] => 64
[#description] => A valid e-mail address. All e-mails from the system will be sent to this address. The e-mail address is not made public and will only be used if you wish to receive a new password or wish to receive certain news or notifications by e-mail.
[#required] => 1
)
)
[#uid] =>
[display] => Array
(
[#type] => value
[#value] => 3
)
[current_id] => Array
(
[#type] => value
[#value] => 1
)
[current_date] => Array
(
[#type] => value
[#value] => 1255952885
)
[legal] => Array
(
[#type] => fieldset
[#title] => Terms and Conditions of Use
[#weight] => 29
[conditions] => Array
(
[#value] =>
)
[legal_accept] => Array
(
[#type] => checkbox
[#title] => Accept Terms & Conditions of Use
[#default_value] =>
[#weight] => 50
[#required] => 1
[#element_validate] => Array
(
[0] => checkbox_validate_validation
)
[#pre_render] => Array
(
[0] => checkbox_validate_add_required_symbol
)
)
)
[timezone] => Array
(
[#type] => hidden
[#default_value] => 19800
[#id] => edit-user-register-timezone
)
[submit] => Array
(
[#type] => submit
[#value] => Create new account
[#weight] => 30
)
[#validate] => Array
(
[0] => user_register_validate
)
[#parameters] => Array
(
[0] => user_register
[1] => Array
(
[storage] =>
[submitted] =>
[post] => Array
(
)
)
)
[#build_id] => form-d559d55319d4f2dabe55d1dd8ed20968
[#type] => form
[#programmed] =>
[form_build_id] => Array
(
[#type] => hidden
[#value] => form-d559d55319d4f2dabe55d1dd8ed20968
[#id] => form-d559d55319d4f2dabe55d1dd8ed20968
[#name] => form_build_id
)
[form_id] => Array
(
[#type] => hidden
[#value] => user_register
[#id] => edit-user-register
)
[#id] => user-register
[#description] =>
[#attributes] => Array
(
)
[#required] =>
[#tree] =>
[#parents] => Array
(
)
[#method] => post
[#action] => /Sankar1/demo/user/register
[#submit] => Array
(
[0] => user_register_submit
)
)
How to solve this issue
Thanks in advance
Comments
Comment #1
quicksketchThis should be asked in the Content Profile queue, not FileField. See the existing issue at #451654: Filefield upload during registration.