Robert Hicks wrote:
I have a drop down that contains different task names. When the end user
selects the Help Desk from project_names then task_names has to be
9 numbers long.
This is my current code for validation:
sub _validate_taskform {
my $self = shift;
return {
Mark Stosberg wrote:
snip
I think you want to use the dependency feature, which can make
task_names required when project_names = 'Help Desk'.
See the docs for examples and details.
I always forget to look at the module docs that the plugin for this
depends on:
dependencies = {