Custom Format/Validation

Custom Format/Validation

Forum member · Jul 28, 2010
I have a pdf template where I define a custom format (javascript) to all uppercase: "event.value = event.value.toUpperCase();" (without quotes). However, when I programmatically fill in the fields the casing is still normal and not uppercase at all. when I enter the fields in manually on the form it works fine. how can I even tried putting it into the validation section as well and it still doesn't work. How can I get my custom format fields to all uppercase when filling in the textbox programmatically? I would have to hard code .ToUpper() in my code for every field. I would prefer the formatting stay with the document and not be in my code. Thanks!

Re: Custom Format/Validation

Forum member · Jul 28, 2010
Let me repost what I said above into something a little more legible: I have a pdf template where I define a custom format (javascript) for a textbox to all uppercase: "event.value = event.value.toUpperCase();" (without quotes). However, when I read in the template and programmatically fill in the fields the casing is still normal and not uppercase at all. When I enter the fields in manually on the pdf it works fine. I even tried putting it into the validation section as well and it still doesn't work. How can I get my custom format fields to all uppercase when filling in the textbox programmatically? I would HATE to have to hard code ".ToUpper()" in my vb.net code everytime I have to fill in a textbox field. I would prefer the formatting stay with the document and not be in my code. Thanks!

Re: Custom Format/Validation

Support · Jul 28, 2010
Hello, Can you please send the source PDF document you are using and the code you are using to fill the fields to our [^a|mailto:support@cete.com|Support Team^] so that we can look into it further and do some testing at our end? Thanks, ceTe Software Support Team.