New to scripting - need help!

I have a purchase order of acrobat (pro 9.0) containing 4 fields called sub1, sub2, sub3 & sub4. Here is the subtotal fields that should contain the number 8 if the user entered numbers correctly. I have a field of total which should have the following code in it:


If sub1 = 8,

Then, add 20 to the total.

If sub2 = 8,

Then add 20 to total.

If sub3 = 8,

Then add 20 to total.

If sub4 = 8,

Then add 20 to total.

I need to translate this in Javascript and need all the help I can get.

Thanks in advance

No. I assumed you wanted the result in a field of text called 'Total '.

Create a text field named "QtyBoxSetTotal" and put this code in the custom tab calculation script box calculate (found in the text field properties) to this text box.  You also need that box 'Read only' so that nobody tries to enter a number in this area since its value will be calculated.

Then you'd have five areas of text in total.  Four would not make any script (and would be named "Sub1", "Sub2", "Sub3',"Sub4"and the fifth area named 'QtyBoxSetTotal' would have the javascript code I gave you.  The value of the event would be calculated by the script and displayed in this text box ("QtyBoxSetTotal"), and the other four boxes would display the number entered by the user.

In addition, you can put a verification code in the other four areas to prevent the entry of a number which is not equal to 8 If you do not want the user to enter a number that is not equal to 8.  Do you need to set the text under the number format and then enter a valid numbers range from: 8 in: 8, in your example.

I hope it clears.

Tags: Acrobat

Similar Questions

  • New user - script needs help

    Hi people, new user here.

    Have a text field I want to be hidden until one of the two radio buttons in a group has been selected.  Any help is greatly appreciated.

    Rick S/San Antonio, TX

    You can do this in different ways. Here is an example. Use the following the calculation script customized in your text field that must be hidden or shown:

    var f1 = this.getField("Group1");
    var shouldBeVisible = (f1.value != "Off");
    event.target.display = shouldBeVisible ? display.visible : display.hidden;
    

    This can be shortened a bit, but the shorter code is not necessarily more readable. If you have problems to understand what is happening here, please see the core JavaScript language syntax. What you need to know, is that a group of radio buttons with no selection will report 'Off' as its value. If the field should be visible when the Group of radio buttons is not set to 'Off '. In this case, we set the event.target.display property (you can find out what it means in the Acrobat JavaScript API documentation: Acrobat SDK Documentation DC: event.target ) display.visible or in the other case display.hidden (once again, it details in the documentation of the API).

  • Hello, I have a new Mac, I need help to install adobe photoshop c6 I need to install and pay fees I want. but I've been trying and get no days... I had the version of 30 days and will not let me buy him. I NEED FOR MY WORK PLEASE

    Hello, I have a new mac, I need help in installing adobe photoshop cs6, I need to install and to pay the tax. But I've been trying and don't get days, I got 30 days version and will not let me buy it. I need it to work. Please

    Hi the isac,

    You can download Photoshop CS6 from this link: download Creative Suite 6 applications

    You can buy the product from this link: Creative Suite 6

    Kind regards

    Claes

  • New GoPro camera need help with rate of 240 fps for idle

    I'm enjoying the possibilities offered by the new extreme sport GoPro camera and need help when it comes to using different rates in Premiere Pro. The pictures I brought in was shot at 240 fps and are indicated as such in the project Panel. However, when I preview the item in the Source Panel he rereads at normal speed and he has not slowed down. If it was shot at 240 fps so I think that Premiere Pro would play this back to 29.97 FPS and true would be slowed down.

    I am a beginner and you have to learn how to treat slow clips that I bring that are supposed to be slowed down.

    TIA,

    Ken

    Rod,

    You are not wrong, exactly, but I must respond to some of your statements. Premiere Pro is not what some think to do this. Craig and I had this conversation recently. When it Premiere Pro sees 240 fps on a sequence of 24 frames per second, it gives executives. About 90% of them.

    Keep in mind that some people turn it quickly because the action is fast, and they want that expected as fast they can project.

    Let's say you have a movie projector that shows 24 fps. No matter what film reel you load into this projector, you see the film at 24 frames per second.

    Premiere Pro will change the 240 IPS or 60 frames per second to 24 frames per second by dropping frames. It is not generally what people want if they have bothered to get away with it. Yes, it shows you 24 fps, but by dropping frames, is not playing frames one at a time.

    This means that if you shoot at 48 frames per second, you get slowed down when projected at 24 frames per second.

    Only if interpret you it or use an effect to slow it down. The effect is not as accurate as the interpreter.

    Think of it THAT WAY and find out what you have to do to make your premiere pro version are TREATING your images like it is projected at 24 frames per second.  In other words, no boxes are deleted. No boxes are added. NOTHING moves the way you SHOT IT.  Each image you shot will be used exactly as you he turned.

    Once again, that if interpret you it this way.

    This is NOT MATH or EFFECTS etc.

    Well, if interpret you it this is not mathematics, but if you slow down using a percentage, then it is math, and I do not think that it slows down the effect of which is the right way to do it.

    Don't download misled by all unwanted people enter with making it slower or faster time with interpolation.

    If you can not Surdemarrage or shoot at a higher rate, interpolation is all you have. But Ken did not have this problem, thank God.

    If you don't know exactly which continues with the sequences interpret things adobe has some help specify exactly files.

    There's not much to it. If you want to slow down 50% interpret it at 120 frames per second. If you want to slow down 90%, interpret it to 24 fps. Anything in between is up to you.

  • New to Flash, need help.

    I'm new in the world of Adobe Flash and who need help. I have a banner rotator fla file is an xml file to produce the content. My question: How can I rename the file "config.xml" in "BannerConfig.xml" xml and still have it work with the flv file?

    We need a code in the FLA somewhere that specifies the name of the file to edit.  The code must be on the time line of the (or a).  If you see a frame (or frames) in the calendar that has a lowercase 'a' in this document, select this image and open the Actions window to view the code.  It is always possible that the code inside a movieclip as well.  And if the file uses AS2, it could even be attached to a symbol on the stage, in which case you will need to select the symbol on the stage, while the Actions panel is open to see the code.

  • Hey guys new here and need help guy how to turn on my CS2 after 30 days grace. It's an older version, I bought new off Ebay and I tried all online and phone nothing has worked and now it does not open?

    need help with an old version of CS and I tried to active several times in 30 days and it don't work and now it will not open now help please!

    CS2 (or earlier version) software activation server replacement

    NOTE that CS2 will not install on a Mac "modern."

    l http://helpx.adobe.com/x-productkb/Policy-Pricing/Creative-Suite-2-activation-end-Life.htm

    When you install the special version of the PPro2 on a Win7 or Win8 or Win10 computer, you may need to right click on the program icon and select compatibility Windows XP in the popup of option

  • Problems with the installation of new system. Need help.

    Hello

    I'm new here so I'm sorry if I posted this in the wrong section, I tried to look for this subject but nothing similar has come so I decided to create this.

    I have a HP Pavilion DV7-1020ea, which came with Windows Vista Home Premium 32 - bit installed and a recovery disk that was on the D: partition, but no real recovery disc/DVD.

    This laptop has had a hard drive failure lately, so I replaced it with a new hard drive cool (320GB, same accompanying).

    The new drive as you probably already know is fresh and it does not all partitions or any information, so without recovery of D: partition.

    I need to mention that the phone was fully functional, keyboard, touchpad, and quicklaunch worked correctly.

    I have some experience with computers, so I know how to recover, set up the startup in the bios etc.

    I tried to install Windows XP Professional 32-bit and Windows Vista Home Premium 32 - bit on my laptop but I found out that the DVD drive makes a funny (not damaged or broken), as a lack of sound recognition. The two systems of Windows are original, and I have a license for them.

    Its different when I try to install WIndows 7, the DVDs are recognized immediately. All system disks work on other computers and work quite correctly. The portable disk drive is not damaged.

    The only thing I saw was: No. Bootable Device (3FO)

    I didn't know what to do so I handed the laptop to an expert.

    When I arrived at my computer back, the computer had Windows 7 Ultimate 64 bit installed, but the problem was that quick launch buttons, keyboard and Trackpad was not working. The only way to use the computer was to plug in an external keyboard and mouse which is not a solution.

    -The keyboard not working outside not BIOS, press No button in text fields do not work. The only functions that worked were when I pressed fn + f8 to make the screen brighter and oddly enough, it worked, so when I pressed the keyboard caps lock, caps lock lights on the laptop keyboard as well.

    -The touchpad itself does not, the keypad or buttons. The only thing that works is the light that changes when I press the button disable from white to red, and then from red to white.

    -The quicklounch does not work. The works of power button (turn on the laptop since it is a button) but the led behind it does not work. For speaker and Wifi light is always red (off) and even when I touch it, it will turn blue/white. The rest has a white light behind her, but does not work.

    I also noticed that when I go into the BIOS, the bios is absolutely slow. It takes about 30 seconds to react when I press the buttons on the right, but also it does not react sometimes and it's like in all sections (but it works for keyboard).

    Later, I went to the Device Manager and discovered that there are 3 basic system devices that are not installed. I tried to install by searching online and locally, but no drivers were found.

    All devices have "the drivers for this device are not installed (Code 28)" and the drivers can be found online or on-site.

    Details of devices:

    Basic device PCI system bus 6, device 0, function 3

    Basic device PCI system bus 6, device 0, function 1

    Basic device PCI system bus 6, device 0, function 4

    Trying to fix my keyboard, the touchpad and quicklaunch buttons I went on Synaptics website to download the drivers for the touchpad, updated it, restarted, did not work. I also went on the official site of HP to download the drivers for quicklaunch to my computer, keyboard and mouse, put up-to-date, did not work.

    I also tried to put in the DVD of Vista and XP DVD to see if the computer is able too see them at all, but when I went to my computer and looked at the DVD player, it says "Insert disc in drive E:." so none of them have been recognized by the computer.

    I don't like Windows 7 and I would really like to have my laptop runs on my old system which is Windows Vista Home Premium 32-bit with keys on keyboard, keypad, tactile and functional quicklaunch.

    Could you help me then install the Vista drivers or to solve this problem?

    Tank you!

    You are the very welcome.

    See if the chipset driver installation done something to help.

    https://Downloadcenter.Intel.com/Detail_Desc.aspx?AGR=Y&ProdId=816&DwnldID=20775&keyword=chipset+installation+utility&lang=eng

    It would be the only suggestion I can offer.

    I think you have a motherboard problem or something related.

  • New cascade, I need help getting started to learn

    Hi all

    I'm new to Cascade, so confusing to start.  I have a question that needs your help to clarify:

    1. I create a control in QML Editor, because of the ease to make and listen to samples, give the id to it. So how do the handle in C++ code?

    2. are there any resource tutorial for some basic needs, such as: collect the text box data, display data, etc...

    There are a lot of samples, but I need an explanation of principle so that I can get contact with the sample easier.

    Enjoy your share!

    1. https://developer.blackberry.com/cascades/documentation/dev/integrating_cpp_qml/index.html

    2. https://developer.blackberry.com/cascades/documentation/dev/javascript/index.html

  • New to VMWare, need help with my setup

    Hi everyone, I'm trying to run a specific installation to a laboratory at the House and I'm stuck. at this point I don't know if this is even possible. I have a virtual running Windows server 2012 and a Win7 machine empty. What I need to do, is be able to pxe boot the empty machine since the 2012 server which is running WDS. The service is running, and check all options out_ it is configured as a domain controller and operating dhcp options 60 and 67 correctly configured. Any network settings I try the vm vacuum does not pick up the file of pxe boot from the server... is this even possible or should I try a different product at this point?

    It will probably prove to something simple because I'm new on this but no amount of Googling has done for me so far. Thanks in advance for any help and suggestions!

    Hello

    Welcome to community work station!

    Practices of related laboratory PXE is supported by VMware Workstation. Here is an example for windows: VMWORSTATION 12 PRO, need driver of storage for MDT

    Some tips for the network configuration of your lab environment:

    1. use an independent VMnet for PXE service, DO NOT use bridged VMnet. And you would NOT use better VMnet NAT (aka VMnet8)

    How to:

    a. click on the menu "Edit"-> "Virtual Network Editor... workstation "to open the virtual network Editor.

    b. click on the "Edit settings" button, accept the UAC warning as appropriate.

    c. click on the button "add a network...". ».

    d. Select a new VMnet (I'll use VMnet2 for example), click on the OK"" button.

    e. click 'Apply' then 'OK' in the virtual network Editor dialog box.

    f. open the settings of your virtual machine VM

    g. Select the tab "Hardware"-> "Network card", this "connect to power on" is checked

    h. Select "Custom" and the VMnet you added

    i. click "OK" in the dialog box settings of VM

    j. Repeat step f through i for all your virtual machines

    2 disable DHCP this VMnet of Virtual Network Editor(Technical speaking, it's not necessary, just in case)

    How to:

    a. click on the menu "Edit"-> "Virtual Network Editor... workstation "to open the virtual network Editor.

    b. click on the "Edit settings" button, accept the UAC warning as appropriate.

    c. Select the VMnet you use for the PXE service

    d. uncheck 'Use local DHCP service to distribute IP addresses to virtual machines' option

    e. click 'Apply' then 'OK' in the virtual network Editor dialog box.

    It will be useful.

    Kind regards

    Shawn

  • I just got a new computer and need help to reinstall Lightroom

    I need to re install lightroom to my new computer, how can I do?

    It may depend on which version you need to install.  Here are the links for the licensed versions.

    Lightroom - all versions

    Windows

    http://www.Adobe.com/support/downloads/product.jsp?product=113&platform=Windows

    Mac

    http://www.Adobe.com/support/downloads/product.jsp?product=113&platform=Macintosh

    If it's a cloud of importance then you...

    Download/install the desktop application, connect and install applications subscription.

    https://helpx.Adobe.com/creative-cloud/help/download-install-app.html

  • New to orchestrator need help

    I'm new to Orchestrator and am stuck on a workflow that I am creating.  First stop let me state that I'm not a coder by any means.  I rarely get on the side of the CLI of things although I have my PCV for 4 and 5 and 10 years in the information TECHNOLOGY sector and the past two years since I was a Director of data center have gotten me more inside the CLI.

    A workflow that I am getting down to work for the upgrade of all VM tools on all virtual machines in a cluster that I select once I have the kickoff of the workflow is attached.  It bombards when it moves to the upgrade script vm tools part.  Any help to point me in the direction of solving this would be appreciated.

    Thank you!

    You link your inputs/outputs on the "Upgrade tools" script task:

  • Help - new Web design - need help to create a web gallery

    Hello world

    I am new to web design. I'm working on my first site and I have a bunch of images (approximately 30 or more) I want to put in a web gallery with captions. I know there are a ton of tutorials Gallery out there, but I'm a little hesitant, which might work better for me. You see although I Flash I am not too well known in it yet so I use mainly Dreamweaver to create my whole site. I'm also not sure how to allow visitors to view a Flash site - is - it downloads required to display it? That's why I'm kind of leaning towards not not using a Flash due to my lack of accessibility inexperience and the user web gallery. I'm basically looking for a web gallery with thumbnails on the side or at the top or bottom that if clicked open the picture in a larger preview area. I also have captions under each photo. I also want it to look sharp or professional (with a clean container, it sits in) do not like some of those that I see that you can create in DW automatically that looks as it did in the 1980s, haha.

    If you guys can point me in the right direction, I would be very grateful. I know I still have a lot to learn, but I appreciate the help.

    Thank you!

    And while we're name commercial products, I find it an excellent product

    http://www.WebAssist.com/PHP-scripts-and-solutions/powergallery/

    GRAMPS

  • Buy the new iMac and need help to understand the new options

    Replacement of the motherboard of my 2009 end iMac is unaffordable, so I'm looking to buy a new one. But the 'talk' has my head swimming. I know I want a 21.5 inches and that's it. My biggest complaint to my death machine now it was slow. However, I attributed as uVerse (Internet) and not my Mac; Maybe I was wrong?

    My previous was 33. GHz Intel Core 2 Duo 8 GB, DDR3, a SATA 1 TB disk. I'm an independent publisher, it's full of documents, PDF files and tons of photos but apart from that... I did not use the design software (although I want to go in this area) and pretty much could have several tabs in Safari, Facebook, Word and Adobe open at the same time... nothing too taxing.

    So what do I need? I read everything I can find and I can't yet answer that question!

    Do I need a Fusion player (and what it is anyway)?

    What is the difference between a Fusion of 1 TB drive and a 256 GB or 512 GB flash drive?

    If I get in InDesign or Quark, Photoshop, will it take more RAM so I should just go with 16 now?

    Is the standard 2.7 GHz quad-core i5 processor fast enough, or should I switch to 2.9 or even the quad of 3.1 GHz with i7 processor? (allowing it to run faster, more RAM or higher processor?)

    Any advice or the definition terms would be MOST appreciated! Thank you!

    In your situation, I would buy the 1 TB drive fusion, quad-core processor i5 2.7 GHz with 16 GB of RAM. The RAM is perhaps an exaggeration, but you cannot add it later these days so I think 16 GB is safe. You should get a noticeable performance gain compared to your current system.

    IME, most of the complaints "My Mac is slow" result of naïve users be swindled by adding the third "crapware" such as antivirus programs, "cleaners", "optimizers" and "extensions". After a report of EtreCheck for your current computer see if it is the problem.

    It is possible that adding an SSD in your current setup will give you the extra boost you are looking for, but if you use the machine to make a living, I'd be inclined to think that 7 years is old enough. Be sure to ask your accountant and covers the cost of your new machine against the tax.

    Please take the opportunity to review your backup strategy. When it's your life on the line, you must have at least two external drives for backups. Keep one off-site and on-site, and rotate each week.

    C.

  • New to Labview, need help. USB-6008

    Hi there, let start by saying, I'm totally new to Labview.  I have experience of programming in C, C++, VB etc, but never in Labview.  I thought that Labview is not much of a difference, but I was very wrong.  I went and bought the acquisition of data USB-6008 and downloaded the trial labview to explore and I am totally stuck and have no idea how to proceed.  I can start over again and probably learn all the basics, but I don't want to take too much of my time.  in any case, here is a description of my project:

    Configuration: USB-6008 - to measure the voltage of a battery lithium ~3.6V

    Circuit printed with a switch either connects the battery resistance or not.  the switch can be turned on and off by a USB-6008 analog voltage output

    What I want to do in pseudo-code:

    If you click START,

    Take a read of DAQ and shop to chart and indicator of voltage 1

    If the voltage is > 3.6, then

    30 seconds

    a voltage data acquisition to turn on the switch and light load lights output

    read DAQ and update graphic and indicator of voltage 2 reading

    If it is DAQ< 3.5,="" status="" indicator="OFF," else="">

    30 seconds of the end loop

    If the last reading after 30 seconds of DAQ is > 3.5, the message 'pass' else a message "fail".

    on the other

    indicate a voltage lower than 3.6V and stop the program

    end if and stop the program.

    NOTE: the voltage indicator 1 show ONLY the first reading before the circuit switch is on.

    I didn't know that it is very difficult to program, because everything is very basic, but since I don't know Labview, I do not know how to proceed.  a front is attached.

    Thank you for your help.

    John

    Hello!

    To start, here are a few things.

    1. learning LabVIEW:

    www.NI.com/lv101

    This has all kinds of videos step by step based on LabVIEW and is a great resource just start... it's really great because you can click on a video about any topic that interests you. There are a set of tabs at the top that categorize videos.

    2 examples of DAQ. In LabVIEW go to the Help menu > examples of find... Then in the window that opens (this is called the Finder of the example) you can navigate to the material file Input and Output > DAQmx > Analog measures > voltage

    We have tons of DAQ examples, so this should at least allow you to read a voltage quickly.

    I hope this helps!

  • I am unable to get my separate chat windows when Movie to 2 different do people not sure what to do as new to this need help big ty time in adfvance

    I'm not sure if it's the web browser, I need to change or what I just need to get this model so good n still understood.

    Hello

    I suggest you post your question in the below link and check if it helps.
    http://answers.Yahoo.com/dir/index?link=list&SID=396546091

    Settings to separate all chat windows will be provided on the Web site or the instant messaging client which you are chatting and you must contact the respective assistance.

    Thank you

Maybe you are looking for

  • BlackBerry Smartphones PURPOSE questions?

    Hi, I have two questions: (1) I was wondering why my AIM buddy list is so slow to load? No one on my list as also showing online. This happened yesterday when I left the game and reconnected. It took at least an hour before my contact list has been r

  • Problems with the display after the update of Windows

    Hi guys,. I have not installed or updated all programs on my computer for at least a few weeks, with the exception of Windows Update, so part of MS updates, nothing has changed in recent weeks. A few days ago, my computer (HP dm1 laptop computer) scr

  • [help needed] Several insert - SQL statement

    HelloThis is my table:{code}create table test(Identification number,DS varchar (6).start_date date);{code}There is data in the table.{code}Insert test values (1, 'DS1982', TO_DATE ('01.03.2014 ',' DD.)) MM YYYY'));Insert test values (2, 'DS1982', TO_

  • Query GeoSPARQL

    HelloI just have to start making queries in the database using the vocabulary of GeoSPARQL and I wonder if there is something missing or false in this query:PREFIX dc:< http://purl.org/DC/elements/1.1/ >PREFIX rdf: http://www.w3.org/1999/02/22-rdf-sy

  • Is there a way to do a javascript that would turn security on a form on / off power on/off by pressing a button?

    Our users want to be able to save changes to a pdf form, we did in Acrobat Pro 11 with Adobe Reader software and then be able to save the completed form so no subsequent change is possible. Please let me know if there is a way to do it with a javascr