If than statement not working in this instance....  can you check it out?

I have four text fields
                                                       (READ ONLY)
FIELD A                5                         FIELD B
FIELD E                10                       FIELD F
Currently running Adobe pro v11.0
User can enter in field A, B is calculated by a * 5 = B
User can enter in field E as well, but ONLY if A is greater than 2500.  otherwise,  Field F = 0.
I'm a C# programmer,  however i can't seem to figure this one out with adobe.  I don't work with scripting languages very much.  
Field B has a simplfied nontation of A + 5, works fine
however i cant seem to get a custom script to work.
Custom Calculation for Field E  (syntax might be a tad bit off)
if(fielda.value > 2500)
fieldf.value = fieldE*10;
else
fielde = 0;
This does not trigger anything to happen.  even when fielda meets the condition.  Can anyone take a look at my syntax?   could you offer me any other solutions?
EDIT
I have something in field A, also tried to call it by doing app.alert(fielda);  doesnt work.. Just prints out fielda as a text not the value of field a

You need to provide more information. Some questions:
1. What should happen to field F if both field A and field E are blank?
2. What should happen to field F if field A is not blank and field E is blank?
3. What should happen to field F if field A is blank and field E is not blank?
4. Do you want to prevent the user from entering a value in field E until field A is >2500?
You get a reference to a field using the doc.getField method (http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/JS_API_AcroJS.88.476.html), and you get the value of a field using the "value" (http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/JS_API_AcroJS.88.731.html) or "valueAsString" (http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/JS_API_AcroJS.88.732.html) field properties. A blank field will return a zero length string when getting the field value with either of these property.
It will probably be better to use a custom calculation script for field F instead, but it depends on your answers to the above questions.

Similar Messages

  • I am using iPhone 4S lock came from Japan. From beginning, it is IOS 5.1.1 but now i have updated to IOS 7 and it is not working anymore now. Can you tell me what i have to do now?

    I am using iPhone 4S lock came from Japan. From beginning, it is IOS 5.1.1 but now i have updated to IOS 7 and it is not working anymore now. Can you tell me what i have to do now?

    No Japanese carrier provides unlocking services. Therefore, your phone must have been hacked to unlock it. That hack was removed when you updated the software. You need to be a legitimately unlocked phone.
    Best of luck.

  • I have purchased i phone 4s from US .but its not working with vodafone microSIM .can you please tell me whether its hardware or software problem

    please reply me soon..

    i have purchased unlocked iphone
    How do you know that?  Unless you bought it directly from an Apple Store as unlocked, it pprobably isn't or was hacked.  Phones that were hacked to "unlock", often don't work correctly and ALWAYS get re-locked when updated or restored.

  • I have a 2g ipod touch with the 4.2.1 update. I can barely find any apps that work with this. Can you please let me know some of the apps that will work?

    Please help.

    To more easily find compatible apps:
    iOSSearch - search the iTunes store for compatible apps.
    Apple Club - filter apps by iOS version.
    App Store: Downloading Older Versions of Apps on iOS - Apple Club

  • HT4623 Why do my iPhone cords for my 5 say it is not certified and may not work with this device? It's the same cord that came with my phone. The only difference is the iOS7 update.

    Why do my iPhone cords for my 5 say it is not certified and may not work with this device? It's the same cord that came with my phone. The only difference is the iOS7 update.
    Maps took me to the completely wrong side of town for a long standing business in town.

    Hello margmcarlson,
    Thanks for using Apple Support Communities.
    For more information on this, take a look at:
    Troubleshooting iPhone, iPad, and iPod touch accessories
    http://support.apple.com/kb/TS2634
    Restore iPhone, iPad, or iPod touch to its factory default state. You should rarely need to use this step with an accessory issue.
    Best of luck,
    Mario

  • Select statement not working

    hi to all,
    I am trying to write use inner joining . here is code
    DATA:tabname LIKE dd02L-tabname,
         table_disc LIKE dd02t-ddtext.
      SELECT  dd02ltabname dd02tddtext INTO (tabname,table_disc)
        FROM dd02l INNER JOIN dd02t on dd02ltabname = dd02ttabname
              WHERE dd02tddlanguage = 'E' AND dd02ltabclass = 'TRANSP'
                                AND dd02L~tabname = 'ZANKI*'.
        endselect.
          write : tabname.
    I also checked in tables dd02t and dd02l for the table zanki* and data available in both table . but here select statement not working .do u have any idea about this. thank you

    Hi,
    I executed the ur inner join conditin by commenting 'z*' it's working fine.
    I think  where condition is not getting satisfied so u r not getting any data.
    Please conform in where condition you need * 'AND'* or OR
    I change decalration as below.
    DATA:tabname    type TABNAME,
          table_disc type AS4TEXT.
    SELECT dd02l~tabname
           dd02t~ddtext  INTO (tabname, table_disc)
    FROM dd02l  INNER JOIN dd02t on dd02l~tabname = dd02t~tabname
    WHERE dd02t~ddlanguage = 'E' AND
          dd02l~tabclass = 'TRANSP'AND
        dd02L~tabname = 'ZANKI*'.
    endselect.
    write : tabname.
    Regards,
    Pravin

  • Backup Assistant Service Failed - Sync state not supported by this operation

    I have a Samsung Stratosphere running Gingerbread 2.3.5.  Recently I tried to use the Backup Assistant app and it gave me the error message:
    Service Failed
    Sync state not supported by this operation
    How do I get it to work again?  I can't think of anything that could have caused this.  It worked when I first got the phone.

    I clicked on "backup my contacts" and they backed up--I see them.  Here is
    the strange thing:  the first person to get back to me told me to disable
    the app since it didn't work well with Android.  I did that.  Two days
    later, it started to back up.  Huh?????  Seems like it is inconsistent.
    So, do I just wait until it doesn't work again  (dumb question--what else
    can I do???).  Does this happen to others?
    Thanks so much.  I am new to Verizon and so far I am pleased and really
    like that you got back to me!!
    Sincerely,
    Fran
    On Wed, Nov 21, 2012 at 6:10 PM, Frances Purcell-Abbott <

  • In My IPhone the sound device not working properly. I can here the sound through head set only.kindly send an idea ti solve this problems

    In My IPhone the sound device not working properly. I can here the sound through head set only.kindly send an idea ti solve this problems

    Hello. I sent my WRT1900AC V1 to Linksys four days ago (Monday) via UPS with a RMA. Linksys paid the shipping and everything. The router is still in route, and it should arrive to their offices tomorrow. Once they receive the WRT1900 AC V1, they are going to send me an EA8500 as a replacement. But I have been reading the comments about the EA8500 here in the forum and it seems to have the same problems. I guess the firmware is extremely flawed in both routers (maybe it is almost the same code?). Anyway, I will try the EA8500 and I hope it works. I bought a temporary router from Walmart and I paid $35 for it. It is a Belink N600 DB. I can't believe that a $35 router is working a lot, lot, lot better than my previous $250 WRT1900AC router. Unbelievable. If the EA8500 doesn't work, I'm going to try and get my money back from Linksys, or contact The Consumerist or someone to get my money back and get a Nighthawk instead.

  • HT1212 I am trying to restore a phone that the screen does not work on, therefore I can't input my password.  How can I bypass this and upload it to itunes?

    I am trying to restore a phone that the screen does not work on, therefore I can't input my password.  How can I bypass this and upload it to itunes?

    You could follow the instructions in the support document that you linked from. There is a section regarding the passcode and the inability to use it or enter it. However, you may encounter more issues since you cannot use the screen.

  • I had a repair done on my MacBook Pro and had to have a new hard drive installed. The Apple Auth Repair Shop then updated the OS from 10.6.8 to 10.7.5. Now my iPhoto v 9.2.3 will not open and it sounds like it will not work with this OS. Can you plea

    I had a repair done on my MacBook Pro and had to have a new hard drive installed. The Apple Auth Repair Shop then updated the OS from 10.6.8 to 10.7.5. Now my iPhoto v 9.2.3 will not open and it sounds like it will not work with this OS. Can you please advise?

    You may need many other updates to retain compatibility with Lion. I suggest you reinstall Snow Leopard. Unfortunately, you will need to erase the drive first. Be sure to backup your data if you haven't done so already.
    Clean Install of Snow Leopard
    Be sure to make a backup first because the following procedure will erase
    the drive and everything on it.
         1. Boot the computer using the Snow Leopard Installer Disc or the Disc 1 that came
             with your computer.  Insert the disc into the optical drive and restart the computer.
             After the chime press and hold down the  "C" key.  Release the key when you see
             a small spinning gear appear below the dark gray Apple logo.
         2. After the installer loads select your language and click on the Continue
             button. When the menu bar appears select Disk Utility from the Utilities menu.
             After DU loads select the hard drive entry from the left side list (mfgr.'s ID and drive
             size.)  Click on the Partition tab in the DU main window.  Set the number of
             partitions to one (1) from the Partitions drop down menu, click on Options button
             and select GUID, click on OK, then set the format type to MacOS Extended
             (Journaled, if supported), then click on the Apply button.
         3. When the formatting has completed quit DU and return to the installer.  Proceed
             with the OS X installation and follow the directions included with the installer.
         4. When the installation has completed your computer will Restart into the Setup
             Assistant. After you finish Setup Assistant will complete the installation after which
             you will be running a fresh install of OS X.  You can now begin the update process
             by opening Software Update and installing all recommended updates to bring your
             installation current.
    Download and install Mac OS X 10.6.8 Update Combo v1.1.

  • Sbi mobile banking is not working in iphone4. i can't make video call to other than iphone4

    sbi mobile banking is not working in iphone4. i can't make video call to other than iphone4

    What troubleshooting steps have you tried?  Have you tried resetting the iPhone? or restoring it?

  • I've moved my Aperture library to another computer, and masters are referencing an old path name.  How can I update these references?  Reloctating masters does not work in this case :(

    I've moved my Aperture library from one computer to another using Finder.
    I merged the library with one which was already on the computer.
    Now, the photos I imported have reference to the old path name on my old computer.
    How can I update these references as "Relocate Masters" does not work in this case?

    Just one suggestion to be able to reconnect all at once:
    Create a smart album containing the images with missing masters:
    File -> New ->  Smart Album,     and add a rule: File Status is "Missing"     (or File Status is "offline")
    Then select the images in this album and go to the File menu:
    and select:   File -> Locate referenced File
    If you are lucky, Aperture will reconnect all at once, if you point the first image version to its counterpart.

  • Adobe Flash FAIL:  Adobe Flash Player local storage settings incorrect.  Module 'Resume' feature may not work on this computer.

    Using a Windows 2012 RDS Environment, we have users connecting to a CPD website, and as part of the CPD they need to run a systems checker.  When they run the systems checker they get the following error message: "Adobe Flash FAIL:  Adobe Flash Player local storage settings incorrect.  Module 'Resume' feature may not work on this computer". All users are connecting to this environment with Windows CE Clients,I have checked the setting on Adobe Flash and they seem correct but as each user has its own profile on the RDS session, is there something that I should be setting for each user. I have added the website to the trusted sites and it has made no difference.   Any ideas

    It sounds like what's happening is that Flash Player can't write or read from the local shared objects in the user's redirected home directory because we disallow traversing junctions in the broker process.  This behavior was disabled to address a vulnerability identified in some of John Forshaw's research into the IE broker last year.
    You can enable this behavior by adding the following setting to mms.cfg:
    EnableInsecureJunctionBehavior=1
    That said, you can probably gather from the name of the flag that we don't really recommend this approach, and disable this attack surface by default.  There's some risk that a network attacker could craft content that abuses fundamental issues with how Windows handles Junctions to write to arbitrary locations.
    Unfortunately, there's not a simple or easy workaround that I'm aware of (but it's been ages since I've administered a Windows domain) for this kind of NAS/SAN-backed terminal server environment where Flash is not able to access \Users\<user>\AppData\Roaming\Macromedia\Flash Player\ without traversing a junction.

  • Product key will not work with this edition of Windows 7

    I received a product key for Windows 7 Professional N whilst I was at University via Dreamspark. I'm building a new computer and when it's come to inputting the product key, it comes up saying Product key will not work with this edition of Windows 7.
    The version I installed was Windows 7 Professional using an iso and a USB. I rang the phone activation number and when I got through to a representative, I gave him the product key and he said it is valid and should be working. He transferred me to technical
    services but instead I got cut off.
    At this point I'm really not sure what the issue is, the key was for Windows 7 Professional N, I installed Windows 7 Professional and customer support confirmed it as a valid key. Am I missing something?

    Post your issue to the Windows 7 Genuine Issues forum.  Here are the instructions on how to produce a diagnostic:
    MGA
    Diagnostic Report:
    To properly analyze and solve problems with Activation and Validation, we need to see a full copy of the diagnostic report produced by the MGADiag tool (download and save to desktop -http://go.microsoft.com/fwlink/?linkid=52012 )
    Once downloaded, run the tool.
    Click on the Continue button, after a short time, the Continue button will change to a Copy button.
    Click on the Copy button in the tool (ignore any error messages at this point), and then paste (using either r-click/Paste, or Ctrl+V ) into your post.
    One
    Issue Per Thread:
    Most Activation and Validation issues look the same, on the surface, but can have many different causes and fixes. This is why we ask for a diagnostic report and this is also why we ask that you create your own thread for your issue (in other words,
    don't post your issue in another person's thread). 
    It just becomes too complicated to try to troubleshoot multiple different issues in the same thread.
    New
    to the Forums?
    Instructions
    by  Kamin of Ressik 
    Wanikiya and Dyami--Team Zigzag

  • I have a trial version of Photoshop and Lightroom installed with a view of taking out a subscription. Some of the features in this trial version do not work is this just because it is a trial version.

    I have a trial version of Photoshop and Lightroom installed with a view of taking out a subscription. Some of the features in this trial version do not work is this just because it is a trial version.

    BOILERPLATE TEXT:
    Note that this is boilerplate text.
    If you give complete and detailed information about your setup and the issue at hand,
    such as your platform (Mac or Win),
    exact versions of your OS, of Photoshop (not just "CS6", but something like CS6v.13.0.6) and of Bridge,
    your settings in Photoshop > Preference > Performance
    the type of file you were working on,
    machine specs, such as total installed RAM, scratch file HDs, total available HD space, video card specs, including total VRAM installed,
    what troubleshooting steps you have taken so far,
    what error message(s) you receive,
    if having issues opening raw files also the exact camera make and model that generated them,
    if you're having printing issues, indicate the exact make and model of your printer, paper size, image dimensions in pixels (so many pixels wide by so many pixels high). if going through a RIP, specify that too.
    etc.,
    someone may be able to help you (not necessarily this poster).
    a screen shot of your settings or of the image could be very helpful too.
    Please read this FAQ for advice on how to ask your questions correctly for quicker and better answers:
    http://forums.adobe.com/thread/419981?tstart=0
    Thanks!

Maybe you are looking for