Allow making dependent fields required

traxer - August 28, 2008 - 13:28
Project:Dependent Fields
Version:5.x-1.4-beta
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:closed
Description

Fields, that are only shown depending on other fields, cannot be set as being required (because they are not always visible to the user). Still it is useful to be able to make dependent fields required when their dependencies are met.

#1

traxer - August 28, 2008 - 14:44
Status:active» closed

I just noticed that this feature is already implemented.

#2

3duardo - November 9, 2008 - 04:05

hey traxer,
What is the feature called?
I am trying to figure this out so if user uploads image 'image upload field' to blog then the 'image description field' is required.
Thanks

#3

traxer - November 24, 2008 - 15:19

It should suffice to mark the image description field as required and dependent upon the image upload field. This removes the required property from image description field and adds additional validation in case the image upload field was filled in.

This might not work with all field types, especially not with field types from other modules. File upload fields are also notoriously hard to handle.

 
 

Drupal is a registered trademark of Dries Buytaert.