Tax calculation based on the user in the box input and displaying the result.

Thanks to WhyIsThisMe for starting me on my first draft script & Jono! I'm almost there with my purchase requisition form (90% manufactured from the tutorial).  Everything works except for the taxable column

form.JPG

I can't understand the correct syntax to check the value of the checkbox in the column taxable and then do the math for the tax based on user input in the field % tax

(total * stateTaxPercent / 100)

Essentially, I want to make the calculation only the taxable = 1, and then display the cumulative tax in the tax field.

Should I use mouseup as trigger to perform the calculation of the tax and save the result as a variable and displays the variable in the tax field? Then if another taxable box gets checked, I could add the new calculation of the variable. Not sure whether in an elegant way to get there.

?

I would put the following text in the change event of each taxable check box (in formcalc):

If ($ == 1) then

tax = tax + (amount * 0,0825)

ElseIf ($ == 0) then

tax = tax - (quantity * 0,0825)

endif

(where 'tax' is what you called your total tax box and the 'amount' is what you called your box of price).

Tags: Adobe LiveCycle

Similar Questions

  • Creation of calculation based on the result of the drop-down list

    Hello. I hope that someone will be kind enough to help me with some Javascript because it seems that I am too blonde and middle ages to figure out by myself.

    I have a drop-down list box 'Member '. The Yes value is 0. The value is 10.

    Then I have three check boxes. "Day 1" value is 35. "Day2" value is 25. 'Dinner' value is 65.

    If this option is enabled, I want the sum of the check boxes, if they are checked. (for example, total if all checked = 125)

    If no is selected, the value of each check box rose 10. (for example, total if all checked = 155)

    I use Acrobat X.

    Thanks in advance.

    Due to the fact that you want to add a constant number of values if a given condition is met then you will need to use a custom calculation script.

    get the value of the fields

    var cMember = Number (this.getField("Member").value);

    var nDay1 = this.getField("Day1").value;

    var nDay2 = this.getField("Day2").value;

    var nDinner = this.getField("Dinner").value;

    define a varaiable for the sum

    var sum = 0;

    day 1 more SETTINGS

    If (nDay1! = "Off") the sum += (nDay1) Number + cMember;

    day 2 more SETTINGS

    If (Day2! = "Off") the sum += (nDay2) Number + cMember;

    more dinner SETTINGS

    If (nDinner! = "Off") the sum += (nDinner) Number + cMember;

    Event.Value = sum;

    Excel is easy if you would see Microsoft calculations.

  • A drop-down list can do the calculation based on the value selected in a drop down list?

    Form Acrobat X Pro Adobe

    Can I have a drop down list create a calculation based on the value selected in the menu drop-down?

    We have a set lunch and want the user to choose to be "A lunch', 'Lunch B'"C Lunch"or"just the milk. "

    It is for each of the 5 days of the week. There are therefore 5 drop downs, which have all the same 4 above choice.

    If the user chooses among the 3 lunches and then put $2.00 in the total box at the end of the line. If 'Just the milk' may put 0.50 in the box.

    The total area at the end of the line must keep a record of all 5 days and give a total.

    So if someone chooses lunch A LUN, sea and Sun and just milk for Tuesday and Thursday and then the total for this week must be $7,00

    Is it possible by using code or something?

    I did it in Excel, but we need it is an Adobe pdf file.

    TIA

    OK the total box has a 10 all the time to make it look like $ 2.00 for

    everything.

    Before even that I chose something there are 10 in the box.

    I am a newbie to Adobe scripting Total used VB/A .NET etc ' 1980

    However.

    Can you do any debugging in code?

    Initialize the sum

    var sum = 0;

    Make a loop on the drop-down list boxes and add the cost of the invoice sum

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

    Sum += getField("Week1Day"_+_i).value == 'just milk? 0.50: 2,00;

    }

    Set this field to the amount

    Event.Value = sum;

  • Auto fill cells with color based on the result in the cell

    Is it possible to automatically fill a color in an excel cell based on the result that is displayed in a cell

    for example, if the result is in (0.00 - 1.00 = green), (superior to-2.00 orange)...

    -1.00
    0.54
    -2.50

    Hi CP.

    If you use excel 2007
    Use the conditional format in the home TAB
  • Report based on the result of the sorting function?

    Dear all,

    I will make this issue in general terms:

    We have a report based on a query that reads data from a single table (P). It will take to provide a field more (X) in the report which is obtained using more than two tables (E, 1 m approx).

    I wrote a function that produces this extra field based on a join of tables E and P1. Please note that this function depends on the report query variables. This output is correct and provides all the necessary information, but it is necessary to sort the report based on the result of this function, i.e. the value of field X.

    Is this possible?

    I appreciate your comments.

    Note: I've tried incorporating pictures E, P1 in the request report (I can then sort on the required field) but gets reduced the number of lines in the report. This is because the join between the tables, P, E and P1 reduces the number of lines (which is not the correct result).

    Yes, it is possible. If you have ended up above a formula column.

    Create the formula column. For example, CF_SALARY_TOTAL. Place a level to the top of the query and set your desired sort (Asc/Desc)

    Hope this helps

    Hamid

    Move or

  • dynamic action turns an article based on the result, and checks the database!

    I use Apex 4.1

    I do not know how to accomplish the following:
    If a pick list is changed, a function is checked and based on the results of a another field is disabled or enabled.

    I created a dynamic action (change) that executes a PL/SQL code, now I need to disable the other element.

    the problem is that I can't save the dynamic action because of the sign #.

    example:
    Start
    HTP.p ("< script type =" text/javascript"> '");
    HTP.p ('$('#P35_FT_00010_DOC_NO').attr ("readonly", "true")');
    HTP.p ("< /script >");
    end;

    I tried document.getElementById, but an error occurs also when I try to save.

    I think the wrong way?... Help, please

    1. create a step forward (not the simple/standard one) dynamic action.
    2. create initially unconditionally (the wizard will not let you take the PL/SQL expression as a condition but we will go back and change it later)
    3 assume that TRUE from your PL/SQL will lead to disable the item, then choose 'Disable' and the item you want to disable.
    4. Once created, go back in the DA and change the status of PL/SQL expression and put your PL/SQL in there (suppose you have a function returns boolean called MY_FUNC and TRUE to him means disable).
    5 copy the DA in its entirety to a new DA will be FALSE to activate the element.
    6. Once copied, go into the new DA and change the status of PL/SQL to NOT (my_func).
    7 change the REAL action of the DA to activate the element.

    So now you should have two similar DAs... one for when MY_FUNC is true and disables the element, a when "NOT (my_func)" is true and allows the element.

    If you do not disable, you can run javascript instead to set readonly. It seems that this is kind of what you tried to do, but you seem to use a jQuery selector, I suppose that (I did not recognize your syntax to off the bat)?

    Try to use the javascript API instead Apex:

    if ($v('P35_EN_DIS_DOC') == 1 )
      $x('P35_FT_00010_DOC_NO').readOnly='true';
    else
      $x('P35_FT_00010_DOC_NO').readOnly='';
    
  • Calculation based on the box help please...

    I'm doing a text box run a calculation based on whether or not a radio button is checked or not.

    If the radio button named 'Built' in the group 'Type of Quilting' is checked, then the text box "By squirting the load" must find the value of the field "Total Square Inches" and multiply this total by 0.015 and show the new total in the text box as a monetary value, if the 'Casting' radio button is not checked the value in the field 'Charge of basting"should be"- 0 -".

    I can get the calculation that I want this:

    var v1 = getField("Total_Square_Inches").value; Event.Value = v1 * 0.015;

    But how to understand the function of the radio button and "- 0 -"?

    If the name of the field is built, the calculation script could be:

    (function () {}

    Get field values

    var v1 = getField("Total_Square_Inches").value;

    var v2 = getField("Basting").value;

    Set this field value

    If the check box is selected in function

    If (v2 = 'Off') {}

    Event.Value = 0;

    } else {}

    Event.Value = v1 * 0.015;

    }

    })();

  • Display of a field on the form of the user's profile based on the results of another field

    Hello

    I have a requrement in which I'm supposed to display a checkbox based on the selection of the value to the employee type drp down.

    Thus, for example, if the field of employee type is selected with a value of 'Entrepreneur', a box should appear on the user profile form. If the value is anythign to another aprt of the contractor, the form should not display this box.

    Any ideas if this can be achieved OOB or it would require customization to the JSPs?

    Thank you
    Aerts

    You can use ajax and DHTML to achieve this functioanlity. I've already implemented and it works very well.

    See you soon!

  • Branching based on the results of the quiz

    In this quiz once users get their final score on the results page I need them to be branched to one of the three pages based on this score.  If there was an option of pass/fail this quiz, I could use that in the quiz preferences and make sure that work for my situation, however I have 3 levels of recommendations based on their scores.

    In this quiz, if the quiz results between 11 / 0 correct they need to be directed to page X, if they got 12-15 correct they need to be directed to the page, and if they got 16 correct they need to be realized until the page Z.

    If there a widget or something that can help with this or can I write a widget to help with this?  Any ideas would be great.

    Thank you

    Hello

    I just create an example, always check the solutions. I have a quiz with a total score of 20 (you can also use percentages, but because you mentioned the points, I'll keep an absolute score), only default in this Quiz Question slides. I forgot to ask about this: hope, you have no other marked objects? In this case, the cpQuizInfoPointsscored system variable has the same value as the score indicated on the score slide and can be used in conditional action. Because it is not possible to trigger the action at the end of this slide to score, I inserted a short blade, labeled "Dummy" after the landslide of the partition, and trigger the action advanced to enter (or exit) this slide. The user will never see this slide if use you the entry.

    The action advanced, labeled Branching 3 decisions, mutually exclusive, one for the top, the middle and the low score. In this example, I scored the slides to create a branch with the same label that decisions: slides high, medium and low. In the screenshots you see 3 decisions, I never used the ELSE part, given that decisions are mutually exclusive. Try it! If you want to use percentages, use the cpInfoPercentage system variable

    Lilybiri

    PS, You need to provide something for users who have a rating lower than 12 so, I forgot to mention that, can be a 4th decision, better not to use the part of HERE. If you want to use the actions in the preferences, quizzes, success or failure, it would be more complicated, because you'll probably have to create both an action for acceptance and rejection. I would like to know if it's clear?

  • The Variable value based on the results of SQL query

    With the help of OBIEE 11.1

    Is it possible to set the value of a variable presentation of the results of a SQL statement?

    Scenario:

    I have 2 topics.

    SubjectArea1

    Text1

    Date1

    SubjectArea2

    Field1

    Field2

    UpdateDate

    I have an analysis that uses only the SubjectArea2.

    Using a dashboard quickly, the user must be able to select Text1 in the other topic area (SubjectArea1).

    Assuming that selection will be stored in a variable of presentation (SelectedText),

    The filter in the analysis should be something like

    Upper UpdateDate to @{SelectedDate}

    How can I set a variable (SelectedDate) using a SQL statement?

    Something like this:

    SELECT "Date1" TO "SubjectArea1" WHERE "Text1" = @{SelectedText}

    So the command prompt text selection should give a date that is used to filter the second review?

    If so:

    The prompt on SA1.textCol

    hidden analysis who is invited on SA1.texCol has SA1.dateCol in the criteria

    Analysis SA2.dateCol is filetered on basis of the results of another analysis (any value analysis hidden SA1.dateCol)

  • How to add dynamic items based on the results of a dynamic query?

    Hi all

    I'm quite new to ofa, here's my problem.

    I have a table 'interventions', each intervention have actions stored in the table "actions".

    I want to show the actions of an intervention in a list, based on the id of the intervention. the response ID value is dynamic, so does not know the number of shares that you want to display in the list.

    Can someone tell me the steps to create a region that has dynamic elements to display names of action?

    Thank you

    Kind regards

    Afaf

    Afaf,.

    Take a look on the link below to see how to create dynamic VO:

    Blog of Anil Oracle Application Framework: create VO when running at the controller or dynamically created VO

    You could add messageStyled text like the code below:

    OAMessageStyledTextBean newMessageBean = (OAMessageStyledTextBean) createWebBean (pageContext, MESSAGE_STYLED_TEXT_BEAN, null,"" ");

    Links to dynamically create elements below:

    Add columns to the table advanced in OA Framework Programatically by Extension

    OPS KNOWLEDGE HELPER

    Let us know if you get any errors when creating.

    See you soon

    AJ

  • Inside af AF:selectOneChoice: table sometimes does not display the appropriate values, based on the results of the query of the view object

    Hello

    I use jdev 12.1.2.

    I have a few components of af: selectOneChoice that is contained in an af:table element.  The table is extracting lines from database and display data.  Now here's the weird part: sometimes the component of selectOneChoice will have the correct value selected, and other times it will be just left unchecked.  I can verify that the data in the object view lines are indeed correct after I request them.  The LOV for soc components are properly set up (some are configured as static list display objects and some are set up as model driven lists based on display objects).  I have just completely puzzled me as to why they work sometimes and then not work at times even though I am following the exact same steps to reach that point in my application.  Someone at - he never meets this problem before?

    Thanks for reading.

    Problem solved!

    For anyone having this problem in the future: do not try to do a partial trigger on a table that is not in the visible panelTab.  The problem is that when my view criteria applying, I was refreshing the TWO tables.  This caused that was not visible to lose the selectOneChoice selection, while the other table was very good.  Remove the partial relaxation for the table that was not visible caused the data to be maintained properly during the exchange between the tabs and change the view criteria.  Thanks for the help again Ashish, stumbled on the real root of the problem, after following some of your suggestions.

  • Creating conditional actions based on the results of the quiz

    I have a quiz at the end of my captivate file and I try to get to show different based on images if you have passed the quiz, or if you failed. For example if you pass, I want to show an image of the tick, and if you do not have an image of the cross, on the results slide.

    I tried to create this by implementing a conditional action. I put the two images on the slide and they hid. Then I have a conditional action value:

    IF
    cpQuizInfoPointsscored greater than or equal to 70

    ACTION

    See the Image_tick

    ON THE OTHER

    See the Image_cross

    When I play the quiz or image shows that I have success or failure (the quiz is set to a 70% pass - there are 10 questions, and all are worth 10 points)
    I am new to Captivate so that any help would be appreciated!
    Thank you

    Each action must be triggered by 'something', which is an event. You must attach to an event, I suspect that the event on enter score slide is one that suits. Select the slide of score, look in the properties panel, tab Actions, perform actions on enter, choose the action.

    In addition, there is a difference between the system variable cpQuizInfoPointsscored and cpInfoPercentage. Personally, I would use the simpler cpQuizInfoPassFail:

    IF cpQuizInfoPassFail is equal to 1

    See the tick

    On the other

    See the cross

    Download the tables in these two articles:

    System variables in Captivate 8/9 - Captivate blog

    Events / Actions (Advanced) - Captivate blog

  • Run one or the other query based on the result

    Hi all

    Is there anyway that I can design this query to run only a subquery based on the returned results.
    select to_char((NEXT_CHANGE# - 1),9999999999999999) latest_change 
    from v$archived_log 
    where SEQUENCE# =(select nvl(min(SEQUENCE#),0) 
                                   from v$archived_log 
                                   where ARCHIVED='YES' 
                                   and APPLIED='NO')
    
    If the above subquery returns 0, then I would like to execute the query below. Is there any way to embed multiple queries like case conditions ?
    
    select max(SEQUENCE#) 
                                   from v$archived_log 
                                   where ARCHIVED='YES' 
                                   and APPLIED='YES'
    Thank you

    G

    Edited by: USER101 December 9, 2010 09:34

    Hello
    Use the operator to decode your subquery:

    Select to_char ((NEXT_CHANGE #-1), 9999999999999999) latest_change
    v $ archived_log
    where SEQUENCE # = decode ((select nvl (min(SEQUENCE#), 0)))
    v $ archived_log
    When ARCHIVED = 'YES '.
    and APPLIED = 'NO'),
    0,
    (select max(SEQUENCE#)
    v $ archived_log
    When ARCHIVED = 'YES '.
    and APPLIED = 'YES'),
    (select nvl (min(SEQUENCE#), 0))
    v $ archived_log
    When ARCHIVED = 'YES '.
    and APPLIED = 'NO'));

  • Hide/show elements based on the result of the existing function

    Hello

    I have a function that returns two values that are drawn from a process of application On Demand (thanks Shijesh!):
    function myAjaxCall()
    {
       var ajaxRequest = new htmldb_Get( null , &APP_ID. , 'APPLICATION_PROCESS=getStatus',0);
       ajaxRequest.add('P11_PATIENT_ID' , $v('P11_PATIENT_ID'))
       //notice the below line.. use of split function
        ajaxResult = ajaxRequest.get().split(',')
       $s( 'P11_CCSS_STATUS' , ajaxResult[0]);
          $s( 'P11_COPAY' , ajaxResult[1]);
    }
    I'm trying to hide/show the other two items (P11_COPAY_COLLECTED, P11_NO_COPAY_REASON) based on the return value for P11_COPAY.

    Is it possible to add an IF statement for the function to show the two elements only if the value is equal to 'Yes'?

    I tried this, but then the two values (P11_CCSS_STATUS, P11_COPAY) are not returned, much less any hide/show:
    function myAjaxCall()
    {
       var ajaxRequest = new htmldb_Get( null , &APP_ID. , 'APPLICATION_PROCESS=getStatus',0);
       ajaxRequest.add('P11_PATIENT_ID' , $v('P11_PATIENT_ID'))
       //notice the below line.. use of split function
        ajaxResult = ajaxRequest.get().split(',')
       $s( 'P11_CCSS_STATUS' , ajaxResult[0]);
          $s( 'P11_COPAY' , ajaxResult[1]);
    
    if ( $v ('P11_COPAY' == 'Yes' ) { 
         $x_ShowItemRow('P11_COPAY_COLLECTED');
         $x_ShowItemRow('P11_NO_COPAY_REASON');
    }
    else 
    {
      // Show Items 
    $x_HideItemRow( 'P11_COPAY_COLLECTED');
    $x_HideItemRow( 'P11_NO_COPAY_REASON'); 
    }
    }
    Any suggestion on how / if possible?

    Thank you
    Matt
    if ( $v 'P11_COPAY' == 'Yes' )
    should be
    if ( $v ('P11_COPAY') == 'Yes' ) 
    

    CITY

Maybe you are looking for

  • HP DesignJet 650 c on Windows 7 x 64 via LAN with JetDirect adapter

    Hello good people! I would like to know if a DesignJet 650 c (C2858B) with a JetDirect card can be installed via the LAN on a PC running Windows 7 (64 bit)? If Yes, could someone please advise on how to do it? Any help would be greatly appreciated. T

  • Persistent problems with wireless home network

    Hi, the problem started two weeks or more ago, when after the connection to the internet easily using our wireless network connection, my computer began to say that our domestic network was unidentified, then studied by troubleshooting my self but do

  • Touchpad became erratic on laptop COMPAQ 2000.

    The touchpad has become erratic during use - the cursor does not move exactly as you wish. As repair is expensive, I bought a mouse. But still, when you type, if the touchpad is hit by accident, then as everything can get it done - for example, highl

  • I have drunkgirlroom in my addresses and impossible to delete. I have no idea how it got there

    I read that others have this drunkgirlroom on their list of email addresses and cannot be removed.  I also didn't put it there. Please help me

  • Display the PIX ver 6.3 (4) config

    Hi all All of a sudden I'm more able to display the configuration file running a PIX 515 v 6.3 (4) in the usual way. In the past, after issuing the command "show execution", the PIX will be stop and ask "- More -" press a key to continue. So either I