Is it possible to convert excel function if (and a custom calculation script

Our field staff use many Excel files for project documentation.  Our organization moves for iPad instead of laptops and we found that a PDF file to be filled on-line is a great resource for our staff.  I have created several of these forms that contain multiple lines and I just starting to learn how to write custom calculation scripts.  I have a more complex than most calculation and I don't know if this can be written in script.

= IF (I6 < 0.7, G6 * 0.8, IF (AND (I6 > = 0.7, I6 < 0.8), G6 * 0.85, IF (AND (I6 > = 0.8, I6 < 0,9), G6 * 0.9, IF (AND (I6 > = 0.9, I6 < = 1,1), G6 * 1, IF (AND (I6 > 1.1, I6 < = 1,2), G6 * 1.1, IF (AND (I6 > 1.2, I6 < = 1.3), G6 * 1.15, of"extra work"))))))

I6 is OverdepthRow1

G6 is WithDowelsRow1

I think I understand how to get started

var v1 = get.thisField("OverdepthRow1").value;

var v2 = get.thisField("WithDowelsRow1").value;

if(v1<0.7) {}

var result = v2 * 0.8

Event.Value = result}

ElseIf (v1 > = 0, 7 - now I don't know what to do!)

I hope that I used the correct brackets and braces in the right places.

I appreciate your help and your advice.

Thank you

Rhonda

I'm sorry, I made a mistake with the first two lines. I have corrected a problem but introduced another. They must be:

var v1 = + getField("OverdepthRow1").value;

var v2 = + getField("WithDowelsRow1").value;

Tags: Acrobat

Similar Questions

  • If/Then converted to a custom calculation Script

    Can someone help me convert = IF (A2 - A1 > 0, 0, A1 - A2) in a customized for use in an Adobe form calculation Script?

    Thank you!

    If A1 and A2 are field names, then the custom calculation script might look like:

    (function () {}

    Get the field values as numbers

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

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

    Set the value of this field

    Event.Value = A2 - A1 > 0? 0: A2 - A1;

    })();

  • Is it possible to use formulas (for example 'if' or VLOOKUP functions) in the "custom calculation Script?

    I'm working on a PDF form fill converted from MS excel. It is for others to use who do not have MS excel required to use my spreadsheet.

    1. I would like to know, how can we have complex formulas being the custom tab calculation script calculate under properties in a menu of cell?

    2. where can I find it that the formulas will work in the calculation script custom as well as the format of these formulas work properly (tutorials would help)?

    I tried to write an 'if' function but I get and error so I guess that is functions do not work in the script, or there is a different format of spreadsheet standard formats.

    Bruce

    .

    In this case the loop would be:

    for (var i = 0; i)< 8;="" i="" +="1)">

    sum += + getField("Total."_+_i).value;

    }

    So initially, the counter i is zero, so the domain name used with the getField method is:

    'Total': + 0, which results in the string "Total.0". At each iteration, the variable i is incremented by 1, so the following field names are the following:

    "Total.1".

    "Total.2".

    'Total.3 '.

    'Total.4 '.

    'Total.5 '.

    'Total.6 '.

    "World.7.

    The script gets the value of each field, it converts numbers and adds the number to the cumulation.

  • Convert the IF function in the custom calculation Script

    Can someone help me with 'IF(Line7<Line8) Line7, framework8' conversion in a custom calculation Script?

    var L7 = Number(this.getField("Line7").value);
    var L8 = Number(this.getField("Line8").value);
    event.value = (L7		   
  • 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.

  • Conversion of excel in the calculation script formula

    How to convert this excel formula in the calculation script in pdf format?

    = IF (K10 = "PRF1120", 13, IF (K10 = "PRF1020", 10, IF (K10 = "PRO1020", 8, IF (K10 = "PRF1140", 5, IF (K10 = "ACC 1020", 3, IF(K10="PRO1080",4,""))))))

    The custom calculation script should be something like:

    Get the value of an input field

    var sVal = getField("K10").valueAsString;

    Set the value of this field depnding on the value of the input field

    switch (sVal) {}

    case 'PRF1120 ':

    Event.Value = 13;

    break;

    case 'PRF1020 ':

    Event.Value = 10;

    break;

    Repeat for the other possibilities

    by default:

    Event.Value = "";  This field blank

    }

    More information about the JavaScript statement switch are available in any decent JavaScript reference. Replace "K10" in the first line above with the actual name of the input field.

  • How to create an 'if' function in a calculation script custom?

    I need to take a simple "value is the sum of" and to ensure that if a field is less than 1 then the result of the formula is equal to "0".

    For example, here is a simple "SumOf": script

    Encourage Bns.26, time Bns.26, Spec Bns.26.

    Now converted to a custom calculation script:

    event.value = ((this.getField("Time Bns.26").value) + (this.getField("Incent Bns.26").value)) + (this.getField("Spec Bns.26").value);
    

    Where the time SNB is calculated by looking at another formula of field Hours26 using a special to calculate the premium.

    I would like to add something like an 'if' function to the script so that if the Hours26 field is less than 1 then the output of the script is equal to '0 '.

    I have already tried:

    var row = this.getField("Hours26").value

    var value = 0

    If (< 1 grade) {}

    value = 0

    }

    another (rank > 0) {}

    value = ((this.getField_("temps_Bns.26").value) + (this.getField "(Incent_Bns.26").value ")) + (this.getField ("Bns.26") .value Spec);

    }

    Event.value = value

    But the error: SyntaxError: missing; before statement 7 to line 8:

    Thanks for any help.

    Bruce

    Try this:

    var row = this.getField("Hours26").value;

    var value = 0;

    If (rank< 1)="">

    value = 0;

    } else {}

    value = ((this.getField_("temps_Bns.26").value) + (this.getField "(Incent_Bns.26").value ")) + (this.getField ("Bns.26") .value Spec);

    }

    Event.value = value;

  • Convert Excel to PDF using specific fonts that before shift ends with missing text

    Hello, I hope someone can help out me.  I have a problem with the conversion of an Excel specific document to PDF using Acrobat 6.0.6.  Whenever this document is converted to PDF, on a specific computer, there are missing lines of text.  The text font is avant-garde.  I can change the font to something like Arial and it allows you to convert very well and all text will be shown in the PDF file.

    I have already reinstalled Windows on this PC with its strict necessary and of course the problem persists.

    The font of Vanguard is installed through Adobe Type Mangager Light 4.1.  The fonts are Post Script. PFB.  I have a second and third PC with the same configuration and these other two can convert Excel to PDF using Acrobat 6.0.6 with no problems (using the same Avant Garde font).

    I can uninstall and reinstall Acrobat 6.0.6 and this will fix the problem temporarily, but eventually he'll come back in a day or two.

    Is there anything that anyone can think that would cause this problem to occur?

    It is possible that you have to install the MS Hotfix here:

    http://support.Microsoft.com/kb/952909/en-us

  • Is it possible to convert the recovery CD into Windows installation CD?

    Hello

    I bought a laptop satellite and partitioned the hard drive!

    The problem now is that if I want to install windows mce 2005 again the reovery cd deletes all information of hard disk partition!

    My question is: is it possible to convert the toshiba recovery cd/DVDs in a normal working windows installation cd?

    Or is it possible to extract the image (.tpa /.000.001.002,.003,.004) files so that I can easily burn it to cd and copy the files extracted to the hard drive?

    I hope someone can help me!

    THX

    Chris

    Hello

    Something like that is not possible. On the recovery of the media it is an image that cannot be split. As far as I know with CD recovery facilities, it is possible to install the OS on the first partition (if several available). You can also create own partitions.

    Please carefully check the menu at the beginning of the procedure of collection facilities.

  • G8D94PA #ACJ: is it possible to change the function of the FN keys?

    Hello

    I sometimes use windows 7 32-bit due to my software dependency. in some software I have to use fn keys (F1 to F12) frequently with the combination of other keys. It is possible to enable the functionality of the fn keys as from now on if I have to use F5, so I use FN + F5 combination. So in this software I have to use F2 to F7 & I have to press CTRL + ALT + FN + F2 to F7.

    Please share any solution...

    Hello

    Shut down the laptop.  Tap away at the esc you key start Notepad to open the Start Menu.  Select the Bios ( f10 ) option, and then change the figure in the document at the following link.

    http://support.HP.com/us-en/document/c02035108

    Kind regards

    DP - K

  • Is it possible to convert Sidewinder Force Feedback wheel USB device?

    Original title: sidewinder force steering wheel feedback

    I have a fairly old sidewinder force wheel sterring feedback, which is a plug connection, not usb.  Is it possible to convert / and if you also think that it will work?

    Hello
     
    I doubt if this would be converted to USB connection since it's an old device that is compatible with XP only. For the best experience in games, I personally suggest you to upgrade the perimeter game, for example, Microsoft SideWinder Mouse.
    For more information on this product, please see the following site:
     
     
    If you have any suggestions for us, you can post them here .
     
    Aziz Nadeem - Microsoft Support

    [If this post was helpful, please click the button "Vote as helpful" (green triangle). If it can help solve your problem, click on the button 'Propose as answer' or 'mark as answer '. [By proposing / marking a post as answer or useful you help others find the answer more quickly.]

  • Is it possible to convert the T61 system so that it can use an infrared remote control?

    Is it possible to convert the T61 system so that it can use an infrared remote control?

    Canon and many other manufacturers of consumer electronics, provides instructions on the operation of the optional accessories in the manual of instructions for the accessory.  Manual user for the primary device will usually include a page that lists compatible accessories that are available for the device.

  • Is it possible to trigger a function Javascript C++ QML?

    Is it possible to trigger a function Javascript C++ QML?

    Just look at the section of signals and slots that documentation for examples of how to define and send signals of C++. Then in your QML, where you have exposed your C++ object as a property of context (named, for example, "foo"), you would foo.signalName.connect (myJsFunction) in a certain place like maybe onCreationCompleted. Connects the signal to the function, and when it is executed will be called the JS function.

    In short, the real connection between the two is trivial, as long as you already have all the side "C++ object and signal and exhibitors being C++" processed things.

  • Is it possible to hide a conditional function in responsibility. Say it together a small number of users, I need the function display and for some users, it must be hidden.

    Is it possible to hide a conditional function in responsibility. Say it together a small number of users, I need the function display and for some users, it must be hidden.

    Hello

    The normal thing to do is to create a similar additional responsibility and using Exclusions to 'hide' the features you want.

    Then assign it to restricted users.

    Kind regards

    Bashar

  • I'm subscribed to creative cloud in November and I am newly a student. Is it possible to convert my subscription to pay the price "student"?

    I'm subscribed to creative cloud in November and I'm newly student since January. Is it possible to convert my subscription to pay the price "student"? I searched but I can't find the answer. Thank you!

    First of all, contact Adobe to cancel your current subscription

    Chat/phone: Mon - Fri 05:00-19:00 (US Pacific Time)<=== note="" days="" and="">

    Don't forget to stay signed with your Adobe ID before accessing the link below

    Creative cloud support (all creative cloud customer service problems)

    http://helpx.Adobe.com/x-productkb/global/service-CCM.html

    Second, Adobe for education... Start here https://creative.adobe.com/join/edu

    Educational https://creative.adobe.com/plans?plan=edu

    FAQ https://helpx.adobe.com/x-productkb/policy-pricing/education-faq.html

    When you purchase a subscription to education, the terms you "click to accept" should be clear about the first/last years

    -Intro price http://forums.adobe.com/thread/1448933?tstart=0 one can help

    http://www.Adobe.com/products/creativecloud/students.edu.html

    http://www.Adobe.com/education/students/student-eligibility-Guide.edu.html

    Redemption Code https://creative.adobe.com/educard

    Proof of ID http://www.adobe.com/store/au_edu/academic_id.html

Maybe you are looking for

  • Skype sends all the other sounds of PC speakers

    I want to HP I bought in September. Recently, when you listen to music or play games or something of the kind using earphones, all goes well. However, when I enter a Skype call, all sounds goes to my speakers on board and juice that the Skype call is

  • Satellite A500-10F - HDD protection freezes the machine

    I did a clean install of Windows 7 Professional 64 bit on my Satelite A500-10F. It does seem however to all the drivers for it. There is a problem with the HARD drive protection. When she is supposed to trigger the whole machine freezes and I have to

  • HP 4500 all in one envy

    Hello.. Is it possible to make a print from my ipad or iphone in black and white...? Concerning Kirsten Jensen Bach Denmark

  • Failure in Windows Microsoft Office updates

    Updated KB2289158, KB234035, KB2344875, KB2345043, KB2413381, KB2344993, KB979538. Do not install and cause my computer time to set up and then do not install. Is it possible to completely remove these. Also my Microsoft Office Home & Student 2007 no

  • Code 80072EFE ALSO IT ME LEAVES DO NOT updated EVEN IN TROUBLESHOOTING

    Remember - this is a public forum so never post private information such as numbers of mail or telephone! Ideas: Code 80072EFE ALSO IT ME LEAVES DO NOT updated EVEN IN TROUBLESHOOTING