Acrobat Javascript
Advance thanks for reading my post. I just want to set a validation or calculation script for a dropdown box so that after entering data in the box it automatically fill the blank space with "-------" in the dropdown box so that it fills its size. i have tried a script but its not working.
var selectedText = event.value;
var maxLength = event.target.maxLength;
var remainingSpace = maxLength -selectedText.length;
var dashes = "-".repeat(remainingSpace);
var filledText = selectedText + dashes;
event.value = filledText;
}
this.getField("MyDropdownFieldName").setAction("Validate", "fillWithDashes(event);");
