on 02-23-2015 7:47 AM
Hi Experts,
I have an Date Picker field, which list down the calender to select date. But, along with that, it allows user to input any data manually. I want the user to select the date only from the calender and the user should not be allowed to edit the field manually. As option to do that ? I tried all available types and nothing seems to be fulfilling my requirement.
Regards,
Satheeshkumar.M
Hi satheesh
This is possible with a script in the EXIT event of the date field.
It uses a regular expression to check the entered value for a specific pattern.
Allows are dates in these way: [9|99] [.|/|-] [9|99] [.|/|-] [99|9999].
Javascript code
if (! this.formattedValue.match(/^\d{1,2}[\.\/\-]\d{1,2}[\.\/\-](\d{4}|\d{2})$/g)) {
xfa.host.messageBox("Enter a correct date!", "Invalid Date", 0, 0);
xfa.host.setFocus(this.somExpression);
}
regards
Sandy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Satheesh,
Use the following script in the "change event" of the date field. It will alert the user and prevent keyboard inputs:
if (xfa.event.newText.length == 1) {
xfa.host.beep("3");
xfa.host.messageBox("Select the date from dropdown!", "Input not possible", 0, 0);
xfa.event.change = "";
}
Dear sandy,
Adobe interactive form after downloading through ABAP coding, i have to edit the (pdf) adobe form.
I would like to save a form to the same location but there seems to be no way to set a default folder. Its popup save as dialog box asking when i was save the first time. Please give me the solution to close this issues.
Regards,
Satheeshkumar.M
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.