OK, thanks for your answer. I remembered that I had Ted Padova's book and I picked up the codes from there.
But I have a problem.
I have a left side and a right side for this form. Here is how the Form should work:
The cursor should go from FieldA on left side, to FieldB on left side and then the fields FieldC and FieldD on the right side get automatically filled with what was keyed in in FieldA and FieldB.
And if the customer, fills FieldC and FieldD (on the right side), the fields FieldA and FieldB don't get automatially filled – they stay blank.
Now, here is the problem:
When I fill FieldA the cursor automatically goes to FieldD (when it should go to FieldB).
I checked my naming structure and it's fine. I've got this in the Format Keystroke script of FieldA: goNext(this, event, "FieldB");
Anybody knows where the error is?
Do you not want to press tab key? Do you want to go another field without pressing tab?
No, the client asked for the cursor to move automatically to the next field.
I have the following custom validation script in FieldB, that may interfere with the cursor movement:
// Copy field value to other field
getField("FieldD").value = event.value;
That maybe what makes the cursor go from FieldA to FieldD when it should go from FieldA to FieldB.
Any thoughts anyone?
I want to upload a pdf to have it inspected.
Which site would permit me to do that and then link it here?
> Anybody knows where the error is?
Have you set the field's maximum character limit?
You might also want to read Copying and Pasting Code by Thom Parker