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...
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 -...
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?
Thanks for the responses. Could this situation be caused by having an "execValidate" line in the layout:ready event of some of the objects? For example, I have a very long form with a Submit button that turns green when all the information is provided. So once the whole form validates, the user c...
I was having a similar problem. I think between the two great tips here -- the Control+Arrow and highlighting multiple fields and right-clicking -- (which I had never seen before -- Thanks!) one of them is bound to be the solution. One other thing I noticed is that having a table in the form can u...
Just figured out the answer myself. The issue was one of the questions being filled in was a Yes/No radio button that had "xfa.host.resetData" command in it. So every time that radio button is clicked, the resetData function would clear out the fields in that section, and then of course everywhere...
Hi all,I'm using the script below to force numbers only for a phone number field, but it allows the user to press the parentheses and dash characters into the field, perhaps related to auto-fill on the field. Is there any way of preventing this?if (xfa.event.newText.match(/[^0-9]/)) { xfa.event.ch...
Hello,I'm getting a very similar error message upon opening my document:GeneralError: Operation failed.XFAObject.Block1:30:XFA:form1[0]:readyInvalid property get operation; subform doesn't have property 'Block1'I am unable to find any mention of "Block1" in the "ready" event of form1. I have re-ent...