Calculation fields needed

Need to automatically calculate specific form fields similar to what is allowable in Adobe Acrobat Pro.  This capablity would allow for a more useful Pay Now option.  Currently our users are having to calculate their own payment amount. Would be an especially useful enhancement (if only for simple multiplication or addition between fields) if we could automatically calculate the amount payable.

Hi,
Thanks for the suggestion.  I suggest you post this to our ideas section, so others can vote for this.  We look at the ideas getting the most votes to help guide us on what features to add next.  Here's a link to the ideas section - http://forums.adobe.com/community/formscentral?view=idea
Thanks,
Todd

Similar Messages

  • Calculation fields need to hide $0 and 0% fields when null

    Adobe Live Cycle Designer 8.0
    I have my Before DIR% calculated by dividing (TotalDebts/TotalIncome*100) and have it show up as a percentage (ie 26% OR  31% instead of .26 or .31). I need it to show up blank if there isnt anything going on. Same for "After DIR" and "% Unsec to Inc". I also have another from with the same exact problem but it calculates a $0. How would make these 0's show up blank when no calculation is currenlty happening?  I am trying to get them to show up as blank so if needed I could print out the form and hand write it and NOT have the 0% show up.

    If you set the Pattern display on the calculated cell to allow zeros and/or null then if both of the numericFields are 0, then the calculated cell is blank; not 0. Just select the calculated cell that has the 0, then in the Object tab select the Field tab, and there should be a "Patterns" button you can click. Select "Display" from the drop down box after hitting "Patterns", and then check the fields "Allow Empty" and/or "Allow Zero". Should not display the 0 once you have those set.

  • Need Help with Average of a calculated field

    Good Morning ,
    In the cube that i built i have a calculated field "AvgAbandonTime"=round(([Measures].[C8]/[Measures].[C9]),0). C8 and C9 in the calculation are calculated fields in the DSV based off the fields from the Database.
    In the browser i'm having a problem. In the below sample data set , if you look i'm calculating the "AvgAbandonTime" per each location and this value is in seconds. C8 and C9 are the fields used in the calculation. For example C8/C9=11588/126=92
    (ROUNDED).Similarly for the other two rows. The problem is when it comes to the Grand Total , i'm expecting average of AvgAbandonTime over the 3 locations and that should be (92+16+73)/3=60, but where as what its doing is Summing all the C8 and all
    the C9 values and giving me the SUM(C8)/SUM(C9)=74. Please need help or advice.
    Thanks

    Thanks David,
    But no its not giving those values instead its giving
    C8
    C9
    Avg
    AvgAbandonTime11
    newcalc
    sum
    11588
    126
    92
    8191
    8191
    24753
    157
    10
    16
    157
    157
    24753
    62160
    857
    73
    16405
    16405
    24753
    GrandTotal
    73905
    993
    74
    99
    1.#INF
    24753

  • How to avoid duplications making a SUM calculated field

    Hi, I'm trying to resolve this problem;
    In my dataset (in a custom folder on the administrator) I have a list of tickets (with some attributes), and some of them are duplicated:
    For example
    Ticket_id     Group_id             Ticket_date                Resource_name          Ticket_status      
    5416          100000401       10/12/2007 7:10:31 am                Mr. A                 2
    5416          100000401       9/1/2008 11:00:44 pm                 Mr. A                 2
    57381         100000401       27/12/2007 11:37:11 am               Mr. A                 2
    57381         100000401       15/1/2008 9:33:12 am                 Mr. A                 2
    I want this duplication because I need it when I filter the dataset (using the Ticket_date) with two parameters:
    Ticket_date between lower_limit_date and upper_limit_date
    So, inside the report, regarding the ticket's number, if I take 2 records with the same ticket_id, I have a calculated field where I use the COUNT_DISTINCT and for each couple of tickets the count is always =1; in this way (inside the report) I have the following fields:
    Group_id           Count_tickects   Resource_name  
    100000401              2                    Mr. A                 This is OK !
    Now, if I want to count how many tickets have the status = 2 (it means they are closed), I want to obtain 2 and NOT 4
    I tried to use this calculation (Tickets Closed): SUM(CASE WHEN "Tickets Report #7 COMPL".Ticket Status Id = 2 THEN 1 ELSE 0 END)
    but I always had the result of 4...and this not correct, because the tickets are only 2...
    I also tried to use some analytic function using the OVER PARTITION BY, but I didn't obtain the correct result
    In other words I'd like to achieve this:
    Group_id           Count_tickects   Tickets Closed     Resource_name
    100000401              2                     2             Mr.AAny help will be appreciated
    Alex

    Hi Rod, thanks for the reply,
    I tried this calculation
    COUNT_DISTINCT(CASE WHEN "Tickets Report #7 COMPL".Incident Status Id = 2 THEN 1 ELSE 0 END)
    but it retrieves 1; it's right, because the result of the CASE statement is always 2 (the Ticket_status is always 2, 4 times), but this is not what I expect.
    I'd like to calculate how many tickets are effectively opened (Ticket_status = 2) and this result is *2*, because I have only 2 ticket_id (5416 and 57381); the problem is that inside the data set these two ticket_id's are repeated two times.
    I can't use "Hide Duplicate Rows" because this is only a layout solution (behind I have always the duplication); I can't use more than one aggregate function together because I have the error: Nested aggregate functions are not allowed...
    To resolve this problem, I think, I have to restrict the records which are processed by the CASE statement; instead of pass to the calculation all four records (twice the ticket_id 5416 and twice the ticket_id 57381) I have to pass only two records (one the ticket_id 5416 and once the ticket_id 57381).....but how....???
    Alex

  • How to change the column value which is coming from DO by a calculated field?

    Hi all,
    I want to change a column value based on my calculated field value. I have a column which is coming from DO which is based on External Data Source. I have a calculated field in my report. When there is any change in the calculated field then the column which is coming from DO needs to be changed. It means the DO needs to get updated when there is a change in the calculated field. Or like if the calculated field meets some condition then I need to change/update the same in the DO. This has to be done on the fly. the report should not submitted for this. when there is a change in the calculated column the DO column needs to get updated.
    Thanks,
    Venky.

    Ok, I've been a customer for very many years, I'm on a fixed retirement
    income.  I need to reduce my bills, my contract ends in  Dec. I will be
    pursuing other options unless I can get some concessions from Verizon.  My
    future son-in-law was given this loyalty plan, so I know this is a
    reasonable request.  My phone number is (removed)  acct number
    (removed)
    >> Personal information removed to comply with the Verizon Wireless Terms of Service <<
    Edited by:  Verizon Moderator

  • SSRS Using WHERE in a calculated field

    Hi All,
    Im having a real issue with something that seems like it should be easier than it is.
    In my tablix I want to add the expression =Sum(Fields!ID20.Value)-Sum(Fields!ID20.Value) BUT I need to determine if another criteria is met.
    EG - I want =Sum(Fields!ID20.Value WHERE [InOut]="In")-Sum(Fields!ID20.Value WHERE [InOut]="Out")
    Many Thanks for any help

    Hi LB79,
    In Reporting Services, Aggregate functions cannot be used in calculated field expressions, since the data for calculated fields will be based on individual rows not on group basis. As a workaround, we can directly add the expression to a textbox of the tablix
    instead of using that calculated field. For detail information, please refer to the following steps:
    Right click the text box which you want to insert the calculated field, then click Expression.
    In the Expression text box, refer to the following expression:
    =sum(iif(Fields!InOut.Value ="In", Fields!ID20.Value,0),"DataSet_name")-sum(iif(Fields!InOut.Value ="Out", Fields!ID20.Value,0),"DataSet_name")
    If there are any other questions, please feel free to ask.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Running total of calculated field in pivot

    VERSION: ORACLE 11
    TABLE:
    create table chart_detail (
    DIS        NUMBER,
    BLD_MO VARCHAR2(7),
    BLD        NUMBER(10),
    RPLC      NUMBER(10));DATA:
    insert into chart_detail values (60,'2011-03',0,2);
    insert into chart_detail values (150,'2011-04',10572,0);
    insert into chart_detail values (120,'2011-04',26449,5);
    insert into chart_detail values (30,'2011-04',0,1);
    insert into chart_detail values (60,'2011-04',0,7);
    insert into chart_detail values (90,'2011-04',0,9);
    insert into chart_detail values (120,'2011-05',5714,0);
    insert into chart_detail values (90,'2011-05',24557,1);
    insert into chart_detail values (60,'2011-05',0,4);
    insert into chart_detail values (30,'2011-05',0,0);
    COMMIT;EXPECTED RESULTS:
         2011-04                    2011-05               
    DIS     RPLC     BLD     TBLD     IPTV     RPLC     BLD     TBLD     IPTV
    30     1     0     37021     0.03     0     0     30271     0.00
    60     7     0     37021     0.22     4     0     30271     0.13
    90     9     0     37021     0.46     1     24557     30271     0.17
    120     5     26449     37021     0.59     0     5714     5714     0.17
    150     0     10572     10572     0.59               0     
    180               0                    0     
    TOTAL     22     37021               5     30271          PROBLEM: I need to have a running total of IPTV like in the above example. I can get the IPTV for each DIS/bld_mo but I don't know how to get the running total of it. In the script below I just used an example where I tried summing the IPTV like was done for build. I know it can't be done that way because IPTV is a calculated field in the query but if I substitute "APR_IPTV" with the formula for IPTV I get an error that window functions aren't allowed here. I do not know a way around this. I commented out the bad piece of code.
    PROBLEM SCRIPT:
    WITH  pivot_results  AS
      SELECT    dis
      ,    NVL (apr11_rep,  0)  AS apr11_rep
      ,    NVL (apr11_bld,   0)  AS apr11_bld
      ,    NVL ( SUM (apr11_bld)
                      OVER (ORDER BY dis DESC)
                    ,                 0
                    )        AS apr11_tbld
    ,      DECODE(NVL ( SUM (apr11_bld)
                      OVER (ORDER BY dis DESC)
                    ,                 0),0,0,ROUND(NVL(apr11_rep, 0)*1000/ NVL ( SUM (apr11_bld)
                      OVER (ORDER BY dis DESC)
                    ,                 0),2
                    ))        AS apr11_iptv               
    ,      NVL ( SUM (apr11_iptv)
                      OVER (ORDER BY dis DESC)
                    ,                 0
                    )        AS apr11_tiptv  
      ,    NVL (may11_rep,  0)  AS may11_rep
      ,    NVL (may11_bld,   0)  AS may11_bld
      ,    NVL ( SUM (may11_bld)
                      OVER (ORDER BY dis DESC)
                    ,                 0
                    )        AS may11_tbld
    ,      DECODE(NVL ( SUM (may11_bld)
                      OVER (ORDER BY dis DESC)
                    ,                 0),0,0,ROUND(NVL(may11_rep, 0)*1000/ NVL ( SUM (may11_bld)
                      OVER (ORDER BY dis DESC)
                    ,                 0),2
                    ))        AS may11_iptv
    ,      DECODE(NVL ( SUM (may11_bld)
                      OVER (ORDER BY dis DESC)
                    ,                 0),0,0,ROUND(NVL(may11_rep, 0)*1000/ NVL ( SUM (may11_bld)
                      OVER (ORDER BY dis DESC)
                    ,                 0),2
                    ))        AS may11_tiptv               
      FROM     chart_detail
      PIVOT     (  MAX (rplc)  AS rep
              ,  MAX (bld)  AS bld
              FOR  bld_mo   IN ( '2011-04'  AS apr11
                                             , '2011-05'  AS may11
    SELECT    CASE
            WHEN  GROUPING (dis) = 0
            THEN  TO_CHAR (dis)
            ELSE  'Total'
        END      AS dis
    ,    SUM (apr11_rep)  AS apr11_rep
    ,    SUM (apr11_bld)  AS apr11_bld
    ,    SUM (apr11_tbld) AS apr11_tbld
    ,    CASE
            WHEN  GROUPING (dis) = 0
            THEN  SUM (apr11_iptv)
        END      AS apr11_iptv
    ,    SUM (apr11_tiptv) AS apr11_tiptv
    ,    CASE
            WHEN  GROUPING (dis) = 0
            THEN  SUM (apr11_tpiptv)
        END      AS apr11_tiptv
    ,    SUM (may11_rep)  AS may11_rep
    ,    SUM (may11_bld)  AS may11_bld
    ,    SUM (may11_tbld) AS may11_tbld
    ,    CASE
            WHEN  GROUPING (dis) = 0
            THEN  SUM (may11_iptv)
        END      AS may11_iptv   
    FROM    pivot_results
    GROUP BY  ROLLUP (dis)
    ORDER BY  pivot_results.dis
    ;Thank you,

    Hi,
    So you know how to compute iptv for an individual row; the problem now is that you want to get a running total of iptv; is that it?
    The problem there is that computing iptv requires an analytic function, and analytic functions can't be nested. To get the results of nesting f (g (x)), where f and g are analytic funtions, you have to compute g in a sub-query, and then use the results as the argument to f in a super-query.
    Here's how to apply that to your situation:
    WITH  pivot_results  AS
         SELECT    dis
    -- April, 2011
           ,           NVL (apr11_rep,   0)  AS apr11_rep
           ,           NVL (apr11_bld,   0)  AS apr11_bld
           ,           NVL ( SUM (apr11_bld)
                                       OVER (ORDER BY dis DESC)
                          , 0
                          )               AS apr11_tbld
         ,      NVL ( 1000 * apr11_rep
                              / NULLIF ( SUM (apr11_bld) OVER (ORDER BY dis DESC)
                                          , 0
                   , 0
                   )               AS apr11_iptv
    -- May, 2011
           ,           NVL (may11_rep,   0)  AS may11_rep
           ,           NVL (may11_bld,   0)  AS may11_bld
           ,           NVL ( SUM (may11_bld)
                                       OVER (ORDER BY dis DESC)
                          , 0
                          )               AS may11_tbld
         ,      NVL ( 1000 * may11_rep
                              / NULLIF ( SUM (may11_bld) OVER (ORDER BY dis DESC)
                                          , 0
                   , 0
                   )               AS may11_iptv
           FROM     chart_detail
           PIVOT    (    MAX (rplc)  AS rep
                    ,    MAX (bld)   AS bld
                    FOR  bld_mo   IN ( '2011-04'  AS apr11
                                      , '2011-05'  AS may11
    SELECT    CASE
                  WHEN  GROUPING (dis) = 0
                  THEN  TO_CHAR (dis)
                  ELSE  'Total'
               END      AS dis
    -- April 2011
    ,           SUM (apr11_rep)  AS apr11_rep
    ,           SUM (apr11_bld)  AS apr11_bld
    ,           SUM (apr11_tbld) AS apr11_tbld
    ,           CASE
                  WHEN  GROUPING (dis) = 0
                  THEN  ROUND ( SUM (SUM (apr11_iptv))
                                          OVER (ORDER BY  dis)
                      , 2
               END      AS apr11_iptv
    -- May 2011
    ,           SUM (may11_rep)  AS may11_rep
    ,           SUM (may11_bld)  AS may11_bld
    ,           SUM (may11_tbld) AS may11_tbld
    ,           CASE
                  WHEN  GROUPING (dis) = 0
                  THEN  ROUND ( SUM (SUM (may11_iptv))
                                          OVER (ORDER BY  dis)
                      , 2
               END      AS may11_iptv
    FROM      pivot_results
    GROUP BY  ROLLUP (dis)
    ORDER BY  pivot_results.dis
    ;Output:
          APR11  APR11   APR11  APR11 MAY11  MAY11   MAY11  MAY11
    DIS    _REP   _BLD   _TBLD  _IPTV  _REP   _BLD   _TBLD  _IPTV
    30        1      0   37021    .03     0      0   30271    .00
    60        7      0   37021    .22     4      0   30271    .13
    90        9      0   37021    .46     1  24557   30271    .17
    120       5  26449   37021    .59     0   5714    5714    .17
    150       0  10572   10572    .59     0      0       0    .17
    Total    22  37021  158656            5  30271   96527As you can see, this is not quite what you wanted on the row where dis='150'. You asked for NULLS in the may11_rep, may11_bld and may11_iptv columns. You can get those results if you need them; just explain the rules that govern whether to display the values and when to display NULL.
    The way you posted the sample data and results, and the quantity of sample data were all excellent; it really helped me find a solution. Thanks.
    It would have also helped it you had explained how iptv is computed. Basically, iptv = 1000 * rep / tbld, right?
    It looks like most of this code:
    ,      DECODE(NVL ( SUM (may11_bld)
                      OVER (ORDER BY dis DESC)
                    ,                 0),0,0,ROUND(NVL(may11_rep, 0)*1000/ NVL ( SUM (may11_bld)
                      OVER (ORDER BY dis DESC)
                    ,                 0),2
                    ))        AS may11_iptvwas a way of avoiding divide by 0 errors; it would have been helpful if you had explained that.

  • Best Solution for Creating an Onlne Purchase order form with multiple calculation fields

    I am a bit confused.  Our school has a Forms Central account which works great for our registration forms but I need to find a solution for creating an online purchase form with multiple calculation fields - I know that forms central does not support calculation fields (too bad) but I know that Acrobat Pro does... soooo...
    Can you create the forms in Acrobat and then somehow integrate the advanced features into forms central?  Do they talk to each other?  Is this easy to do? .... I guess another way to putting it is can you create the forms in Acrobat including all of the advanced features for payment calculation and then host it online using Forms Central to manage and collect the data? (I guess that really is my question)
    Thanks (how does this compare to a solution like Formstack?)

    Hi, thanks.
    The naming convention was the consistant up until a point when I read that you need a '.' syntax (?!) - does anyone know if this is true?
    Attached is a version with Bernd Alheit's suggestion and with all the naming of the fields being consistant. It's still not working for me though after doing this and I'm stuck as to why, because I think it should work. I've also tried writing the calcualting line of code in the same manner that Bernd Alheit suggests before I came on here, and it wouldn't work then.
    As with any coding, it must be something to which I have done, but I can't see it anywhere
    Any ideas? Thanks for helping me
    Cheers

  • Date VS Date Time in Calculated Field

    I have a property for a patients records called Date of Birth. On the table defining it I saved it as a "date" type and It displays only
    the date on the screen as I would like. For some reason though when I needed a calculated field in the Medication record I added a property to the patient records table that concatenated two fields BirthDate and the Age. I used the following code and then
    added an other screen data item on the medication screen to pull the DoBA property up but got a Date/Time instead of just a Date.
    partial void DoBA_Compute(ref string result)
    // Set result to the desired field value
    result = "DoB:" + BirthDate + " Age:" + Age;
    //This is for the property "Date of Birth and Age"
    //I also used the following code to calculate "Age"
    partial void Age_Compute(ref int result)
    // Set result to the desired field value
    int age = DateTime.Now.Year - BirthDate.Year;
    if (BirthDate > DateTime.Now.AddYears(-age)) age--;
    result = age;
    Images

    I'm using cast instead of Convert.ToInt because the last round to value to upper int if value > 0.5 or to lower if value < 0.5 ( I don't remember now if equal goes to < or > ... read function doc ) while Cast to int do not round the value.
    In my code the day of the birthday
    still
    marks
    the
    previous
    age,
    from the
    day after
    one more year.
    by adding
    +
    1
    age
    increases
    by the
    day
    of the birthday

  • Calculated field hidden when field is blank

    This is actually similar to a discussion from a few months ago.Our forms are intended to be filled out online, printed and e-mailed, faxed, or snail-mailed. Many times the customer will simply print out the form and fill it out by hand. When I create forms with calculations the "$" or "0.00" appear; thus making it difficult for someone filling the form out by hand to work around those symbols/numbers. A few months ago, I had a similar situation involving percents and the gurus on this forum (Thank you, gurus!) helped me with the following code and it worked perfectly at hiding the calculated fields unless something was entered in the fields to be calculated.
    For a field with a format of "None" user a Custom validation script:
    if(event.value == 0) {
    event.value = ""; // set field to null;
    AFNumber_Format(0, 0, 0, "", "", true); // set format to number 0 decimals, no currency;
    } else {
    event.value = event.value; // keep value;
    AFPercent_Format(2, 0, 0); // set percent format 2 decimal places.
    This time, the problem involves simple numbers (not percent, not currency). I used the same logic and the fields actually show/hide like I want, but the numbers need to be formated with a comma separating the thousands and a decimal point with two digits after. I can't figure that out! Can someone please offer some advice? Thanks in advance for your help.

    Make sure you are using the correct quotation marks. Use either the double quotation marks or the single quotation marks and not 4 single quotation marks.
    if(event.value == 0) {
    event.value = ''; // set field to null (2 single quotation marks);
    Supress Zero

  • Using a "Sum" Calculated Field on a "Count" query column?

    Here's my query using the Query Report Builder:
    SELECT Col1, COUNT(Col1) AS Count_Column
    FROM Table
    GROUP BY Col1
    It generates a report that lists all the values of column
    "Col1" and how many times each value was used in Col1
    For instance, if Col1 contained the value 'A' 12 times, 'B' 6
    times, and 'C' 19 times, the report would generate this:
    A - 12
    B - 6
    C - 19
    What i need as a column footer is the total count of all the
    values, which in this case 12+6+19=37
    I am using a calculated field, setting the data type to
    Double, the calcuation to Sum, and the perform calculation on to
    'query.Count_Column'. Reset Field When is set to None.
    When I run the report, it doubles the last number in the
    report's Count column (19) and displays 38 on the page. I tested
    this with another column and it doubled the last number in the
    report as well.
    How can I get it to properly Sum my Count_Column?

    Hi,
    You need to check note 208366.1 which explains why totals can be blank. Without knowing the detail of you decode function it is hard to say what needs to be changed. Try putting a sum in front of the decode e.g.
    sum(decode(period, 'Jan period', value, 0))
    Hope that helps,
    Rod West

  • Sum calculated field in report

    Hi, I have a report that groups by employee then by machine. In this report I sum several fields, but need to sum a calculated field and can't figure it out. This is the calculation:
    <?( QTY_MOVED) div ( TIME +.001 ) div ( INVERSE + .001)?>
    This is a total field using a field that works fine.
    <?sum(current-group()/QTY_REJ)?>
    How do I incorporate the calculation in the <?sum(current-group()/.............I get errors if I just put in the calculation above.
    thanks!

    Thank you for your help. After taking your advice and getting it to work by messing around with the brackets, management has changed their mind on the calc. Now they want me to use this calculation:
    SELECT EMPLOYEE, SUM(QTY_MOVED), SUM(QTY_REJ), SUM(TIME), (nvl([b]sum(QTY_MOVED),0)/nvl(sum(TIME),0))/nvl(sum(INVERSE),0) eff ,'DIRECT'
    FROM VW_TIMETRACK
    WHERE START_DATE >= :BEGIN
    AND START_DATE <= :END
    AND WORK_ORDER <> ' '
    GROUP BY EMPLOYEE
    to get the average. Now the weird thing is, I can get the value in toad, and I can get it to output in raw xml data, but when I try to add the eff field right next to the sum(time) field in the word form, nothing shows up. Absolutely no data. But it is in the xml. I'm using <?sum(current-group()/EFF)?> , just like I am for <?sum(current-group()/TIME)?> . I've made it text, numeric, decimal. Nothing is coming out.

  • Sum of Calculated Field

    Hi,
    I am using 9.0.2.39.1 and am having trouble summing up a calculated field. I have a crosstab layout like so:
                           MTD               YTD              CURRENT YR
    2005                   $                 $                (decode function based on period)
    2004                   $                 $                (decode function based on period)
    2003                   $                 $                (decode function based on period)I put a grand total for MTD, YTD and Current YR, but it does not pick up the total sum for the Current Year calculated field. I then also tried a total just for the Current Year field, but it is just blank although that column has values for each row. Strangely the count/max..etc functions give me a value, just not sum. The calculation works perfectly just not the sum of it.
    Any idea what I am doing wrong???

    Hi,
    You need to check note 208366.1 which explains why totals can be blank. Without knowing the detail of you decode function it is hard to say what needs to be changed. Try putting a sum in front of the decode e.g.
    sum(decode(period, 'Jan period', value, 0))
    Hope that helps,
    Rod West

  • Create Calculated Field in PHP Form

    Hi,
    I'm trying to create a calculated field that will work out the average of ratings given during the input of a form. This field will then submit the average value with the form at the end (which is why I need the value to calculate before the form submits - i.e., as the form is filled in).
    I have found the following code (designed for HTML forms rather than PHP forms, but I'm hoping it might work). It doesn't seem to do anything - the field doesn't show any information. Help?
    <script language=javascript>
    <!--//
    function dm(amount)
      string = "" + amount;
      dec = string.length - string.indexOf('.');
      if (string.indexOf('.') == -1)
      return string + '.00';
      if (dec == 1)
      return string + '00';
      if (dec == 2)
      return string + '0';
      if (dec > 3)
      return string.substring(0,string.length-dec+3);
      return string;
    function calculate()
      Opp1 = 0;  Inv1 = 0;  Com1 = 0;  wlb1 = 0;  Com2 = 0;  Atm1 = 0;  Per1 = 0;  Inc1 = 0;  Rew1 = 0;  Env1 = 0;  Gro1 = 0;
      if (document.form1.Opportunity.value > "")
         { Opp1 = document.form1.Opportunity.value };
      document.form1.Opportunity.value = eval(Opp1); 
      if (document.form1.Investment.value > "")
         { Inv1 = document.form1.Investment.value };
      document.form1.Investment.value = eval(Inv1); 
      if (document.form1.Community.value > "")
         { Com1 = document.form1.Community.value };
      document.form1.Community.value = eval(Com1); 
      if (document.form1.WLB.value > "")
         { wlb1 = document.form1.WLB.value };
      document.form1.WLB.value = eval(wlb1); 
      if (document.form1.Communication.value > "")
         { Com2 = document.form1.Communication.value };
      document.form1.Communication.value = eval(Com2); 
      if (document.form1.Atmosphere.value > "")
         { Atm1 = document.form1.Atmosphere.value };
      document.form1.Atmosphere.value = eval(Atm1); 
      if (document.form1.Performance.value > "")
         { Per1 = document.form1.Performance.value };
      document.form1.Performance.value = eval(Per1); 
      if (document.form1.Inclusion.value > "")
         { Inc1 = document.form1.Inclusion.value };
      document.form1.Inclusion.value = eval(Inc1); 
      if (document.form1.Rewards.value > "")
         { Rew1 = document.form1.Rewards.value };
      document.form1.Rewards.value = eval(Rew1); 
      if (document.form1.Environment.value > "")
         { Env1 = document.form1.Environment.value };
      document.form1.Environment.value = eval(Env1); 
      if (document.form1.Groups.value > "")
         { Gro1 = document.form1.Groups.value };
      document.form1.Groups.value = eval(Gro1); 
      Totamt =
         eval(Opp1) +
         eval(Inv1) +
         eval(Com1) +
         eval(wlb1) +
         eval(Com2) +
         eval(Atm1) +
         eval(Per1) +
         eval(Inc1) +
         eval(Rew1) +
         eval(Env1) +
         eval(Gro1) ;
      document.form1.GrandTotal.value = dm(eval(Totamt));
    //-->
    </script>
    Any suggestions gratefully received.

    @uscart - Thanks for your thoughts. I think I may try and pursue the javascript option (considering how far I've gone with it) but don't quite understand your response. Does it matter if the input field isn't a text box? The fields are radio buttons (giving options 1-10), liek so:
      <input name="Investment" type="radio" class="star" value="1"/>
      <input name="Investment" type="radio" class="star" value="2"/>
      <input name="Investment" type="radio" class="star" value="3"/>
      <input name="Investment" type="radio" class="star" value="4"/>
    ...etc, etc, etc... for each of the input fields listed above.
    Where do I put the calculate() function? After each "option", or is there a different reference? And does it need to be added to the GrandTotal field as well (the field in which the calcualtion is to be displayed)?
    Thank you!

  • Calculated field in List not reaching workflow

    I have a list that looks up a value in another list.  I also have a calculated field in the list that finds the ID number from the lookup field by finding the ;.
    When my item created SPD workflow runs, the calculated field has invalid data (#Value!).  When I view the list the calculated field indeed shows me #Value! initially, but when I refresh the screen I see the ID number.  It as if the workflow
    is running before the calculated field has been calculated.
    I've tried pausing the workflow for 2 minutes to no avail.  I set the calculated field to show NULL if it could not find the ; in the lookup field, and then have the workflow wait until the calculated field no longer had NULL but the never stopped
    waiting.  And I don't see a way of using a string function in the workflow instead of doing it in the list as a calculated field.
    Why is this happening and how can I fix it?
    Please help.
    John

    Hi John,
    I tested the scenario per your last post, and the workflow and calculated column worked fine if I used the Pause for Duration step in the workflow(text is the field where the calculated column gets data and loop is the lookup column):
    In the third step it can log the ID obtained from the calculated column.
    The third step in the workflow runs faster than the calculated column, so we need to add a pause after setting the text field where the calculated column gets data.
    Best regards.
    Thanks
    Victoria Xia
    TechNet Community Support

Maybe you are looking for

  • Query similar to FBL5n but for a given period instead of a day

    R/3 transaction FBL5n displays open items for a customer on a given day . I have the bc infocube 0FIAR_O03, I m trying to figure out how to display the equivalent of FBL5n but for everyday of the period..

  • White lines on Screen... What's wrong with my iPod nano?

    Hello there! My iPod nano 4th generation has two white lines close to the bottom of the screen. I have reset the iPod but it doesn't remove them. Has anyone of you experienced this problem? Thanks!!! Appreciate it a lot!

  • Out of memory error when moving a event to external HD in FCPX...

       When attempting to move a massive (1.75TB) event to a different hard drive using the "move event" feature, I keep getting an "out of memory" diolouge box that prompts me to close any open programs and causes my computer to completely freeze.     I

  • Need Help Adding Flash Intro To Existing Site

    OK I'm helping a buddy of mine out and he's already got his sie built for him by someone else, the index file is .php. Now I've got this little Flash animation that we want to run first, then when it's done go to his website. When I try to add it to

  • IMac / Airport Extreme

    My new iMac has Airport Extreme. Currently I use the RJ45 jack to connect to my cable modem. I just purchased an Airport Express for the Airtunes feature. Can I enable Airport Extreme to link with the Express and still be wired to my cable modem? Or