Required fields not marked required on content creation form
greenbeans - April 13, 2009 - 22:49
| Project: | Addresses |
| Version: | 6.x-1.05 |
| Component: | User interface |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
The required subfields of an Address field aren't marked as required on a content creation form.

#1
If this bug is related to setting fields such as "street," "additional," and "postal code" to none, saving, and then having them suddenly reappear, and these fields are actually required for some reason, I can't seem to find documentation for this.. I would ask if they are currently required that we could make them no longer required, if it is possible?
thank you,
christopher
#2
I think I have the same problem as greenbeans;
When I'm on admin/content/node-type/profile/fields/field_address (my field is called address) and have the radio options selected in the 'required' column, so that the address fields are required fields then they are not required when it comes to registration.
There is no red asterisk(theme specific of course) on the user reg form to indicate they are required fields and they can be left blank and the form can be submitted with no warning.
<input type="text" maxlength="255" name="addresses[street]" id="edit-addresses-street" size="50" value="" class="form-text" />should have the class 'required' added to become;
<input type="text" maxlength="255" name="addresses[street]" id="edit-addresses-street" size="50" value="" class="form-text required" />I'll have a nosey through the code, but I doubt I'll find anything, I might not even be using the 'required' setting correctly.
#3
I see now it looks like the cck module is responsible for doing the required bit, all the address module has to do is set the field to 'required' and cck does everything else.
Still looking at the code, I've never written code for drupal modules before, so it'll be a learning experience.