Acrobat 9 Pro Forms - Conditional (If) statements don't work!

Trying to calculate a value via Custom Calculation Script.  I've tried this numerous ways... I can set the event.value but even the simplest conditional statement is
ignored.
Here's the current version (using Diff as a value holder)
var NetMother = this.getField("NetMotherFwd").value;
var PAMother = this.getField("PersAllMother").value;
var Diff = NetMother-PAMother;
If (Diff > 0)
    event.value = Diff;
else
     event.value = 0;
FYI, the following also doesn't work properly - gives zero every time
event.value=0;
If (1==1)
     event.value=1;
Any help would be greatly appreciated!  G

JS is case-sensitive and there's no such thing as "If". You need to use "if"
instead.

Similar Messages

  • Acrobat Pro IX License was activated and was working fine. Then it stop working application would not launch. I

    My Acrobat Pro IX license was activated and was working fine. Then the application stop launching after an update was by Adobe. After a while I uninstalled the application successfully, logged on to my adobe account, viewed past purchases, re-downloaded the application successfully, activated the license and entered my serial number. The next day I get a pop up message that my trial licenses is set to expire in 29 days. I clicked again to activate my license and this time, the message stated that the license for serial number has been revoked.
    How do I resolve this matter?
    Darrell Rawlins

    [discussion moved to Acrobat Installation & Update Issues forum.]

  • We have 'CS6' version of Adobe. We are facing a problem with 'Acrobat Pro'. Every month that is stop working and everytime need to install. Kindly help us regarding solving this problem...

    We have 'CS6' version of Adobe. We are facing a problem with 'Acrobat Pro'. Every month that is stop working and everytime need to install. Kindly help us regarding solving this problem...

    Your Acrobat is running in Trial Mode.  Try this KB: Creative Cloud applications unexpectedly revert to trial mode | CS6, CCM
    If it doesn't work you need to contact Adobe Support for assistance.

  • Every time I plug in my headphones into my Macbook Pro, my volume control buttons don't work.

    Every time I plug in my headphones into my Macbook Pro, my volume control buttons don't work. Even after I unplug my headphones they don't work, they get stuck on the level of volume it was at when I plugged in the headphones. I can control the volume if I go to system preferences and do it that way, but that is such a pain. Also, in order to get the buttons to work again I have to completely restart my computer which is also a pain! What should I do, or can do, to fix the problem?

    If you have have  lion system, herebis a digital/analong output, youmcan a tooth/Qip with the the tip cut off you can  you can stirrted s very gently to the input/put is a digital/along output devivce\\\\\\\\\\\\\
    The dual input/digital input
    a annaolg/digidal, an toothpick/Qtip with the cutit off gentely wiggle  the the the input/put should then looen the the right the, should loosen the sticky switch to the lne.

  • Macbook pro 13inch,mid2010 qwertyu keys don't work after upgrade os x Yosemite

    macbook pro 13inch,mid2010 qwertyu keys don't work after I upgrade os x 10.10 Yosemite. but it works on keyboard viewer. I'm not sure if it's hardware or software problem, how can I fix it?

    Hello there, kipolo.
    Great job using the Keyboard viewer to troubleshoot your issue so far. The following Knowledge Base article provides a great checklists of steps to pinpoint the issue a bit further:
    One or more keys on the keyboard do not respond - Apple Support
    Some keys don't work as expected
    From the Apple menu, choose System Preferences.
    From the View menu, choose Speech.
    Click the Text to Speech tab.
    If "Speak selected text when the key is pressed" is enabled, the key or key combination set to speak text cannot be used for other purposes or used to type text--click Set Key and change it to a less-commonly used key combination (try to use modifier keys such as Shift, Command, Option, and Control). Or, disable the "Speak selected text when the key is pressed" option.
    Click the Accessibilty or Universal Access pane in System Preferences, then click the Keyboard tab.
    Make sure that Slow Keys is turned off. With Slow Keys on, you need to press a key for a longer period of time for it to be recognized.
    In the Accessibilty or Universal Access pane, click the Mouse tab, and make sure Mouse Keys is turned off. With Mouse Keys enabled, you cannot use the Numeric Keypad to enter numbers--instead the keypad moves the pointer (cursor). (There is an option to enable Mouse Keys with five presses of the Option key; you may want to turn that option off to avoid accidentally enabling it.) If Mouse Keys is enabled and you are using a keyboard with no numeric keypad or Num Lock function, see Unable to type while Mouse Keys is enabled in Mac OS X.
    If the function keys on the top row of the keyboard are not working as expected, see Mac OS X: How to change the behavior of function keys.
    If the issue persists, use Keyboard Viewer to help isolate the issue:
    Click the Language & Text pane (Mac OS X v10.6) or International pane (Mac OS X v10.5.8 or earlier) in System Preferences.
    Click the Input Sources tab (or Input Menu tab in Mac OS X 10.5.8 or earlier).
    Click the Keyboard & Character Viewer "On" checkbox to select it (click the Keyboard Viewer "On" checkbox in Mac OS X 10.5.8 or earlier).
    From the Input (flag) menu, choose Show Keyboard Viewer.
    If the keyboard is connected and detected by OS X, the keys you type will highlight in the Keyboard Viewer window. Open TextEdit (or any text application), and try to type something using the keys that were previously not responding to see if they highlight in Keyboard Viewer.
    Start from the Mac OS X Install Disc, choose Terminal from the Utilities menu and test the keys which were previously not working.  If the keys work while started from the Install disc, then the keyboard itself is working correctly.  Use How to troubleshoot a software issue to isolate the software issue that may be causing the keys to not respond.
    Thanks for reaching out to Apple Support Communities.
    Cheers,
    Pedro.

  • Can't select CMYK text colour for text fields in Acrobat Pro forms?

    I have designed a business card template in Indesign, and now want to use Acrobat Pro to add in text fields so that a client can edit the contact details on the cards in future.
    I need to select a specific text colour for the fields, so that it matches the rest of the design. The cards will obviously need to be printed and the document has been set up in CMYK, but when I enter the CMYK colour breakdown in the Properties > Text Colour panel, it won't apply the colour to that field. The text either stays at the default black, or reverts to RGB - which isn't suitable for printing and doesn't match the colour I need.
    Can anybody PLEASE shed some light on this? Other similar posts have either not been answered or people have suggested JavaScript..? I have no idea what I'm supposed to do with a JS code..? Surely there's an easier explanation?
    Thanks in advance.

    This is for a text field that you create in Acrobat, whether the form is used offline or online. The script is a custom Format script, which you can place by bringing up the Properties dialog for the field, select the Format tab, set a format category of Custom, and you should see where you can enter the script. Change the string "Instructional text goes here" to the text you want to display when the field is blank.

  • Acrobat Pro form getting MAPI spooler error

    I have a form created in Acrobat Pro. The users are using Reader 9.3.1. When the user clicks the Submit button, they get a MAPI Spooler error. For some Windows Services closes Reader. Any thoughts on what is causing this and how to fix?
    Thanks,
    MDawn

    Hi Lon ,
    I would request you to get in touch with the support team to get your issue fixed.
    http://helpx.adobe.com/x-productkb/global/service-b.html
    Regards
    Sukrit Dhingra

  • Acrobat Pro XI Conditionally Required Fields

    have developed a simple form in Acrobat Pro xi. Need an example of javescript and where it should be placed. Form has three fields named: SpouseName, SpouseDOB, SpouseGender. All three fields are set to Not Required. If an entry is made in SpouseName, want to set SpouseDOB and SpouseGender to required. The form has a submit button on it and I assume that the code should go on a action on the submit but not sure. Any type of simple example will be greatly appreciated!

    Use this code as the custom validation script of SpouseName:
    this.getField("SpouseDOB").required = (event.value!="");
    this.getField("SpouseGender").required = (event.value!="");

  • Why States don't work on Tablet view for text frames over background image?

    I have Macbook Pro with Top config on top S/W everything updated.
    Using Muse.
    Tablet view site.
    Simple text frames buttons with states over a full width background image - DON'T WORK!
    The text frame buttons are in TOP layer.
    Visible but do not respond to to any touch. UNLESS I delete the background image.
    Can't figure it out for days.
    Please help.
    Thanks
    Eli @

    TO MUSE STAFF!!!!
    I Found a major bug that needs to be fixed:
    In Tablet view:
    A linked text frame or state button has to be in the top layer to respond to states.
    If a composition menu is opening up and covering the button when triggered - THE BUTTON WILL NOT RESPOND EVEN IF THE COMPOSITION IS CLOSED!!!
    Only if the button is ARRANGED ABOVE the composition in the layer and becomes the absolute TOP OBJECT in the layer - ONLY THEN it will respond.
    PLEASE LET ME KNOW IF YOU GOT IT.
    I have tested it on a few projects and the bug is consistent.
    [email protected]
    Thanks for fixing it in the near future
    Eli

  • Acrobat Pro CS5.5 installed but won't work with my serialnumber

    hi,
    in 2012 I bought and downloaded CS5.5 and installed it completely. Never used Acrobat Pro though. Today I would like to but. Adobe Application Manager opens and asks to type the serialnumber. As I copied it from my LWS account and  pasted it, the manager says it is not valid for this product? How can this be? What can I do? Anybody an idea? Thanks, Axel

    Error "The serial number is not valid for this product" | Creative Suite
    http://helpx.adobe.com/creative-suite/kb/error-serial-number-valid-product.html

  • Links in object states don't work

    I have an object state with several text boxes, hyperlinks and buttons works fine, UNTIL i create buttons to control the object states appearance. Then the integrated links in the mso don't work.
    Have tried with new document, new folio etc. As soon as I delete buttons to control the mso, the links works perfect. HELP please

    Hi,
    You can solve this problem putting the buttom outside the MSO. And recreate the links inside the MSO.
    //Felipe

  • Acrobat Pro x(10.1.1) scanning dosenot work with windows 7

    Hi,
    I am trying Adobe Acrobat Pro X 10.1.1 and trying to scan some documents using my Aficio 3228c MFC using TWAIN 3245 drivers it crashes Acrobat Pro ever time upon selecting Scanner.
    I am running it on windows 7.
    is there any solution to this.
    Awating your reply.
    Thanks,
    om

    Hi
    1. yes, there is another folder like
    \twain_32\Ricoh_V3\NeoJC2E\ ( application folders & files of the scanner)
    2. Well, in the event viewer i get following message
    Log Name: 
    Application
    Source:   
    Application Error
    Date:     
    28/10/2011 12:26:04
    Event ID: 
    1000
    Task Category: (100)
    Level:    
    Error
    Keywords: 
    Classic
    User:     
    N/A
    Computer: 
    Om-PC.alkafinsrvr.local
    Description:
    Faulting application name: Acrobat.exe, version: 10.0.0.396, time stamp: 0x4cc5ebc0
    Faulting module name: unknown, version: 0.0.0.0, time stamp: 0x00000000
    Exception code: 0xc0000005
    Fault offset: 0x044e273c
    Faulting process id: 0x1a20
    Faulting application start time: 0x01cc95645b68c503
    Faulting application path: C:\Program Files\Adobe\Acrobat 10.0\Acrobat\Acrobat.exe
    Faulting module path: unknown
    Report Id: 9ec98045-0157-11e1-8bcd-005056c00008
    Event Xml:
    <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
      <System>
    <Provider Name="Application Error" />
    <EventID Qualifiers="0">1000</EventID>
    <Level>2</Level>
    <Task>100</Task>
    <Keywords>0x80000000000000</Keywords>
    <TimeCreated SystemTime="2011-10-28T11:26:04.000000000Z" />
    <EventRecordID>20477</EventRecordID>
    <Channel>Application</Channel>
    <Computer>Om-PC.alkafinsrvr.local</Computer>
    <Security />
      </System>
      <EventData>
    <Data>Acrobat.exe</Data>
    <Data>10.0.0.396</Data>
    <Data>4cc5ebc0</Data>
    <Data>unknown</Data>
    <Data>0.0.0.0</Data>
    <Data>00000000</Data>
    <Data>c0000005</Data>
    <Data>044e273c</Data>
    <Data>1a20</Data>
    <Data>01cc95645b68c503</Data>
    <Data>C:\Program Files\Adobe\Acrobat 10.0\Acrobat\Acrobat.exe</Data>
    <Data>unknown</Data>
    <Data>9ec98045-0157-11e1-8bcd-005056c00008</Data>
      </EventData>
    </Event>
    I hope this helps...

  • Acrobat Pro 7.1.0: Why don't my preferences save?

    I'm using Acrobat Professional 7.1.0 on Windows Vista 32, lots of disk space, no error messages, etc.
    I'm trying to make some changes to the application preferences: I want the default page display to be continuous, for example. When I exit the application and then re-start it, the changes to the preferences do not persist; they're back to whatever they were before I changed them.
    Does anyone know a solution to this problem?

    Thanks, Bill, but I'm talking about the application preferences (Edit->Preferences), which are accessible and changeable even when there is no open PDF file.
    Let me give an example: in preferences, there is a Startup category that includes the option "Display splash screen." That's clearly an application preference, not a preference associated with a particular file. If I check the box to display the splash screen at startup, then click OK, then go back into preferences, my selection is still there: there's still a check mark next to "Display splash screen" So far, so good.
    I then exit Acrobat and start it up again. The application preferences now show that "Display splash screen" is UNchecked. It didn't save the change I made. IT DID, HOWEVER, remember that when I was last in the application preferences, I was in the Startup category, because that's the category it selects by default. If I choose a different category, say Page Display, exit and then re-start Acrobat, it defaults to the Page Display category but doesn't register any of the changes I made.
    So I'm wondering why my changes to the application preferences aren't sticking. Any other ideas? Is this a bug? An installation problem? It seems to work just fine in all other respects.

  • Acrobat Pro Form Creation Question

    I have created a form for myself and other employees to fill out and save the completed form.  Is there a way to set the form that once the form is filled and you push save, that you can only save as a new file name and not actually save and overwrite the original saved form?

    You could lock the file or if you are a Mac only environment you could mark it as stationery.

  • Inserting Images into Acrobat Pro Form And using java script calculation to change it

    Hi,
    I am trying to create a form witch shows text results bassed of tick boxes and I have managed to be able to do that but I need to have icons shown along side them based upon the result and I am not even sure how to input images in the first place.
    I read somewhere that I have to use the content pane but I dont have it and it is not selectable in the view options.
    Also the image I am trying to insert is .ai will it need to be .jpg or .png?
    any help would be greatly aprectiated!
    Thanks,
    Bruce

    That works the only thing is that when another one is selected it stays visible i have tried this
    this.getField("Button1").display = event.target.value=="Off" ? display.hidden : display.visible;
    this.getField("Button2").display = event.target.value=="On" ? display.hidden : display.visible;
    this.getField("Button3").display = event.target.value=="On" ? display.hidden : display.visible;
    this.getField("Button4").display = event.target.value=="On" ? display.hidden : display.visible;
    and alternated them between which one needs to work but that didnt work either, any ideas?
    Thanks,
    Bruce

Maybe you are looking for

  • SRM 7.0 Process Controlled Workflow-Level Type in Process level config

    Hello Experts, In SRM 7.0 for Process controlled workflow,for Level Type in Process Level configuration we have 3 different options 1) Approval with Completion 2) Approval 3) Automatic(System User) Can you plz explain what is the difference between t

  • IWeb Domain and backing up

    I want to ensure I have properly copied my iWeb Files to another hard drive for backup and know how to do that. Problem I have is that when I look in my iWeb folder it shows the Domain.sites2 file plus a folder under my name and within the folder sub

  • IChat Black screen on Windows XP with AIM 5.9

    I am trying to chat with a mac to windows xp with AIM 5.9. I have iChat 3.1.9 (v446) on Tiger 10.4.11. I have turned off my firewall on my computer, running DMZ to my NAT IP and have opened all the necessary ports to my windows user in KY. When I ini

  • Cannot place filename error 0

    Created a flash file of a product image with 360 rotation. Tried to place it and it gives me an error: 0 The swf file was created 3DRT. I can import normal flash files made in Adobe Flash no problem. Any ideas? Really need to have these 360 product i

  • Cant enter mac os when pressing option at start after hiding mac partition in newly installed win7

    I used boot camp to install windows 7 ultimate yesterday. After that I use some partition tool to hide the mac partition simply because I dont wanna carelessly take something out or put something in the partition. After that, I can never see mac os o