Page 1 of 1

Validate euro number format

PostPosted: 29 Jan 2015 15:49
by Davide
Hello,
I'm using the following code to validate a money field :
Code: Select all
      
Result := PrimoOrdineEdit.JQValidateOptions.IsValid and (PrimoOrdineEdit.Text > '');
if (not Result) then begin
   PrimoOrdineEdit.JQValidateOptions.Validate();
   PrimoOrdineEdit.SetFocus;
   Exit;
end;


On the PrimoOrdineEdit JQEdit component I enabled the JQValidateOptions with one rule of jqvorvNumber type.
The problem is about validation of European number format (es. 1.520,34) cause the validation routin excpect an english number format.

Is there a way to validate the European numbers ?

Thank you,
Davide

My problem is about the

Re: Validate euro number format

PostPosted: 29 Jan 2015 19:19
by Alexander Bulei
Hi Davide,

I presume you will use this validation in many edits, so I suggest you to create the global rule.

Check attached project & js file.

Put the js file in "wwwroot" or any other directory inside wwwroot, and change the path OnCreate.

Also, you have a example of single edit.

Best Regards.

Re: Validate euro number format

PostPosted: 11 May 2017 10:47
by yocko
Is it possible to download those files please. Links are dead now...

TIA

Re: Validate euro number format

PostPosted: 12 May 2017 11:17
by Alexander Bulei
Hi yocko,

Unfortunately, we don't have this files anymore....
Maybe the user "Davide" still have and can share it...

Best Regards.

Re: Validate euro number format

PostPosted: 12 May 2017 11:59
by yocko
Thanks for feed back.

I try to learn as much as possible reading all topics in forum and it helps me a lot. But sadly in many topics pictures are missing (dead links), also many links to examples in different topics are dead too. Also your download section in forum is empty (viewtopic.php?f=12&t=450). I though I will find some additional small examples there...

I am very sure we newbies can benefit from those examples/tutorials, so we will ask you less questions ;)

Have a nice weekend.