Problem with acrobat 9 when validating text fields
Hello
I've been using a script to provide feedback for my English Students. The correct input turns the backgroundcolor to green, an incorrect one turns it to red. This script has been working fine for many years including Acrobat Reader 8, but version 9 gives me a problem. When filling in the field and pressing enter, nothing happens, only when you give focus to the filled in field again does the color change. Leaving the field turns the color again to its original. Here is a link to an example:
http://schulen.eduhi.at/herderschule/pdf/E3/e3u1sentences.pdf
Try it with reader 9 and a previous version and you'll see what I mean.
Can somebody help me fix this problem?
Here is the code that I'm using to validate the textfields:
//TestLetter
/*********** belongs to: Document-Level:TestLetter ***********/
var f = this.getField("1")
f.value = "";
var f = this.getField("2")
f.value = "";
function TestLetter(FieldName,FieldValue)
var RetValue;
RetValue = false;
switch (FieldName)
case "1":
if (FieldValue == "in the Australian bush.")
RetValue = true;
break;
case "2":
if (FieldValue == "for a pack of dingoes.")
RetValue = true;
break;
default:
RetValue = false;
break;
return RetValue;
//trim
/*********** belongs to: Document-Level:trim ***********/
function trim(inputString) {
if (typeof inputString != "string") { return inputString; }
var retValue = inputString;
var ch = retValue.substring(0, 1);
while (ch == " ") {
retValue = retValue.substring(1, retValue.length);
ch = retValue.substring(0, 1);
ch = retValue.substring(retValue.length-1, retValue.length);
while (ch == " ") {
retValue = retValue.substring(0, retValue.length-1);
ch = retValue.substring(retValue.length-1, retValue.length);
while (retValue.indexOf(" ") != -1) {
retValue = retValue.substring(0, retValue.indexOf(" "))
+ retValue.substring(retValue.indexOf(" ")+1, retValue.length);
return retValue;
//1:Validate
/*********** belongs to: AcroForm:1:Validate ***********/
event.value = trim(event.value);
var f = this.getField("1"); /* field that the event occurs at */
f.readonly = false;
f.fillColor = color.ltGray
if (event.value != "")
if (TestLetter("1",event.value)==true)
f.fillColor = color.green;
else
f.fillColor = color.red;
//2:Validate
/*********** belongs to: AcroForm:2:Validate ***********/
event.value = trim(event.value);
var f = this.getField("2"); /* field that the event occurs at */
f.readonly = false;
f.fillColor = color.ltGray
if (event.value != "")
if (TestLetter("2",event.value)==true)
f.fillColor = color.green;
Else
f.fillColor = color.red;
You probably have field highlighting turned on. You can use JavaScript in the file to turn off this user preference setting.
I'd also suggest a code change:
event.value = trim(event.value);
var f = event.target; /* field that the event occurs at */
George
Similar Messages
-
Having Problems with "pattern" in Spry Validation Text Field
Hi, thanks for reading. I have read the primers and docs on
using the "custom" pattern ability of the spry textfield validion.
However, I am unable to fully understand how to implement the
conditions I desire. I have read that you use:
"B"; "b" for Case-insensitive alphabetic characters.
I suppose my first question is, does that mean either B or b
will work?
What I am trying to accomplish for my first validation is:
1- to allow between 1 and 15 characters to be entered. They
should be only a) alphanumeric (number or letter) b) they MAY
contain a space in there and c) the first character needs to be a
letter. So, what I want it to scrub for is a char string no longer
than 15 chars, number or letter (may contain a space, but that
counts towards the 15) and the first char must be a letter.
I have been playing around with the attributes:
("spryCustomtest", "custom", {validateOn:["blur"],
minChars:1, maxChars:15, pattern:"a"});
however, i am unable to see how to specify the pattern so
that it allows for 1-15 chars and insists that only the first char
is a letter......
My second question is, how could I implement a field for
heightened password-choosing rules....
perhaps tell it to allow for:
a) minimum of 8 characters
b) at least one capital letter
c) at least one special character or number
d) maximum of 30 characters
thanks for any help, TexDid you ever find a solution for this?
-
Problem with Refreshing the data bound text fields
Folks,
First of all, this a GREAT product and I am moving my apps from Eclipse to Studio Creator. I am very impessed with it so far.
I am gone through most tutorials, but can't help resolve the problem that I am having. I have a page, that lists all the users in a table. When you click on any user, it opens up another page that lists the detail of the specific user you have clicked on. This a typical use in most web applications, right?
In the user detail page, I open it in "Read" only mode, by setting the "setReadOnly" to true for all text field components. Then users can edit it by clicking "Edit" button. Edit button just changes the "setReadOnly" to false, to allow editing. After editing, they can hit the "Save" button to save the changes. In the save button, I call this code:
public void prerender() {
try {
userID=getSessionBean1().getUserID();
getSessionBean1().getWeb_userRowSetUserDetail().setObject(1,userID);
getWeb_userDataProviderUserDetail().refresh();
info("prerender: Refresh called");
} catch (Exception ex) {
error("Error in userForm.prerender():"+ex.getMessage()+ex.getStackTrace());
log("Error in userForm.prerender():", ex);
setReadWrite();
public String btnSave_action() {
try {
getWeb_userDataProviderUserDetail().commitChanges();
getWeb_userDataProviderUserDetail().refresh();
info("Data Provider Refreshed in SAVE");
_readOnly=true;
form1.discardSubmittedValues("saveVForm");
info("User Updated New:"+userID);
} catch (Exception ex) {
log("Error Description", ex);
return null;
public String btnEdit_action() {
try {
_readOnly=false;
//info("User ID Edt="+getSessionBean1().getUserID());
} catch (Exception ex) {
error("Error in userForm.btnEdit_action:"+ex.getMessage()+ex.getStackTrace());
log("Error in userForm.btnEdit_action():", ex);
return null;
private void setReadWrite(){
// Set read-only to true or false for all text fiels
this.btnEdit.setVisible(_readOnly);
this.btnSave.setVisible(!_readOnly);
this.user_id.setReadOnly(_readOnly);
this.user_email_client.setReadOnly(_readOnly);
this.user_email_office.setReadOnly(_readOnly);
this.user_fname.setReadOnly(_readOnly);
this.user_lname.setReadOnly(_readOnly);
this.user_id.setReadOnly(_readOnly);
this.user_password.setReadOnly(_readOnly);
this.user_password_conf.setReadOnly(_readOnly);
this.user_phone_cell.setReadOnly(_readOnly);
this.user_phone_cell_aac.setReadOnly(_readOnly);
this.user_phone_client.setReadOnly(_readOnly);
this.user_phone_home.setReadOnly(_readOnly);
this.user_phone_office.setReadOnly(_readOnly);
}When the save button is clicked, the database is updated (as I can verify by looking directly into the database), but the data-bound text fields do not display the new value. YES, I am calling refresh() on data provider? I tried to call refresh in both "preRender()" and "Save" button action event, but that did not help either.
Please note that the save button also changes the "setReadOnly" back to TRUE for all text fields. That means, users view the page in Read-Only mode after saving. (They have to click on "Edit" button again to edit it). I discovered that if I do not set the text field components in "ReadOnly" mode, then they display the updated value of the fields. But if I change setReadOnly to TRUE, then they display the old values (before the save).
Any idea what I am doing wrong here?
ThanksHere is my experience with it. I have three text
boxes to be filled out. They are part of a virtual
form with an add button as the submit. You can fill
out the 3 and add them and a node is added to a tree
component. When you click on a node in the tree
component (the submit to another virtual form that
the 3 buttons participate in) the text fields should
be loaded with the values that they where added with.Hard to tell from this explanation, but if the text fields do not participate in a virtual form, then they are not going to get updated when an action in the virtual form happens. Not sure this is your problem. Like I say, hard to tell from this explanation.
They will not display the values though...having
nothing to do with read only. If I disable them
before hand...they display the updated values. If I
set their value at the top or bottom of prerender,
they display the change...if I set the value in an if
conditional that is hit (I have checked many times)
in prerender, they will not display the values. If I
set them in the tree handler anywhere, they will not
display the values. This is very frustrating and is
wasting tons of my time...I simply want to load the
text fields based on the tree node that was
clicked...I have messed with this for hours and it
certainly does not work.Well, setting them in the tree handler won't work because the tree handler gets called in the page instance that handles the submit and not the page instance that renders the response.
Posting your prerender code might help. Also, your action handler.
>
>
- Mark -
Adobe X PDF files converted to jpg, edited and converted back to PDF have ragged, unclear text. I didn't have this problem with Acrobat 9 standard. What is the remedy for this. If this is the best I can expect, I won't be able to use X standard.
I can't imagine any worse workflow than converting to JPEG to edit text, then back to PDF. Text in a PDF is a vector thing, smooth at all resolutions. And JPEG is made for photos. EVERY conversion to JPEG and back loses quality but how much loss there is will vary.
If you must go to an image format, try PNG. -
I am having a problem with getting notified when I receive a call or a text.
Hi BigBroMAC,
The first thing I would check is Do Not Disturb mode, as this will cause that behavior:
iOS 6: Using Do Not Disturb
http://support.apple.com/kb/HT5463
If that isn't the issue, this article has slightly different symptoms but the troubleshooting would be the same:
iPhone: Can't hear through the receiver or speakers
http://support.apple.com/kb/TS1630
Before you do step 10, however, I recommend resetting all settings to see if that helps. To do that, choose Settings > General > Reset > Reset All Settings.
I hope this helps!
- Ari -
Problem with the query of Sharepoint Calculated Fields
Hello,
I am developing an application in sharepoint 2013 foundation. but i have problems with a list, when executing a caml query on a calculated field. I try the solution of this blog
http://sptalks.wordpress.com/2013/03/25/query-on-calculated-field-problem
but i got no result
attentive to any comments
thanksHello,
This is my CAML Query
<View>
<ViewFields>
<FieldRef Name="ID" />
<FieldRef Name="PermMask" />
<FieldRef Name="FSObjType" />
<FieldRef Name="Nombre" AutoHyperLink="TRUE" />
<FieldRef Name="Apellidos" AutoHyperLink="TRUE" />
<FieldRef Name="Cargo" /><FieldRef Name="Edad" />
<FieldRef Name="Compa_x00f1_ia" />
<FieldRef Name="Created" />
</ViewFields>
<Query>
<GroupBy Collapse="TRUE" GroupLimit="30">
<FieldRef Name="Compa_x00f1_ia" />
<FieldRef Name="Edad" />
</GroupBy>
<OrderBy>
<FieldRef Name="ID" />
</OrderBy>
<Where>
<Contains>
<FieldRef Name="Ano" LookupId="FALSE" />
<Value Type="Text">2014</Value>
</Contains>
</Where>
</Query>
</View> -
Spry validation text field across two columns in a table?
I have a table with two columns. I can easily insert a spry validated text field into the left cell but when I drag the box over so that box is in the right column and the label is still in the left column then that breaks the widget.
Is this even possible for me to do or do I have to put the widget in just one column?Think I figured it out.
http://www.adobe.com/devnet/dreamweaver/articles/spry_form_validations.html -
Where is Hint Box for Validation Text Field widget?
I want to enter a hint for my form.
I am following the instructions on the Adobe Using Dreamweaver CS4 page for Insert and edit the Validation Text Field widget page:
<http://help.adobe.com/en_US/Dreamweaver/10.0_Using/WSEB5440BC-453A-4101-928C-302199E7E02F. html#WS8E6EA74E-87AC-4a81-A5CC-2DB6FB451DE0a>
It says:
Create a hint for a text field
Because there are so many different kinds of formats for text fields, it is helpful to give your users a hint as to what format they need to enter. For example, a text field set with the Phone Number validation type will only accept phone numbers in the form (000) 000-0000. You can enter these sample numbers as a hint so that the text field displays the correct format when the user loads the page in a browser.
1. Select a Validation Text Field widget in the Document window.
2. In the Property inspector (Window > Properties), enter a hint in the Hint text box.
However, the is no hint box in my Propeties area.
How do I get this hint box to show up?
Dreamweaver CS4, Windows VistaHi David,
My Property inspector looks different than what you have below.
I do not have a Hint box and I do not have the Customize this widget.
I did have a Hint box and the Customize this widget for CS3, howver not for CS4
Alison -
Using JavaScript to set value of Spry validated text field
Why can't the value of a text field be set using JavaScript
when it's validated using the Spry validation widget.
Example (this works):
<select name="birthdate_month" id="birthdate_month"
onChange="document.getElementById('birthdate').value = 'test';">
<option>1</option>
<option>2</option>
</select>
<input type="text" name="birthdate" id="birthdate"
value="">
Example (this doesnt work):
<select name="birthdate_month" id="birthdate_month"
onChange="document.getElementById('birthdate').value = 'test';">
<option>1</option>
<option>2</option>
</select>
<span id="birthdate">
<input type="text" name="birthdate" id="birthdate"
value="">
<span class="textfieldRequiredMsg">please enter your
birthday</span>
</span>
<script type="text/javascript">
<!--
var birthdate = new
Spry.Widget.ValidationTextField("birthdate", "none");
//-->
</script>
Is there a way to change the value of a Spry validated text
field using JavaScript?
Thanks.Why can't the value of a text field be set using JavaScript
when it's validated using the Spry validation widget.
Example (this works):
<select name="birthdate_month" id="birthdate_month"
onChange="document.getElementById('birthdate').value = 'test';">
<option>1</option>
<option>2</option>
</select>
<input type="text" name="birthdate" id="birthdate"
value="">
Example (this doesnt work):
<select name="birthdate_month" id="birthdate_month"
onChange="document.getElementById('birthdate').value = 'test';">
<option>1</option>
<option>2</option>
</select>
<span id="birthdate">
<input type="text" name="birthdate" id="birthdate"
value="">
<span class="textfieldRequiredMsg">please enter your
birthday</span>
</span>
<script type="text/javascript">
<!--
var birthdate = new
Spry.Widget.ValidationTextField("birthdate", "none");
//-->
</script>
Is there a way to change the value of a Spry validated text
field using JavaScript?
Thanks. -
Problem with Acrobat 11 keeps asking to accept EULA
I cannot use Reader because it keeps on asking to accept EULA; Mac OS 10.9, Reader 11 , when downloading it says " by clicking on Install you automatically accept EULA " : I've installed and uninstalled it many times, when I launch it it does not allow me to accept any EULA I'm getting desperate please help
I meant that there isn’t any box where I can accept the terms etc. - when I ‘ve downloaded it said “ by clicking on Install you agree to accept the terms and conditions “
Anyway now I’ve cancelled some plug-ins from the library and it seems it works
If you have a better suggestion kindly let me know
Thank you for your prompt reply
Il giorno 05/mag/2014, alle ore 03:55, Pat Willener <[email protected]> ha scritto:
problem with Acrobat 11 keeps asking to accept EULA
created by Pat Willener in Adobe Reader - View the full discussion -
Problem with Acrobat 8 Minimize.
Hi,
I have some plug-ins loaded on acrobat 7, it is doing fine there, but when the same plug-ins on Acrobat 8(professional), for one of the plug-in, when i minimize the acrobat window, the UI dialog associated with that plug-in doesnot get close(minimized) along with acrobat window, but stay back on screen. It is only for dat plug-in, for other plug-in UI dialogs, they are closing with acrobat window when minimized. I dont't know what is the error creating this problem, please help me to solve this issue.
thank you,
palakshaIf you have one window that minimizes, and another of yours does not,
it's worth comparing the parent HWnd passed to window creation.
Aandi Inston -
I have a problem with Apple store when installing large application (example xCode): The system crashes.
It begun with 10.8 usualy with few tries it work but with 4.6 no succes.
Any suggestion?If you have more than one user account, you must be logged in as an administrator to carry out these instructions.
Launch the Console application in any of the following ways:
☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
☞ Open LaunchPad. Click Utilities, then Console in the icon grid.
Select the most recent panic log under System Diagnostic Reports. Post the entire contents — the text, please, not a screenshot. In the interest of privacy, I suggest you edit out the “Anonymous UUID,” a long string of letters, numbers, and dashes in the header and body of the report, if it’s present (it may not be.) Please don't post shutdownStall, spin, or hang reports. -
Easier and better ways to solve current problems with Acrobat?
Is there no better and easier way to solve the problems (installation, re-installing and crashing) with Acrobat? I really think that the ball is in Acrobat's corner right now, because I should not (for example) need to deactivate and re-activate my subscription in order to get AcrobatPro XI to work on my computer, let alone deinstalling an older version that (for now) does work, risking that in the end neither of them work. I need the (great) AdobeCloud applications to do my work as a freelancer, and I really cannot afford this kind of trouble with my applications, nore loose time repairing them. These are difficult times as it is.
Regards,
MarcSorry, I can't. When I installed it there was no message that said I had to deinstall the old version first, and with other Adobe CC applications there had been no trouble at all, so I installed it with The previous version still on my computer.
After installing, neither of them would start up properly, so I deinstalled version XI, after which the old version worked again, but my Adobe Application Manager does not let me download the XI version a second time, so I cannot try again.
Regards,
Marc
Op 7 dec. 2012 om 00:41 heeft David Kastendick <[email protected]> het volgende geschreven:
Re: Easier and better ways to solve current problems with Acrobat?
created by David Kastendick in Acrobat Installation & Update Issues - View the full discussion
The description of the issue you originally presented isn't something that I've seen happen to Acrobat when installed as a part of Creative Cloud.
Could you provide a specific description of the behavior that occurs when you launch Acrobat XI now?
Thanks,
David
Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/4902597#4902597
Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/4902597#4902597
To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/4902597#4902597. In the Actions box on the right, click the Stop Email Notifications link.
Start a new discussion in Acrobat Installation & Update Issues by email or at Adobe Community
For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746. -
I need to reinstall Acrobat X because I un-installed it after a persistant error that said I needed to unistall. Now that I have uninstalled, Adobe Application Manager says it is already installed, and won"t let me reinstall. What do I do?
I would get onto Adobe Support, and I mean phone, Adobe support.
I do not think people fully understood Creative Cloud when it started - and I include myself here. I certainly saw it as a traditional means of storing and installing software. I.e. if I was unhappy with an installation I would delete it and then re-inatall a fresh copy.
With creative cloud - and I am guessing here - registration of what you have installed is held with Creative Cloud. Therefore if you delete a program, yes it is off your system but it is still registered with Creative Cloud. Hence when you try to re-download and install as far as Creative Cloud is concerned the program is still on your machine and therefore you are not permitted to re-download. That is why, I'm sure, Adobe recomeded users do not delete programs they are having problems with.
Actually when I did delete Acrobat X, I copied a version onto another drive, that was how I was able to restore it.
I would get in touch with Adobe direct. Although the structure of Creative Cloud was described in advance and yes Adobe did warn users not to delete programs if they were having problem with them, I don't remember them telling us that a deleted program on a users machine did not delete the reference on Creative Cloud. I am not sure Adobe appreciated that some users still saw the software in the traditional mode. You were not trying to cheat the system, you were attempting to resolve a software situation. The problem is that Creative Cloud is a virtual software delivery system and as far as Adobe is concerned you have been delivered your software.
I would get onto Adobe. I am sure if you explain the situation they will be ale to resolve it for you. Although we were warned about the unique nature of Creative Cloud, I am not sure Adobe gave sufficient thought to the kinds of problems that you, and I am sure others including myself are being faced with because we did not fully appreciate the nature of Creative Cloud.
Hope that is of help to you. -
Problem with internet. When i open System preferences, Network, message drops down: 'your network settings have been changed by another application'. I click OK, but it dropps the message again and again, preventing me to do anything about the setting.
A Fix for "Your network preferences have been changed by another application" Error
In the Library/Preferences/SystemConfiguration/ folder delete the following:
com.apple.airport.preferences.plist
NetworkInterfaces.plist
preferences.plist
com.apple.nat.plist
You will have to re-configure all your network settings since deleting.
(10.4.10)
Use Software Update to update your OS to last version of Tiger. Install all the other updates that goes along w/it.
Maybe you are looking for
-
UCCE 7.5.7 CAD macro to populate ICM Call Variable
UCCE 7.5.7 CAD 7.5.8 I need to create a CAD Toolbar macro in Cisco Desktop Administrator that reads data from a text file (an 8 digit number) and writes this data to an ICM Call Variable. The 8 digit number is not known until after the call is answer
-
hello, can eny bodt explain the import material procurement process in sap system ie; iwant import a material from another country explain material master onwards pls give step by step process good answer will be awarded regards kiran
-
Dear sir/madam I having question for the shift operator. What different between >>> and >> ? I have refer to sun tutorial, it state >>> is unsign, what does it mean? and last is if integer is 13 what anwer for 13>>8 is it move for 8 right by position
-
Receiving this error while creating SRS Sales Order 'Error lieferwerk_no_entries determining relevant distribution center' Please help Regards
-
These apps cannot be accepted by your Apple ID.
Ich habe einen zweimonatigen iMac von einem freund abgekauft und diesen komplett neu aufgesetzt (Factiry Reset). Nun kann ich verschiedene Applikationen, welche standardmässig dabei (iPhoto, iMovie, GarageBand, etc.) weder installieren, gebrauchen no