This topic is locked

Currency Validation

2/26/2005 7:02:53 AM
ASPRunnerPro General questions
jmisson author

Hi,
Thanks in advance.
I would like to validate a currency field as currency.
I realise now I could have set this validation rule when building the project, but did not realise it at the time.
I now wish to type it in manually into the code, as I have done many design changes to the page and I do not wish to rebuild and lose them all.
The only problem is I cannot find where to do this (on what page). If I could be guided in the right direction, that would be great.
Many thanks
Julie

admin 2/28/2005

Hi,
you can use Formatting page and set there "View as" - "Currency".

jmisson author 7/30/2005

Sergey,
Still following up on this one. I have made numerous changes to my pages - and I do not wish to rebuild, what I wish to know is on which pages and which lines of code do I need to change manually to ensure the validation checking occurs.
I have added the 'define' line of code to the onload event, but this does not seem to work by itself.
I have also changed the dataformat type to number in the aspfunction page.
If you could help with this, that would be great.
Thanks
Julie

jmisson author 7/31/2005

Sergey,
I have worked it out. I also needed to change this line of code:
<form name="editform" method="POST" enctype="multipart/form-data" action=qryEnquiry_edit.asp>
To
<form name="editform" method="POST" enctype="multipart/form-data" action=qryEnquiry_edit.asp onSubmit=" return validate();" >
Thanks anyway, I know you would have got back to me.
Cheers
Julie