Calculations of fields in Drop Down Menu Items

Hello - I'm fairly new to Java and I wonder if it's possible... Try to make a purchase order for clients to complete

I have a form that is put in place with the drop-down list boxes to choose your product.  There are different prices, linked to different points in the drop-down list.  Is it possible to make the script calculate the following...

If Value1 is chosen the price is $1,25 if Value2 is chosen, the price is $ 2.25 and so on?  I may have a total of 5 items in the drop-down list.

Then also I need to know if it would be easier to calculate using the text fields instead... for example

Product 1 is selected - then the client completes the first name and last name text fields but not the 2nd field on line price would be $1,25 or

Product 2 is chosen - then the customer fills their first name and second line (no surname) and it would make the price $2.25 and so on...

Basically I have a form with 5 products, 4 options by product and 1 price associated with each of these products based on what information is populated and what information is left white.  They did this work Excel and I wanted to know if it will work here too.  I use LiveCycle ES2 and Acrobat Pro 10

Please help me if you can - thanks - Michelle

Hi Michelle,

When you select the drop-down list, you can set the display settings in the object > field palette. You probably already have it.

In the object > liaison palette, if you check "specify values", you can type in a price for each object (1.25). This command sets the value for each of the display items.

Where you have a price field, this script can be the calculate event, access .rawValue from the drop-down list (which will be the bound value). For example, the use of JavaScript:

this.rawValue = myProduct.rawValue;

Note that the drop-down list format not the price of the object > binding. It keeps just the value. You can format the object of price for display in any currency you want.

There is an example here: https://acrobat.com/#d=RLlRdnqGtMw6RTFxWCW3rQ.

Also:

http://assure.LY/jtTkdO

http://assure.LY/fYCuQ2

http://assure.LY/iitzNJ

Hope that helps,

Niall

Tags: Adobe LiveCycle

Similar Questions

  • Adding a menu drop-down menu item?

    Can I add a menu drop-down menu item of the interactive form list drop-down opening page.

    Doug,

    Ah, this is called the Menu Action and at this stage there is no way to do - at least not a supported method. You could always manipulate the list 'apexir_ACTIONSMENU '...

    It would make an enhancement request well.

    Kind regards
    Dan

    http://danielmcghan.us
    http://sourceforge.NET/projects/tapigen
    http://sourceforge.NET/projects/plrecur

    You can reward this answer by marking as being useful or correct ;-)

  • List drop-down menu item event

    Can a drop point, when selected, trigger an event that another field becomes visible?

    ~ Jennifer

    Yes, you can use the value of the field drop-down list to hide, display, etc.  Something like that.  If you have the Action Builder it will generate for you.

    If

    ($.boundItem (xfa.event.newText) == "Three") {

    this.resolveNode("TextField3").presence

    = 'visible ';

    }

  • How to insert a drop-down menu item via HTML without moving any other existing content?

    Hello

    I inserted an Electrolux (Bullseye Locators) reseller on my business through HTML Web site. When you preview in a browser and try to use the Locator, the results appear, but because it is a drop down with the results, he pushes in fact all content below down and I get a white space between the Locator & content. I tried to separate with the Locator on another layer, but it doesn't seem to help. Anyone had this happen before? If so how to solve the problem? -Thank you

    Draw the HTML in Design view of Muse large enough to fit the entire height expanded area of the Locator.

  • Several list drop-down menu items to fill the area of separate text even. How can I do?

    Acrobat x Pro, I have figured out how to create a dropdown menu with items that will populate a separate text box, but how do I get several menu items to fill the text box. For example. My menu has three items, cat, dog, mouse. I choose the cat and it appears in the separate text box (hooray). Then I choose "dog" in the same menu. I would like it to appear in the text box even my previous selection 'chat '. Is this possible? I am very new to JavaScript, any help would be greatly appreciated! Thank you

    Change the last line:

    getField("Text_field_1").value += "" + aQuotes [point];

  • Problem: InDesign CC, I can't click any menu drop-down menu, or click in the fields

    Just installed and updated InDesign CC on win7 x 64. In the dialog boxes. If I want to click with the mouse to say on a drop down menu to change inches. Nothing happens. Also if I try to click in a field to type a value. nothing. Ditto for up or down arrows next to the frozen fields.completely value when it comes to mouse clicks.

    I can use the tab key to jump everywhere and of input values. But it is a deal killer for productivity. This problem is also on the tool bar if I want to change the font, size etc.

    Any advice?

    Max

    One of the reasons could be: you set the text size to 150% or more in Windows 7 display controls. Set it to 125% (control Panel\All Control Panel Items\Display) and it will begin to work... Boring, I know... but this is how it works.

  • Need help to make the field required, based on the drop-down menu ' YES/NO' other please field

    field 'A' - drop down, YES/No.  Field 'B' must be entered if 'A' = 'YES '.  If 'A' = 'NO', then 'B' as a default of 0. If "A" = "-", then "B" is "-".

    Really, I hope someone can help, Ive tried java, etc. action buttons.

    Thank you

    To set the property of the EmployeeID field B use the following that the validation of your menu script drop-down:

    this.getField("B").required = (event.value == "YES");

    As noticed TSN, the required field only comes into play when the record is submitted (and only when it is done using the built-in command to submit, do not use a script).

    However, it is possible to use a script to inform him that the use that the file is not correctly filled in when the file is printed/saved and even to reset the form entirely in this case.

  • Help to the drop-down list items in list making invisible field

    On the attached form, I have a drop-down list "Item". How can I get the items in this list make the text field "embroidery" visible or invisible depending on the element selected?

    My programming skills are very basic, livecycle as I am just getting into this. Any help would be appreciated.

    Tom,

    our email form.

    hope this is what you were after.

  • updated list drop down menu by typing item

    Hi guys,.

    I create a drop-down list by using enum. The drop down menu may have about 1000 + points. Is that possible the menu drop down to update the selection, I want while typing the word?

    The enumeration so that the controls of the ring won't let you type in when the vi is in run mode. A combo box can do what you expect

  • Attempt to bind the drop-down menu to dynamically fill Textfield

    I had trouble to come with the script for calculating appropriate for this question and I was wondering if anyone would be able to help me.

    Basically what I'm doing, it's down a product Option Drop (let's call it "RS1") to dynamically fill a separate price/text ("Price RS") field based on the selected product in the drop down menu.

    Product in the menu options drop-down are 'single' and "Double".

    If I select the option of simple product, he would fill in the price with a price $345,00 field. If I had to choose the Double product option, it would enter the price with a price $565.00.


    The intention is to multiply what fills pricing by a separate drop-down field that I already have in place that measures the quantity of the item to get a total final for this order of products.


    I know this should be relatively simple, but I can't get my calculation script to work for the life of me. Any help is greatly appreciated!

    You can use this code as a custom text field calculation script:

    var v = this.getField("RS1").value;
    if (v=="Single") event.value = 345;
    else if (v=="Double") event.value = 565;
    else event.value = "";
    

    Make sure that you set the option to validate the value selected from the drop-down field immediately for the calculation to occur as soon as the selected takes place in the menu dropdown.

  • Fill in the other fields of drop-down Menus

    I'm trying to create a PDF file in which when an item is selected in a drop-down list, another field is given a specific value.

    Exact situation: I have created a photography print order form and there is a drop down menu to select the size of the print on the agenda (example: 4 x 6, 5 x 7, etc..) I want to set so that when a person chooses a certain size, say that 4 x 6, the "Unit price" field is automatically filled in with the price for 4 x 6.

    Is it possible to do so. I have decent programming skills, so I am open to any beginner or expert suggestions.

    Thank you!

    Chris

    Set the value to export for each option in the drop down for the price, then

    apply this value in the fields where you want to display the price (for

    example, you can type name of the drop-down field of simple calculation).

  • Drop-down menu auto-remplit but will not be updated if you change the selection?

    Hi all

    I'm having a problem with the auto fill to a text field based on the selection in a drop-down list. While the script is running in the first case, if I go back and change my selection as result calculations be updated based on the new selection.

    I used the following script Auto Fill a field of text (called "stndwatt") based on the drop-down menu selection. The drop-down field is called "ProductLineOne":

    var v = this.getField("ProductLineOne").value;

    If (v == "3000K T10 (Tube) '") event.value = "21";

    else if (v == "4000K T10 (Tube) '") event.value = "21";

    else if (v == "5000K T10 (Tube) '") event.value = "21";

    else if (v == "6000K T10 (Tube) '") event.value = "21";

    else if (v == "HBZ (100W Bay)") event.value = "100";

    else if (v == "HBZ (150W Bay)") event.value = '150 ';

    else if (v == "HBZ (200W Bay)") event.value = "200";


    The text field ("stndwatt") is actually hidden and is only required to be part of other subsequent calculations - I don't know if this is a factor?


    If you can please advise what I can do to make the field to update when a new selection is made in the drop-down box, it would be much appreciated!

    I'm just a beginner so please keep this in mind

    Thank you!!!

    You must make sure that the field calculation order is correct. See

    as it is a calculated field that is used in other calculations, you should

    Make sure it is higher on the list compared to the fields that use its value

    for their own calculation, that is to say that its calculated before them.

    You can set this order in form editing mode, via the game of - other - jobs

    Field calculation order.

  • Select Drop Down Menu recordset query.

    I'm looking to use a dynamic drop-down menu to query a Recordset... I use Colfusion to import a MS Access database that contains the following fields: 'Date template', 'Name', 'Points' and 'target '.  Whenever updates to the database, the field 'model' contains the date and time, the model has been run.  I figured out how to create a drop-down Dynamics using SELECT DISTINCT 'model date' and have also figured out how to create the dynamic recordset to display display the data 'Name', 'Points' and 'target '.

    I want the user to select the "Date of model" in the drop-down menu, press "submit" button and then have the appropriate 'Name', 'Points' and 'Target' data surveyed and below.

    The application must take the selection in the drop-down list of 'model date' and then query the fields 'name', 'points' and 'target' for this particular "date model.

    I admit that my knowledge of SQL and Coldfusion is not the best, but it seems that it is a fairly simple task and miss me just one or two pieces of gear and put everything.

    The database essentially looks like this:

    Date pattern... Name... Points of... Goal

    01/08/2010-08:00... DOE... 1, 250... 5.55%

    01/08/2010-08:00... DOE... 850... 2.35%

    01/08/2010-08:00... Bill Smith... 11, 832... -123,23%

    2010-08-02 09:02... DOE... 1, 323... 6.67%

    2010-08-02 09:02... DOE... 1: 001... 3.21%

    2010-08-02 09:02... Bill Smith... 10, 235... -110.26%


    The drop-down list shows only "model dates."

    01/08/2010-08:00

    02/08/2010 09:02

    For example, if on 01/08/2010 08:00 has been selected in the drop-down list, I want the following text is displayed:

    Name.................. Points of... Goal

    John Doe... 1, 250... 5.55%

    Jane Doe... 850.......................2.35%

    Bill Smith... 11, 832... -123,23%

    For any help or suggestion would be greatly appreciated!

    Thank you

    Mike

    My second paragraph speaks only to display the filtered data, so I guess that's what you're looking for, but not yet quite sure based on what are the other answers.

    But I'm on anyway-

    On your first page, note the instance name of your drop down menu, for example "ModelDate".  Make sure that it is in a form and set the form action on the page where you want to display your data, set the form POST action.

    On the results page, create a table with cells for each of the data items to display. Create a recordset that you can do in Simple mode. Allow to select all and the value of the fall of filter down to the database field that contains the Date of your model. In the box on the right, select "=". the next list dropdown selct "Variable form" and the name of the variable type in the name of the instance of falling down on the first page.

    I may not have the terminology right it's memory.

    On the data tab, expand your recordset and locate each of the database fields to display.  Drag each of them to the cell in the table on the page where you want it to display.  The cells in a table should be in a linear row.

    Now select the table row buy by selecting the TR tag in the tags just above the properties panel.  In the server behaviors tab, select the region of repetition and "All Records"

    Publish your pages and test!

  • How can I open Web sites that I put in the drop-down menu when I click on the blue arrow to the menu drop-down

    I have windows XP. I use msn.com for my homepage. I entered the sites I want to go to every day. These sites are in the drop-down menu when I click on the blue arrow down. When I click on any one of these sites, they are not open. What can I do to fix this.

    Your user agent shows you are running Firefox in compatibility mode for Windows 98 (NT 4.10).

    • User Agent: Mozilla/5.0 (Windows NT 4.10; rv:37.0) Gecko/20100101 Firefox/37.0

    Make sure that you are not Firefox running in compatibility mode.
    You can open the properties of the desktop Firefox shortcut via the context menu and check under the tab "compatibility".
    Make sure that all items are disabled in the tab "Compatibility" in the Properties window.

  • Drop-down menu cannot be selected by clicking

    I'm under 20.2 FF on Mac OS X 10.8.3. I recently found this item in the drop-down menu cannot be selected by clicking, although it can be selected by pressing 'enter' on the keyboard. I don't have any add-ons installed, so that shouldn't be the problem. Like going to http://www.newegg.com/ and click on the search menu, I can't select all the options. Thank you for your help in advance.

    Update 22 FF and problem solvered.

Maybe you are looking for

  • Tecra M2 does not start

    I'm new havoing problems with my Tecra M2. can someone point me in the right direction with regard to breakdowns, I had a glance on the forum and the threads associated with the Tecra range but cannot find all threads that match my problem. In a shor

  • How to connect the Satellite Pro P100 to Hifi

    I've got Satellite Pro P100. How to connect this laptop to stereoIt's probably easy, but what I can say... Call me stupid. I have head that comes out of the headphone jack, it connects to my friendly hifi.Ill be there is a unpleasant hissing in the b

  • color of the digital meter ramp or slide is missing the performance

    Hello I, m using CVI 2010 (10.0.1. (419) on windows 7-64 bit. In a simple program, I use a digital meter. I also use the color of the digital counter and on the IUR ramp, I see the ramp as expected with the defined colors. But when I run the Panel (i

  • Pavilion 15 t-n200 CTO: memory/hard drive upgrade question

    Hi demand an upgrade memory or hard drive. System: Pavilion 15 t-n200 CTO model: E9Z19AV Intel core i3-4005u 1.70 ghz 4 GB mem 64 bit Fact check on memory sytem and it says: 1600 mhz DDR3 Seen a refrence on another site that said for 4th gen proc to

  • FIND AND FIX MEDIA PLAYER 11

    I HAVE an ibm OPPORTUNITY WITH SP3 on IT WHEN I DOWNLOADED IE8 AND LIVE ESSENTIALS ECT I ALSO GOT ANOTHER MEDIA PLAYER 11, I UNINSTALLED a VERSION OF 2004 AND recognized AS I HAD KEPT THE 2010 VERSION, BUT BOTH DISAPPEARED, I DOWNLOADED IT AGAIN, HE