A request .... for Gray Head or anyone who has patience...
I want a field (required) in a form that is a number integer, but is different from zero ...
What should I do?
(the solution is god in php or javascript)
Thank you so much always
Carmine
I want a field (required) in a form that is a number integer, but is different from zero ...
What should I do?
(the solution is god in php or javascript)
Thank you so much always
Carmine
Hi Carmine,
Sorry, I don't understand the question - is this about the field default value, or validation, or something else?
Bob
Sorry, I don't understand the question - is this about the field default value, or validation, or something else?
Bob
:P You're right, sorry ...
I want a field that can contain only integers (no comma) and is greater than zero
-----------
(the validation in javascript o php o native chronoform)
-----------
Thanks again
I want a field that can contain only integers (no comma) and is greater than zero
-----------
(the validation in javascript o php o native chronoform)
-----------
Thanks again
Hi Carmine,
I think that if you use 'validate-digits' and 'required' together it will work, if not there are some examples here of custom validations using regular expressions.
Bob
I think that if you use 'validate-digits' and 'required' together it will work, if not there are some examples here of custom validations using regular expressions.
Bob
MMM but ...if i use 'validate-digits' and 'required' together ... I do not get even greater than zero?
How do I use a regular expression for ...."is a number but not zero?"
I know this is stupid but I can not ...
Thank you for your willingness BOB
How do I use a regular expression for ...."is a number but not zero?"
I know this is stupid but I can not ...
Thank you for your willingness BOB
Hi Carmine,
I checked the LiveValidation docs here and it looks as though that might be more useful. There are several posts here about setting up custom LiveValidations.
Bob
I checked the LiveValidation docs here and it looks as though that might be more useful. There are several posts here about setting up custom LiveValidations.
Bob
I write my solution ...
Thanks Bob
[SOLVED]
I have included liveValidation in javascript code.
Thanks Bob
[SOLVED]
<input class="cf_inputbox required" maxlength="30" size="12" title="Insert a total" id="text_6" name="totalefatt" type="text"/>
<script type="text/javascript">
var text_6 = new LiveValidation('text_6');
text_6.add(Validate.Numericality, { minimum: 0, maximum: 9999999 } );
</script>
I have included liveValidation in javascript code.
This topic is locked and no more replies can be posted.