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;

Tags: Acrobat

Similar Questions

  • How to render components based on the value selected in a list of values

    Hello
    I created a form of the ADF. I have a drop down that is a list of values. I want to toggle certain fields based on the values selected in the menu drop-down. Could you please let me know how to do it in the ADF?

    Kind regards
    Murielle

    Hello

    It should work. It is important to note that in case you use a component selectOneChoice for category then the value returned by #{bindings. Category.inputValue}
    is the index of the selected value in the list and not the value auto. To get the value, you must use ' #{bindings. " Category.attributeValue}"in the disabled state.

    If the problem is no display of code in your page to take a look.

    Gabriel.

  • How im can extract the value of the persistence of virtual machine disk?

    Dear friends

    How im can extract the value of the value of the persistence of disks of virtual machines?

    IM using the bellows of the order, I have a if to check if the disks are independent or not

    but im only want values of the persistence of the column to use in my script

    Get-disk hard - vm machine01

    CapacityGB persistence Filename

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

    10 000 persistent [LUN2] RJ7469SR039/RJ7469SR039.vmdk

    8 000 persistent [rate2] RJ7469SR039/RJ7469SR039_1.vmdk

    Thank you

    Almir

    In your example, you just use Select-Object

    Get-disk hard - vm machine01 | Select the Parent, persistence

    The parent is the name of the virtual machine

  • Please, do I have with the help of Javascript can change the values of tones? for example my color of nail POLISH with c: 0, m:10, y: 15, k: 0 to change to c: 0, m:0, y: 0, k: 0? Thank you

    Please, I beg you, with the help of Javascript change the values of specific spot color? for example, I have the color called VARNISH with c values: 0, m:10, y: 15 k: 0 and it would help me to change to c: 0, m:0, y: 0, k: 0, in an action. Is this possible? Thank you

    Hello Kon Verter,

    You can change the values in your sample of spot, but you need to check a lot of things before.

    for example, you can do something like this:

    var Vcolor = app.activeDocument.swatches.getByName("Varnish");
    if (Vcolor.color.spot.colorType == ColorModel.SPOT && Vcolor.color.spot.spotKind == SpotColorKind.SPOTCMYK) {
        alert("Black value before: "+Vcolor.color.spot.color.black);
        Vcolor.color.spot.color.black= 0; // and so on
        alert("Black value after: "+Vcolor.color.spot.color.black);
        }
    

    This will change the black value of the task of CMYK color with name Nail Polish 0

    Have fun

  • Image display according to the value selected from the bean of choice

    Hello

    I have a table with columns of bean of choice and have an another bean image

    based on the value selected from the bean of choice of a particular line, I want to display an image in the column of bean image

    and it is particularly in the line, in which the user changes the value of the bean of choice.

    Please help me

    Thank you

    Hello
    H1.

    If I choose 'user' of choice its not display any image, but I need disabled display images it

    -have you set the URI of the Image of the time of the image?
    -deleteicon_enabled.gif N deleteicon_disabled.gif

    Concerning
    Meher Irk

    Published by: Meher Irk on October 24, 2010 12:18 AM

  • Display the values selected in a multiple selection prompt

    Is it possible to display all the values selected from a multiple selection prompt? One who is not in a mini report with a filter = promt tabular. I need in the narrative field.

    I don't have anythign to find at the moment which gives no other alternatives.

    Don't know why you need in the view of the narrative, but outside of what you mentioned (prompt = filter), there is no way to store multiple values in a variable to use in the same report selections. But you know that if you chose the way you mentioned, you could do this:

    (1) to your "mini-report" switch to the display of explanatory text.

    (2) since there is only a single column, type @1 in the narrative field.

    (3) consider the maximum number of values that a user would choose 10. Then in the 'lines to display' set 10.

    (4) in the line separator, put in a comma and press the SPACEBAR (this will add a space after the comma).

    (5) now drag this report to the dashboard and the button report properties, select 'View', then select your narrative point of view.

    HTH,

  • dynamically display title based on the value selected in the column picker

    Hi all
    Would it be possible to display the title of the dynamic report based on the value selected in the column picker. Suppose I have two State of the column and region. When I choose the status in the column picker the title of the report will show 'Summary of the situation' when I'll choose the region then the title will change to "summary of the region. Please help me...

    Hello

    Check your mail before I send the entire process with screenshots.

    Concerning

    NGO

  • How to set a repeating subform based on a value selected in a drop down list?

    Please forgive me if this is somewhere, but I spent a few hours searching and have not led to what.

    I have a drop-down list that allows the user to select the number of teams in you listing (1-5). Then I have a subform with all the necessary information for each team. I wish that the subform to repeat automatically based on the number selected in the drop-down list, because I need this information for each of the two teams by registering.

    Thank you!

    In the case of exit of the drop-down list, in formcalc, put something like:

    teams of var = $.rawValue

    var counter = 1

    While (counter< teams)="">

    Subform2.instanceManager.addInstance)

    Counter = counter + 1

    endwhile

    This assumes you have already 1 version of the subform. If you are a beginner with no condition (meter while doing<=>

  • How can we show the values selected from a tree in a selectmanylistbox

    How can show us the selected values from a tree in a selectmanylistbox?

    Hello

    You can use a reference to an instance of the component RichTree and call getSelectedRowKeys on this subject. The selected rowKey allow you then eye-uo coup nodes in the tree. You can use a custom on the tree selection listener to be informed of each selection. There is also an API for the keys from line deselected, you need to delete nodes to select list much. Select it many list will get its data from a bean managed discovers brought (so values survive subsequent applications)

    Frank

  • I can reverse the value stored in Step.Result.PassFail (no)?

    I'd like my test of success/failure at the NECK so my VI to false.

    to do this, I need to reverse the value before saving it for Step.Result.PassFail

    I tried the following when you save the output of the VI to Step.Result.PassFail, but it does not work

    ! Step.Result.PassFail

    Not (Step.Result.PassFail)

    Any advice?

    You can reverse not only before you leave the code module or you could reverse in the expression of the position.

  • You can use the value of a digital indicator in a digital control?

    Hello!

    I have to develop a code where I need to find the maximum value of a waveform and draw a line at 50% of the value. So I chose find the amplitude of say 10 cycles of waveforms and found the maximum value of the amplitude.

    But my real problem is, I have to use the maximum amplitude value I get from the table VI maximum and back into a program to calculate the value of 50%.

    So it is possible to use the value of a digital indicator and put it in a digital control? As in MATLAB or C, you give a name to the variable and use it later to do all the calculations. Is it possible to do something similar in LabVIEW?


  • Movement of keyframes does not - I can see the values change, but nothing happens in the monitor!

    I'm having a nightmare trying to program in a few Motion keyframes to change the position of an element in my program monitor.

    I created the image key to assign the value of the position of an element in the timeline - I want the clip to move toward the Center on the side of the screen. I followed the guidelines and can see the keyframe symbols appear in the view of key images marking the beginning and the end of the change. What is strange, is that when I press play, I can see values changing in the effect controls panel - but nothing really happens in the clip! The clip in question has a silhouette figure, that I created using images of the figure against a green screen, which has then been hidden. I then applied a track matte key to the below item to fill the silhouette with footage - this has something to do with my animation does not?

    I checked to assure that I do apply keyframes for the clip, checked parameters interpolation of keyframes of & all seems in order. I'm new to first, & I apologize if I've properly referenced the different tools or windows - but I hope you get the idea. I looked online but can't find someone reporting a similar issue, that is certainly a first when you are working with such a popular program. I hope that it is something stupid and can be easily solved.

    Can someone tell me why the keyframes, I could, & can change the clip plays, are not actually affecting the clip at all? Any help would be greatly appreciated.

    I realized after the announcement that if I applied the keyframe to the matte rather than the silhouette clip keyframes of the movement worked. Thanks for the advice so guys!

  • Select / option with cfquery - how to pass the value selected in the downform field

    I have a form that has a drop-down list selection/basic option using a cfquery result.  I would use the value that the user selects to pre-fill an editable field "title" more far along on the form.  For example:

    < do action = "" index.cfm? fuseaction = sendEmail "method ="POST"name ="email_approval"enctype =" multipart/form-data">"
    < table width = '500' border = "1" cellspacing = "0" cellpadding = "2" align = "center" >
    < b >
    < td align = "left" > request ID: < table >
    < td align = "left" width = "100" > < b > < cfoutput > #RequestId # < / cfoutput > < / b > < table >
    < td align = "left" > Application: < table >
    < td align = "left" width = "400" > < b > < cfoutput > #this_request.app_abbrev # < / cfoutput > < / b > < table >
    < td align = "left" > WR / RD #: < table >
    < td align = "left" width = "400" > < b > < cfoutput > #this_request.request_number # < / cfoutput > < / b > < table >
    < /tr >
    < b >
    < td align = "left" > Email Type: < table >
    < td align = "left" colspan = "2" >
    < select name = "approval_type" size = "1" >
    < cfoutput query = "approval_types" >
    < option value = "" #approval_types.approval_descrip # "style =" do-size: 8pt "> #approval_types.approval_descrip # < / option >"
    < / cfoutput >
    < / select >
    < table >
    < td align = "left" > < table >
    < td align = "left" > Date: < table >
    < td align = "left" > < b > < cfoutput > #dateformat (Now (), ' MM/DD/YYYY') # < / cfoutput > < / b > < table >
    < /tr >

    < cfset subjectLine = "#RequestId #" & "" & "Request approval" and the "#approval_types.approval_descrip #" >
    < script type = "text/javascript" language = "JavaScript" >
    < cfoutput >
    var #toScript (subjectLine, "jsLine") #.
    < / cfoutput >
    < /script >

    < script type = "text/javascript" language = "JavaScript" >
    setValue() function
    {
    document.getElementById('subject').value = jsLine;
    }
    < /script >


    < b >
    < td align = "left" > subject: < table >
    < td align = "left" colspan = "5" >
    "< b > < input type ="Text"name ="topic"required ="Yes"size ="70"maxlength = onClick =" setValue () "70"; ' > < / b >
    < table >
    < /tr >
    .......

    When the user gets to the field for the object the onClick préremplira the field with the value combined with < cfset subjectLine = "#RequestId #" & "" & "#approval_types.approval_descrip #" & "Application for leave" >.  regardless of what is selected, it uses the first element in the query list because it is what is rendered when the form is loaded (who won).  I tell me that I need an onChange event of javascript for the select statement for the drop, but can not find a way to pass this variable javascript back to form CF.  Any ideas, or am I stuck?

    Thanks in advance for your ideas!

    Unless you use a more recent version of CF (I think 7 or 8-9), in which case if the form is a FORM, and then select is a CFSELECT, and the fields are CFINPUT, you can use BIND = "" in the CFINPUTs to detect the @change of the CFSELECT and fill accordingly. "

    ^_^

    PS: I love JavaScript, I'm a JScriptin' fool, sometimes... but if this can be managed by CF, why not?  (shrug)

  • using the value selected in selectOneChoice as a variable to execute the method

    I have already created data for session bean method controls so I can drag and drop on the jsp. This works very well when you enter data in the fields of text input, but I really need first future value of an initial page and the second future value in the menu drop-down. I don't know how to get the value or how to connect the button during execution.

    The method accepts two values
    value 1, org is? (how do I in another page? Actually, I rendered for this input field set to false if she does not appear)
    value 2, typeId in a drop-down list of selectonechoice (how to handle the soc for the information? Currently, it seems that it is just passing the elementAt number, I have to get the actual value for the selected item. Where can I get it back?)

    I have a ready to run the method on the session bean that needs to take these values. (of course the inputvalue to the soc was not typeId, but I changed it. Values for the soc are in fact from another method, carried out earlier.)

    That's what I have so far:
    I have my waiting on info text entry field to be filled from the previous page (currently I entered manually it)
    I have my population selectonechoice
    A button with the method execute, already set (b/c I initially used drag - move to test my method)

    Sorry to repeat myself so much.

    Thank you!

    By passing a value between pages:
    http://download.Oracle.com/docs/CD/E15523_01/Web.1111/b31973/af_lifecycle.htm#BABIHDAA

    Getting a value from an item in the list:
    http://www.Oracle.com/technology/products/jdev/tips/Mills/ListValue/listbindingvalue.html
    http://blogs.Oracle.com/Shay/2009/11/getting_the_value_from_a_selec.html

  • Turn off/on a tabular Form attribute depending on the value selected in another attribute

    Dear Experts,

    I have

    1. an attribute in the form that is a select statement list containing 2 static values:

      • Family
      • Only

    and I have

    2 another attribute of tabular presentation that is display text (escape special characters, does not save the State), this attribute is also a link to another page.

    My requirement is when I select the family of another select list this attribute must be enabled and when I select one it should be disabled.

    Kindly help out me experts!

    Thank you and best regards,

    Madonna

    Hey Madonna,

    Please take a look at your page. I added a dynamic action that can be triggered by a change in the Type 'accompany' - selection list. dynamic action to display or hide the link 'Add family' according to the value of the selection list. the code of the dynamic action is as follows:

    $('.myClass').each (function () {}

    If ($(this).) Val() == 'Family') {}

    $(this) .parent () .parent ().find('.open_modal').show)

    } else {}

    $(this) .parent () .parent ().find('.open_modal').hide)

    }

    })

    where 'myClass' is the class that gave you to the selection list, and the "open_modal" is the class that gave you for the link.

    I used a show and hide because you cannot disable a link.

    I would like to know if that's what you had in mind.

    Kind regards

    Vincent

Maybe you are looking for

  • Problem with the Lenovo Z510 battery indicator

    I have an old Ideapad of one year z510. Last week, the battery indicator began to stuck on 100%. So not connected, he stops suddenly without notifying me with 10% and 7% remaining notification. I tried to uninstall the Microsoft ACPI control method b

  • system does not recognize new hard drive

    HD has failed (WD 80 GB) so I installed a new a 250 GB WD. I checked with WD HD replacement is compatible, Dell confirms that the jury will have the biggest HD (I've updated the bios). The Bios the WD 250 HD, but when I try to load Windows XP Home Ed

  • Error 1316 a network error occurred while attempting to read from the file c:\windows\Installer\HP Active Library.msi of support

    HP Total Care Advisor PC begins with start up.  Recently, windows close program. I thought I found a solution that was told to copy the HP Totalcare Lbrary of c:\swsetup in c:\windows\installer The people who did this were delighted.  He has not work

  • Unable connect plus

    Hello Since this morning, we are unable to connect with vfoglight more - we use vFoglight Pro 6.5. The error we get in the ManagementServer_xxxxxx is: 2011-04-18 11:34:46.978 [http - 0.0.0.0 - 8443-2] ERROR org.jboss.security.auth.spi.UsersRolesLogin

  • ASA and scenario VCS

    Hello This is the last problem I have to solve. I would be very happy if you could help me with this one too So-1 is the scenario I have, but in this scenario, I should have an ASA before the end point and make a VPN tunnel betwenn the two networks s