diff options
author | Christopher Burger <burgerc@freeside.biz> | 2017-03-03 13:19:24 -0500 |
---|---|---|
committer | Christopher Burger <burgerc@freeside.biz> | 2017-03-03 13:19:24 -0500 |
commit | f650b4e98438c2a321ffee85bcd01d700f87b851 (patch) | |
tree | 124d1729e40ebe3879409edbb2466c795308f12f /httemplate/edit/elements/edit.html | |
parent | 17f3758e4af48afc39bdab37b076f37a1deda3f2 (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/elements/edit.html')
-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 3eb75f85f..377a56c79 100644 --- a/httemplate/edit/elements/edit.html +++ b/httemplate/edit/elements/edit.html @@ -240,7 +240,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 %>" @@ -412,7 +412,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 = |