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.

Comments

traxer’s picture

Status: Active » Closed (fixed)

I just noticed that this feature is already implemented.

3duardo’s picture

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

traxer’s picture

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.