Could someone please translate this excel formula in javascript for form = SUM ((G7*13), H7), I can't seem to understand

I have to calculate the fields for a total when it comes to a field once 13 more another field for total, big help is greatly appreciated!

The option of simplified field notation could be:

G7 * 13 + H7

But replace "G7" and "H7" with real field names. If domain names including spaces or other punctuation signs, you will need to escape each character with one-character.

Custom JavaScript could be:

(function () {}

Get the field values as numbers

var G7 = + getField("G7").value;

var H7 = + getField("H7").value;

Perform the calculation and the value of this field

Event.Value = G7 * 13 + H7;

})();

Again, use the names of real field instead of the "G7" and "H7" above.

Tags: Acrobat

Similar Questions

  • If / then formula on javascript for form

    Hello

    I was wondering if someone can help me, I have a PDF form that I designed and made to fill, but I fight on the condition of the 2 latest boxes: -.

    Scenario: -.

    Area A = 20

    Box B = 30

    Box C = 30

    I need :-(box has + box B - box C) If box C< (Box box of A + B), then put the answer in the box F

    If the box C > (Box box of A + B), then pour the answer box G

    Box of F---------------------                                                      Box G-------------------------------

    I know how to add A and B - C, but do not know how to add the condition.

    I would appreciate any help from your expert advisor.

    Thank you very much

    Wow, you're a genius, he worked, spectacular!

    Thank you very much

  • How can I convert Excel formula to Javascript?

    I tried using online Excel formula Beautifier to convert an Excel formula in javascript for use in Adobe Acrobat Pro XI > forms > text field properties > custom calculation Script, but it didn't work.  (I first changed the number of Excel cells for the correct names of the form (Acrobat) in the following calculation fields)

    Formula Excel using domain names: 

    = IF (goals = 1, GA1, IF (goals = 2, (SUM(GA1,GB1)/2), IF (goals = 3 (SUM(GA1,GB1,GC1)/3), SO (Goals = 4, (SU-M(GA1,GB1,GC1,GD1)/4)))

    Calculation Javascript converted using more Web site: 

    (Goals = 1, GA1, IF (objectives == 2, ((GA1,GB1)/2), IF (objectives == 3, ((GA1,GB1,GC1)/3), IF (objectives == 4, ((GA1,G B1,GC1,GD1)/4)))))

    There is no error message, but no results on the ground. I'd like if someone could help me with this script.  Thank you!!!


    Windows 8.1, Acrobat Pro XI

    Regardless of this JavaScript, it is not complete. Something a bit more readable would be:

    Get the field values as numbers

    var goals = + getField("Goals").value;

    var GA1 = + getField("GA1").value;

    var GB1 = + getField("GB1").value;

    var = GC1 + getField("GC1").value;

    var GD1 = + getField("GD1").value;

    Set this field value

    switch (goals) {}

    case 1:

    Event.Value = GA1;

    break;

    case 2:

    Event.Value = (GA1 + GB1) / 2;

    break;

    case 3:

    Event.Value = (GA1 + GB1, GC1) / 3;

    break;

    case 4:

    Event.Value = (GA1, GB1, GC1 + GD1) / 4;

    break;

    by default:

    Event.Value = "";

    break;

    }

    This assumes you have fields with these names.

  • Could someone please help me with a problem I'm having with my update s/ie window?

    I was trying to find a way to get help with my concern about internet/window update of. 99% of the time when I'm in train to get updated window or check the mails on yahoo and a few other sites, my page is immediately closed. I tried to delete the cookies and files and restarted and system restore and reset my IE as well. Nothing works, and I know that I need some updates (would be nice to be able to check my email yahoo also).

    This is what happens in detail:

    I type in the Web site window update and as soon as he gets it closes immediately. When I type in the website of yahoo and then click check mail it closes immediately. There were a few other sites, but these are the 2 most important for me. I have no error code and no warning, just boom that it is gone and everytime I try to bring everything back up, it closes. I did everything I could and I am at a loss.

    Could someone please help me if I can get things and finally be happy and not so stressed. This happened for some time now. I tried to contact technical support, but I can't ever get a straight when clicking we answer contact as normal websites don't. So I try here.

    Please help me solve this problem... also I "think" I have IE 8? could be 7, but I think that 8. I can't because it messes up my computer.

    Thanks, I look forward to talk to someone soon then.

    Catt

    You probably have a nasty malware infection.

    In case you are unable to solve this problem with the suggestions of others, I think you should choose interactive free aid to this page:
  • Lost-Hi could someone please tell me where I can find my 25 digit product key

    Hi could someone please tell me where I can find my key thanx, 25-digit product.

    Hello Samuelballantyne,

    If your copy of Windows came pre-installed on your PC then you should be able to locate the product key 25 letter on the bottom of your laptop or on the back or the side if it's a desktop computer.

    If, however, you bought a copy the retail Windows; in other words you bought the OS yourself in a box from a retailer will the product key on the box or the sleeve of the DVD opertaing system.

    I hope that the product key will be in one of these two places. However, another option, assuming you still have the operating system installed on your PC, is to download a third application of the called party Magic Jelly Bean Keyfinder http://www.magicaljellybean.com/keyfinder/ download this application and then run it on your PC it will then show you the product key number.

    In addition, when you write the number make you that read correctly as a B can easily be confused with a 8. If you writeie down the wrong number, then you will not be able to install the operating system properly.

    This forum post is my own opinion and does not necessarily reflect the opinion or the opinion of Microsoft, its employees or other MVPS.

    John Barnett MVP: Windows XP Expert associated with: Windows Expert - consumer: www.winuser.co.uk | vistasupport.mvps.org | xphelpandsupport.mvps.org | www.silversurfer-Guide.com

  • Could someone please check my code is correct and clean

    Hello

    I bought a template and it handled for my site, could someone please check my code to make sure I have it correct. Because what I do here I will duplicate for the rest of the page.

    < class li =' same illustration portfolio-entry ">"

    < img src = "images/portfolio thumbnails/illustration & fashion/1_britten.jpg" width = "220" height = "240" alt = 'Britten Motorcycle Illustration' >

    < div class = "entry-inch standard" > < a class = "thumblink" href = "images/portfolio images - news/illustration & fashion/1_britten_lge.jpg" rel = "prettyPhoto [2376]" >

    < img src = "images/portfolio thumbnails/illustration & fashion/1_britten.jpg" alt = "Britten Motorcycle Illustration" class = "portfolio category" > < span class = 'extra' > < / span > < /a > < / div >

    < div class = "entry-title" > Web </span > < span > < a title = "Permanent link Soft store" rel = "bookmark" > Britten Motorcyles < /a > < / div >

    < a class = "more-link" href = "images/portfolio images - news/illustration & fashion/1_britten_lge.jpg" rel = "prettyPhoto [2376]" > < span > </span > < /a > < /li > Design view

    This line, I don't want the text to a link anywhere:

    < div class = "entry-title" > Web </span > < span > < a title = "Permanent link Soft store" rel = "bookmark" > Britten Motorcyles < /a > < / div >

    Web site: www.lorraines.co.nz

    Thanks in advance

    You can check your code with the following online tools:

    CSS - http://jigsaw.w3.org/css-validator/

    HTML - http://validator.w3.org/

    Nancy O.

    ALT-Web Design & Publishing

    Web | Graphics | Print | Media specialists

    http://ALT-Web.com/

  • BBM helpme, please translate this massege. I do not use the English language

    Saya mau bertanya, saya sering mendapat pesan dari teman-teman saya ini until siaran.

    Participants:

    -------------

    Zain MAS, dyah time

    Pesan:

    ---------

    Dyah moment:

    Menginformasikan Android semua pengguna kami, bahwa Server kami baru saja penuh, jadi kami meminta bantuan anda untuk memperbaiki masalah ini benar-benar. Kita giungi pengguna aktif kami untuk mengirim ulang pesan ini ke semua orang di daftar kontak anda untuk pengguna aktif yang menggunakan Blackberry Messenger kami mengkonfirmasi, jika anda tidak mengirim pesan ini ke semua kontak Blacberry messanger anda maka anda akan ditetapkan tidak aktif dengan semua kontak anda kehilangan konsekuensidari account. Simbol mengupdate akan otomatis BB android anda, when menyiarkan pesan ini anda atau dalam. BlackBerry android anda akan diperbarui dalam waktu ITU akan has 24 jam atau State dan warna terbaru untuk chatting. Expensive pengguna dan Blackberry android, Kita akan melakukan update untuk BBM dari sampai from 11:00 to 05:00. Jika anda tidak mengirimkan ini ke semua kontak anda, anda tidak akan diizinkan untuk anda kontak dengan the cat. Lama anda tidak berubah akan, silahkan kirim pesan ini ke semua kontak. Bkan broadcast Buang, ini serius, bisa di cek. Orang DP lain terkadang tidak muncul, kirimkan kode ini ke semua kontak kamu 7653459998567257053l

    Is ini bukan penipuan? Jika benar, tolong beri saya agar saya dapat memberitahu teman-teman saya secepatnya tanggapan. Terimakasih.

    Assalamualaikum saya,

    Zainal Abidin

    Google Translate (Indonesian):

    I would ask, I often receive messages broadcast of my friends like that.

    Participants:

    -------------

    Zain MAS, dyah time

    Message:

    ---------

    Dyah moment:

    Android inform all our users that our server was just completely full, so we asked for your help to solve this problem. We need an active user send this message to everyone in your contact list to confirm active users, we use the Blackberry Messenger, if you do not send this message to all Blackberry Messenger contacts you, then your account will be turned off by konsekuensidari losing all your contacts. Symbol will update automatically in BB or your android, when you spread this message. BlackBerry or android you will be updated within 24 hours, it will be the lay out and the last color for a cat. Dear users of Blackberry and Android, we will perform the update to BBM from 11:00 until 05:00. If you don't send this to all your contacts, you can chat with your contacts. Your time will not be modified, please send this message to all contacts. Bkan broadcast carelessly, it of serious, can be verified. DP sometimes, others do not appear, submit this code to all your 7653459998567257053l contacts

    Isn't this fraud? In the affirmative, please give me your comments as soon as possible so that I can tell my friends. Thank you.

    Yours sincerely,

    Zainal Abidin

    I answered your other thread Zainal.

  • Could someone please tell Adobe programmers to give the possibility to remove ' home, tools, documents, learn Adobe icon, link icon Mobile and sign in "from the Acrobat Reader toolbar.

    Could someone please tell Adobe programmers to give the possibility to remove ' home, tools, documents, learn Adobe icon, link icon Mobile and sign in "from the Acrobat Reader toolbar.

    Even assuming that we could achieve these programmers they don't make decisions like that, do marketing.

  • I turned on my PC today and I did not "PRINT" option when I go to the drop down "FILE" menu... totally gone... Could someone please advise me how to recover?

    I turned on my PC today and I did not "PRINT" option when I go to the drop down "FILE" menu... totally gone... Could someone please advise me how to recover?

    Thank you for your comments... I guess it is the restoration of the system for me!

  • My account was canceled in one CC has expired.  I've updated Sunday, he said 24 hours for reactivation, it's Tuesday today ' today - still not activated.  Can someone please verify this?

    My account was canceled in one CC has expired.  I've updated Sunday, he said 24 hours for reactivation, it's Tuesday today ' today - still not activated.  Can someone please verify this?

    Thank you

    Jeff.

    Jeff I sent you a private message,

    Please follow that.

  • I was told I would be contacted by e-mail for support with my problem: still no response from June 4, 2015 Rushi Khan on Adobe chat 09:35:34 please keep this number of cases: 0215754765 for your reference.

    June 4, 2015 Rushi Khan on Adobe chat 09:35:34

    Please keep this number of cases: 0215754765 for your reference.


    He said that we would continue by e-mail, but the response from Noah

    Check your MyAccount at Adobe account to see what is recorded for you. You can use Belarc or such to check the number on your old system. Which must match what is in my account. Download it from http://helpx.adobe.com/acrobat/kb/acrobat-downloads.html and install it. Please save the download for future use.

  • I have to do, if this error message appears: "JavaScript exception: error calling function selector: [object Error]? It seems that by Internet Explorer. Thank you very much for your reply and I hope you can help me.

    I have to do, if this error message appears: "JavaScript exception: error calling function selector: [object Error]? It seems that by Internet Explorer. Thank you very much for your reply and I hope you can help me.

    Hi Brad,

    Here is the link: http://projektw.primo-werbung.de/

    We have this problem only by Internet Explorer. Mozilla, Safari and Opera - there is all right.

  • Is could someone please tell me what this means... Bad Format

    I am running windows xp and get an error message (bad Format, the operation could not be performed due to wrong format)... This only happens on one program that I try to start, all programs, open and run. Could someone tell me how to solve this problem, that I have to reformat my hard drive and reinstall windows. .. Thank you

    Probably be better if you contact Propellerheads. Because they are . Or check their forum

  • I need to restore my computer to the 21st of this month, but it doesn't seem to work and the steps of my vista tells me are terribly detailed could someone please help me with this

    When the start of the Restore Wizard, it asks me to use a current restore point or create a new but Ive tried several times to create an and I can't seem to get my computer back to the 21/08/11

    Hi Colin,

    The simple answer is that you use a current restore point.  It may or may not be a box on the screen that should be checked to show more than 5 days, points of restoration (depending on your version of Windows).  Then you select either the 21/08/11 if there is one closest prior to that (if it exists).

    When you create a restore point you create one for the computer as it exists now.  It cannot create one for a date in the past.  Either you have a course available, you will need to use another that always meets your needs or it can be done.

    This is the best tutorial on system restore I found and can help you: http://www.vistax64.com/tutorials/76905-system-restore-how.html.

    I hope this helps.

    Good luck!

  • I have a lot of Acrobat (pdf) files, but cannot find how to remove the ones I don't want. Could someone please?

    I have a lot of pdf files, which I use often, but I can't find a way to remove those that I is no longer necessary. Could someone help me please?

    On a MS Windows system, use Windows Explorer. On a Mac system, use the Finder.

Maybe you are looking for

  • Interrupted sleep function

    You just press sleep and closing the lid on the MBP Mid 2014 sleep is interrupted. System: MacBook Pro (retina, 15 inches, mi 2014) 2.5 GHz Intel Core i7 16 GB 1600 MHz DDR3 Intel Pro Iris 1536 MB NVIDIA GeForce GT 750M

  • Reset on FF ver 26 remove all client connections FTP FF, the recovery of the old FF data folder?

    My FF browser was weird, so I did a Reset. My whole FF Ftp program has been removed. I installed the addon FF Ftp after the reset. I need to know how to return the file fireFTPsites.dat from the folder "Old data Firefox" browser worm FF 26. I have th

  • Hi I have this weird thing of using windows vista...

    Hi, I'm using windows Vista Home Basic... I this weird thing going where I always pass Administrator hidden account... I noe you guys will advise me to use the personal account and leave the hidden only admin... but I can't get this thing out of my h

  • BlackBerry App Evernote a shared folder on classic BB

    I shared a folder of Evernote Premium on a Mac and an iPad App Evernote (Basic) on a classic BB. Even if a message is received on the classic indicating that I can't further. I can get to a long reference that the classic tells me that there is no so

  • Create the executable JAR/JAD

    I have created an application and you want one of my friend (s) to install on his BlackBerry. I want to attach the application Jad/Jar file and send it by e-mail. Please suggest the best methods to create the JAR file for hassle free installation.