TAG_info(myfield => [ html => "", valid_input => '/^\d+$/', error_msg => 'please enter a number', ]);
I'm looking for a routine which validates a workflow input field. The routine should only allows dates that are earlier than 60 days. Is it possible to add a subroutine. If so how would it be validated? javascript?
TAG_info( ... valid_input => /^\d+$/, ...);
TAG_info( ... valid_input => is_a_number($_), ...);sub is_a_number { my $num = shift; return 1 if ($num =~ /^\d+$/); return 0; }