Calculating Mulitple Fields

I have a form with 5 columns across.
1 column on Left side is called Quantity.
2 Columns (next to each other) on the Right side. One mark "Prices" & One Marked "Amount".
I want to be able to place in my Quantities. Email to my Vendor. Have my Vendor put in price per each under the Price column. Then the amount calculated for them and appear in Amount Column.
I might as well know how to get a Total Field to work on the bottom of the page. I will have 20 Lines to add up.
Thanks in advance for any help and Tips
Jack

I found the templates and choose one similar to my own document. I tweaked the template and seems to be working very well. I stumbled upon the templates by mistake. I thought yesterday if there were templates I could start with one of those. Glad I found them!

Similar Messages

  • Can I cause checking a box to add 1 to a calculated form field?  I have a field that sums the numbers entered in several previous fields and need to be able to add "1" if a checkbox is selected as well.

    Can I cause checking a box to add 1 to a calculated form field?  I have a field that sums the numbers entered in several previous fields and need to be able to add "1" if a checkbox is selected as well.

    I think it has something to do with the way the value of the check box is exported, but I'm not sure.  With nothing being exported to Data5, Data6 displays the sum of Data1-4 rounded down to the nearest whole number and updates automatically as Data1-4 are updated.
    Right now, assuming Data1-4 are 0, where data 5 is the output of the second example and any box is checked,  "1" is displayed in data5 but nothing is added to data 6. Selecting any other check box or deselecting that check box will cause data6 to add 1 even if data5 displays "0".  By way of example:
    Selecting Check box 16 results in Data5 displays 1 and Data6 displays zero.
    Then, if any or all of Checkbox17-20 are selected, Data5 displays 1 and Data6 displays 1.
    Then, if any or all of Checkbox17-20 are deselected, Data5 Displays 1 and Data6 displays1.
    Then, if Checkbox16 is deselected, Data5 displays 0 and Data6 displays 1.

  • How to use javascript in a calculated column field in SP2013

    Hi All,
          I'm trying to use the code below in a calculated column but i can't get it to work.
    any time i add it in it strips out all the quotes etc..and it doesn't show the open dialog.
    Any ideas how i can use this in a calculated column field?
    Thanks in Advance
       ="<div><a href='#'
    onclick='openInDialog(500,600,true,true,false,'http://www.SharePoint.com');'>MS
    SharePoint Site</a></div>"

    Your problem is with the single quotes which both open de onclick event and are used for the javascript string variable.
    You want " and need to escape those in a SharePoint string as ""
    So this
    ="<div><a href='#' onclick=""SP.UI.ModalDialog.OpenPopUpPage('https://office.microsoft.com/en-us/sharepoint/');"">MS SharePoint Site</a></div>"
    Evaluates to:
    <div><a href='#' onclick="SP.UI.ModalDialog.OpenPopUpPage('https://office.microsoft.com/en-us/sharepoint/');">MS SharePoint Site</a></div>
    Once SharePoint dumps the HTML code in the Client Browsers
    (provided you have set the Datatype of the Calculated column field to Number!)

  • How do I run a script so that the user does not have to click into and out of a read-only calculated numeric field?

    Hi all
    I have a read-only calculated field, and I want to build actions on it, dependent on what the answer to the calculated field is.
    I have used action builder, and it works, but only if the form filler clicks in and out ("exits") the field, which they didn't have to enter in the first place, because it populates as a result of a previous script.
    To be more precise, The questions asked before this field are:
    Date of submission (submitdate):
    Date of event (eventdate):
    Calculation occurs (days between event and submission), and answer is populated in a field called 'daysbetween'
    Now I have a set of conditions:
    If the daysbetween is < or = 14, then I want a message to come up saying ineligible to apply
    If the daysbetween is >14 and < or = 28, then I want a message to come up saying a fast track fee will be applied, and I want the fast track fee box to be populated, and I want the fast track fee box to appear.
    I used the action builder to get all of this to work, except that it only works if the user then clicks in and out of  the 'daysbetween' field, which they shouldn't have to, because it's already calculated for them
    I feel like I have to put this script in an earlier field...but I don't know where - action builder won't let me do it in the 'eventdate' field
    Thanks in advance

    Put a shift register on the border of your loop. Have a case statement that contains the "Get time" function in one case of the case statement. Make that case = 3 and wire the loop iteration to the case selector. Have the time value loaded onto the shift register in the "2" case (interations count from zero), have the shift register passed through on all others ("Default"). Then subtract this time from current to get elapsed time. You probably want to put the subtraction/comparison in a "sub-case" in the "default" that only is valid for interations > 3 or you will get some really ugly "times" until the shift register is loaded, or you could initialize it from outside the loop with the time, but this will cause it to show elapsed times from the beginning that suddenly jump back to a low number after iteration 2.
    P.M.
    @ Corning? Which one? I was doing LabVIEW at Corning back in '96
    Message Edited by LV_Pro on 09-23-2005 10:07 AM
    Putnam
    Certified LabVIEW Developer
    Senior Test Engineer
    Currently using LV 6.1-LabVIEW 2012, RT8.5
    LabVIEW Champion
    Attachments:
    elapsed time.vi ‏24 KB

  • Cannot select fields for calculating other fields~

    Help -- I am tryiing to get certain fiels in a form to calculate based on selection of other fields.  The fields to be selected already have values in them.  (The same format I have used for several years, just new set of forms)
    I get through the point of setting up the field properties to calculate and I select Sum of...   Then it simply will not let me select any fields to use for calculations -- unless I select all fields.
    Please -- this is time sensitive and urgent any help responses needed and welcome!

    Sounds like you are having issues with Acrobat and not FormsCentral. You would get a better help if you post your question on the Acrobat's forum
    http://forums.adobe.com/community/acrobat/forms
    Gen

  • Trouble calculating empty fields

    I have a calculation (script below) where DN or DV are not always part of the sum. Trouble is both DV and DN have to be filled in to get the result.
    How can I script these 2 fields to where one or both are calculated?
    SUM=(PD1*DN*DV[WD1*CT])/BPY

    Hi. Thanks for your previous responses.  I'm getting an error msg when I open this form in Reader and start entering info into the fields that are included in my calculation. Here's what the error  box says:
    Script failed (language is formcalc; content is xfa[0].form1[0].#subbform[0].WD1[0])
    script=
    Sum(PD1*DN/DV[WD1*CT])/BPY
    Error: arithmetic over/underflow.
    Can you tell me what this means? I can still get the result I want, but each time I enter a number into one of the calculated fields I get this error msg. I click OK in the error msg and can continue.
    Thanks!

  • Calculating 2 fields without a script error.

    Is there a way to make a calculation of two fields not calculate until the 3rd field is reached.  I have a calculation that takes (field1/field2)*100.  Once the user puts in field1, it throws a script error, which is annoying.  Anyway around this???
    Thanks for your help.

    You need to test to make sure there is a value in the fields first.
    Using FormCalc:
    if (HasValue(field1) and HasValue(field2)) then
        $ = field1 / field2 * 100
    endif
    Or JavaScript:
    if (!field1.isNull && !field2.isNull) {
         this.rawValue = field1.rawValue / field2.rawValue * 100;

  • Calculating three fields

    Good morning everyone. I need help with the  following scripts I had written. It is a calculating script, and I did place it on the exit event of the fields as the Amount1 field is readOnly. I do not know why it is not working. Please, can someone on this forum help out.
    Thanks
    Lucpaan
    Here is the script:
    if 
    (amount1.rawValue>""){
    amount1.rawValue
    = (ccard1.rawValue + atmadv1.rawValue + atmfees1.rawValue);amount1.rawValue
    =amount1.rawValue;}
    else 
    {amount1.rawValue
    ="";}

    Send the form to [email protected] and I will have a look. Please include a description of the issue in the email.
    Paul

  • Creating a  calculated total field in BIP

    Hi,
    Hope this isn't a stupid question. I have have a SQL data model in BIP (BI Publisher) which displays a percentage of the number of withdrawn students at our university against the total number of students.
    The report is broken down by department...so each row has a percentage calculation against it to show how many students have withdrawn for that year (which is parameterised).
    The person requesting the report wants a headline percentage...so essentially a calculated field doing (number withdrawn students/total number of students) * 100. I can't use the the default total settings as I don't want an AVERAGE of the column. We have 7 different departments with very different numbers of students/level of withdrawals so none of these are accurate.
    Tool for doing calculated fields seems a bit difficult (in that it seemingly only allows one mathematical operation -  a division OR a subtraction etc.) and doesn't allow you to put in a straightforward formula??
    Any suggestions??
    Thankyou,
    Alex

    FormsCentral was originaly created to create online form. Attachments are supposed with online form.
    We added the ability to save your form as a PDF but unfortunately the way that Acrobat and Reader submit attachments is not compatible with the FormsCentral service.
    If you want to manage your data collection yourself you can create a PDF using FormsCentral (without a submit button) and then add attachment fields to the PDF in Acrobat. You will also need to add a Submit button to your form in Acrobat. You can set it up to submit the PDF to your email address including attachments. For help with Acrobat Forms you can look at the Acrobat form forum
    http://forums.adobe.com/community/acrobat/forms
    To edit a PDF, created in FormsCentral, in Acrobat you might want to look at this post :
    http://forums.adobe.com/docs/DOC-3661
    Gen

  • Why is my calculated number field turning to a 10-place decimal?

    I have 3 integer fields. 2 are user-entered as numbers with 0 decimal places ("3003" and "3004". The third is a number with 2 decimal places, and runs a Simplified Field Notation calculation "3003 / 3004". When I open the fillable doc in Reader, the calculated field is already set at 1.00, with no input in the first two fields. When I input the first two numbers as 126 and 26, I kept getting the calculated field returning as 0.994647235478. That lasted for a couple days. Now, the return is always 1.00 no matter what I do.

    The problem is you've used numbers for your fields names. How is the script
    supposed to know if "3003" is a number or the name of a field? You need to
    either change the names of your fields, or use a custom calculation (which
    is a better idea anyway, actually, because you need to make sure that the
    value of the denominator is not 0)...
    Try using something like this as your custom calculation code:
    var v1 = +this.getField("3003").value;
    var v2 = +this.getField("3004").value;
    if (v2==0) { event.value = ""; }
    else event.value = v1 / v2;

  • Value of Multiple-Selection List box is not appearing "calculated value" field of it

    Hello,
    We have created one selection list box using control "Multiple Selection List Box", where user can select one or more values.
    We have created one view in InfoPath form, which have calculated value of fields(just showing purpose and printing purpose this view has ben created).
    In this when we try to show calculated value of field is of Multiple Selection List Box, it's showing as "Off".
    Could you please help us out.
    Thanking you in advance.
    Regards,
    Jayashri

    Hi,
    Thanks for your sharing! It will be beneficial to others in this forum who meet the same issue in the future.
    Wendy
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Acrobat Pro Calculating form fields lose functionality after enabling document for Reader

    I have a problem that continues to come up increasingly. I thought I had found a work-around on some forums, but it is still causing trouble. Im hoping you can answer the question.
    I am creating a form that requires simple calculations (sum and add). I can get these calculations to work just fine. However, as soon as I enable the document for Adobe Reader, the form seems to get amnesia. It loses the ability to calculate. When I go into the fields again to look at them, they still show that they are supposed to calculate, but arent working. I have to clear the calculations and completely reset them all in order to get them to function again, but as soon as I save this enabled doc, it loses its functionality all over again.
    Frustrating.
    I did find a work-around on a forum, but have only gotten it to work once. It had something to do with closing and saving the document, then reopening it before entering the calculations.
    Is there a clear-cut solution to this problem? The forums were rife with people experiencing the same frustrations.
    Thanks ahead of time for your assistance.

    Nathan,
    It's fairly straighforward to set up a custom validation script for this, but it might not be immediately obvious how to do it. I'll use your form as an example. In it, you have a number of rows with a Quantity field where the user enters how many items are needed, a Price field that has as its default value the price for the item, and a Total field which is a calculated field and should be the product of the Quantity and Price fields. The only variable in the calculation is the value of the Quantity field, so this will be easy.
    The Validate event of a field gets triggered when the field value is committed. This happens when the user enters a value and presses Enter, Tab, clicks outside of the field, etc. What the script should do is take the value the user entered, multiply it by the value that's in the Price field, and set the value of the Total field. The script could look something like:
    (function () {
        // Get the value of this field, as a number
        var qty = +event.value;
        // Get the value of the Price field, as a number
        var price = +getField("PRICE.0").value;
        // Calculate the total
        var total = qty * price;
        // Set the value of the Total field if not zero,
        // otherwise, blank it out
        getField("TTL.0").value = total ? total : "";
    What you really should do, however, is set up a document-level JavaScript (Advanced > Document Processing > Document JavaScripts...) that contains a function you can call from the QTY field of each row. The function will determine which row should be affected based on the field name that triggers it. Something like:
    function calcTotal() {
        // Get the row number from the field name
        // of the field that called this function
        var row = event.target.name.split(".").pop();
        // Get the value of the field that called this function, as a number
        var qty = +event.value;
        // Get the value of the Price field, as a number
        var price = +getField("PRICE." + row).value;
        // Calculate the total
        var total = qty * price;
        // Set the value of the Total field if not zero,
        // otherwise, blank it out
        getField("TTL." + row).value = total ? total : "";
    Than all you have to place as the custom Validate script of each of your QTY fields is the following:
    calcTotal();
    Also, make sure that you remove any calculations that you've set up on the Calculate tab of each TOTAL field. Now that the total fields do not rely on automatic calculations, it does not matter that the document is missing its field calculation order array, though this bug REALLY needs to be fixed. You should consider reporting it to Adobe. I will report it too.
    Note that this code assumes the QTY and PRICE fields are numeric fields, meaning they will either be blank or contain a valid number. You've ensured this by setting up each with a Format category of Number.
    George

  • Calculating Date Fields in SQ01

    Hi Friends,
    I'm new to SAP so I apologize if my question sounds rudimentary.  I've created a query in SQ01.  I would like to be able to report on data from the current year regardless of the year.  My ultimate goal is to schedule the query to run as a batch job so I never have to touch it again.  Within my query I created a custom calculation field from which I can enter a formula for the date, however, it seems that I cant get the syntax correct. 
    Any direction would be appreciated.
    Thanks,
    Olyn

    Thanks Pratik for your response. There are two things which I would like to clarify with you before proceeding with this development.
    1> Is there a standard way by which we can control this requirement (mean without development) ?
    2> We are using EP 6 (Netweaver 2004s). If we do the custom development as suggested by you in CRM GUI, does this change reflect directly in PCUI? or do we need to do something in EP to reflect this change?
    Appreciate your inputs.
    Thanks
    Kumar

  • Calculating a field with a minimum for answer?

    Hello all -
    I have a product that costs $22 per thousand. I have a field for quantity, and a total field.
    Right now I have it set up like this:
    Field 1: "Qty 3" - customer enters desired qty
    x
    Field 2: "22" - hidden, used for multiplier
    x
    Field 3: "001" - hidden, .001 used for multiplier to give total price.
    My problem is that the minimum price is always $22. How do I make the total say: "If total is < or = 22, then 22. Else, Total."
    Thanks. No idea about javascript...

    You can use the following as the field's custom Calculate script:
    (function () {
        // Get the quantity
        var v = getField("Qty 3").value;
        // Set the price per thousand
        var costPerK = 22;  // Cost/thousand
        // Set the minimum cost
        var costMin = 22;
        // Calculate the total cost
        var costTotal = v * costPerK / 1000;
        // Set this field to the total cost if it's more than the minimum, otherwise use the minimum
        event.value = (costTotal > costMin) ? costTotal : costMin;
    You don't say what you want to happen if the Qty3 field is blank. If you want the calculated value to be blank, add this after the line that gets the quantity:
    if (v == 0) {
        event.value = "";
        return;

  • Formula calculated database field tries to insert null

    Good Morning,
    I have 3 database text items Amount , rate and result.
    I input the two values (Amount and rate) and using the formula property "result" gets the calculated value.
    On display all the values are shown correctly but when trying to save my information the text field "result" is trying to insert null.
    Any suggestions?
    Forms 11g
    Thank you in Advance

    794018 wrote:
    Good Morning,
    I have 3 database text items Amount , rate and result.
    I input the two values (Amount and rate) and using the formula property "result" gets the calculated value.
    On display all the values are shown correctly but when trying to save my information the text field "result" is trying to insert null.Formula item should not be database item. And also inserting result column value into database is not good idea.
    Then after if you want to save it. create result database item and write trigger (When-Validate-Item) on both amount and rate filed and at trigger code, write
    :result:=:amount*:rate;To display the result on form, create non database item and change property to formula and write the formula.
    Hope this will help you
    If someone's response is helpful or correct, please mark it accordingly.

Maybe you are looking for