OK, thanks for that explanation, very helpful. So, I have one more question, sorry. I'm not that experienced with javascript, so I don't know how to call the function. Do I have to create a new script object and put your script in there?
One other thing just occurred to me -- perhaps you have the script in a Date field. I used a text field, so that I could run my own script without interference from any automated functions in the Date Field object type. I don't know if that might make any difference with the type conversion issue.
I decided to put my validation script in the mouseEnter event of the Submit button. If the form validates, the button turns green. It's not a real-time validation like it was with the script in the layout:ready event, but it's a close second. In any case, it does improve the performance and usabi...
OK, that's great, thanks. Now, sorry I don't know how to read that regexp, can you explain how it works, so I know for the future? And in what event do I put it? I appreciate the help.
I thought perhaps the javascript syntax might be a little different in Acrobat vs. LiveCycle. If it's not, that's good to know. But after working in LCD, I never do anything in Acrobat any more.That type conversion was a smart move; I don't think I could have figured that out. I'm not a very expe...
I have a lengthy e-mail script in which one of the fields sometimes contains an ampersand as a value, e.g., "Litigation & Enforcement". The value is set in a drop-down earlier in the form. When the field has a value like that, it cancels everything that comes after that point in the e-mail script,...
Hi Al,Just to make sure we're on the same page -- this is for LiveCycle Designer, and the script needs to be in the Validate event of the script. I trimmed the script down to accept only MMDDYYY entry. This way there's no confusion; there were too many other masks. The script works great for me -...
Is there a way to trim only the leading and trailing spaces from a field? I have a Name field, which I later split so I can generate using just the first name, using the rawValue.split method. This way I can generate an e-mail that says Dear John, instead of Dear John Smith by pulling from that fi...
Thanks for the suggestion, but doing it manually is not really an option since there are about 60-70 fields to check. It's a very complicated form (government, of course). I don't want to have to chase down every single modification to fields and keep track of it in my validation script. I'm not ...
That's what I was afraid of. I would like the button to turn green as soon as the required fields are completed -- is there any other way to achieve that effect?