diff options
author | Christopher Burger <burgerc@freeside.biz> | 2017-03-03 13:19:24 -0500 |
---|---|---|
committer | Christopher Burger <burgerc@freeside.biz> | 2017-05-24 12:24:52 -0400 |
commit | 6c8a8cedc4dbfc9a9d6976718e369ed36a152670 (patch) | |
tree | b1feb91bbd62bc0eb1c903ffc72930eaa08cb292 /httemplate/edit | |
parent | c67b4a1ea56e0de5787b3200055e53593275e5fa (diff) |
RT# 21110, Updated files to use jquery-validate jquery plugin. This allows for field validation instead of just form validation. Also updated footer so it does not use experimental keys on scalar. Dereferenced hash ref prior to using keys.
Diffstat (limited to 'httemplate/edit')
-rw-r--r-- | httemplate/edit/elements/edit.html | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/httemplate/edit/elements/edit.html b/httemplate/edit/elements/edit.html index 285c85265..f6bc1abb5 100644 --- a/httemplate/edit/elements/edit.html +++ b/httemplate/edit/elements/edit.html @@ -231,7 +231,7 @@ Example: % my $url = $opt{'post_url'} || popurl(1)."process/$table.html"; -% $js_form_validate = { 'edit_topform' => { 'name' => 'edit_topform', 'errormessage' => 'Please only numeric characters ' } }; +% $js_form_validate = { 'edit_topform' => { 'name' => 'edit_topform' } }; <FORM NAME = "edit_topform" METHOD = POST ACTION = "<% $url %>" @@ -382,7 +382,8 @@ Example: % ## set conditionname field values for validation. % if ($field eq 'conditionname') { % my $validate_field = $field . $fieldnum . '.after_event.run_delay'; -% $js_form_validate->{edit_topform}{$validate_field} = 'numeric'; +% $js_form_validate->{edit_topform}->{validate_fields}{$validate_field} = 'digits: true'; +% $js_form_validate->{edit_topform}->{error_message}{$validate_field} = 'Please only enter numbers here.'; % } % % my @include = |