diff options
author | Ivan Kohler <ivan@freeside.biz> | 2017-03-06 09:27:01 -0800 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2017-03-06 09:27:01 -0800 |
commit | 9e878943532b9ecb84bac1db76c05cf9bc09d2cc (patch) | |
tree | c45e4d3c7949b9a8896be7dac0783d5517d9aa81 /httemplate/edit/elements | |
parent | ee5061a32e7b9054a982f3ed5260a5946e6b65a6 (diff) | |
parent | c56b3fce5486b08d986743d1c2a9cc2e6aafa5bc (diff) |
Merge branch 'master' of git.freeside.biz:/home/git/freeside
Diffstat (limited to 'httemplate/edit/elements')
-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 = |