I have a form that has several fields with similar/identical names psv1.0 psv1.1 and corresponding edv1.0 edv1.1 fields etc created using the place multiple fields option in Acrobat 9. My question in pseudo code if I may ( scripting newbie).
Is that I want every time I enter a value in edv1.0 the corresponding psv1.0 to be required. and not all psv's becoming required as I have it now.
function psvRequired()
{
var psv = this.getField("psvTL1.0");
psv.required = true;
psv.hidden = false;
psv.borderColor = color.red;
}
I know that the event.target.name is my friend because if I use that, I can concatenate everything in the first three letters in my string and that would solve the problem but I dont know how to and googling is not helping me much. Please assist
So if one passes the name of the 'edv1' field:
And then one could call the function in any of the 'edv1' fields with
psvRequired( event.target.name);
George Kaiser