Change the value of a field when the value of another field changes.

I have a level of order form with a number of areas where the quantity (number) is typed in they are labeled qty1, 2 and so on.

Some of the items on the order form attract additional fixed a load which is shown in a separate field call it addcharge.

If qty1 has a number entered it attracts an additional cost and the addcharge field changes the value of zero to say 1

If 2 has a number entered without extra charge applies

If 3 is a number entered without supplement applies

If qty4 has a number it attracts an additional cost and the addcharge field changes the value of zero to say 1 or if the previous qty1 has already changed the addcharge to 1 field, remains at 1.

If qty5 has a number entered it attracts an additional cost and the addcharge field changes the value of zero to say 1 or if the previous qty1 and qty4 has already changed the addcharge to 1 field, it remains 1


It seems to me that some "if else" enabling javascript is necessary in the sense of "If qty1 field is greater at 0 addcharge field is 1"and I guess the script must be placed in each field which attracts addcharge.»»»


Can anyone help with the script please.


Thanks Eric

Please sign the right answer. Thank you.

Tags: Acrobat

Similar Questions

  • I've created a form that uses the value field text to fill the text of another field.  Does not take into account changes

    I've created a form that uses the value field text to fill the text of another field.  However, if I need to change the text, the second field does not update this change.  Instead of reset the form each time, is the Javascript code to update the fields if they have been modified?

    For example I Text1 and Text2.

    When I type in Hello in Text1 I see Hello in Text2.

    Later, if I decide to change to Goodbye Text1, Text2 remains Hello.

    The shape of the hoe can recognize this change?

    Thank you

    Edit: I think I have misunderstood the situation.

    If you want to both fields have the same value, just to give them the same name.

  • Change the Label element based on the value of another element

    Hi guys,.

    I need to put a label of point (A) based on the value of another article (B). I did the following:
    I created a dynamic action.
    When B changes:
    1. present the value of B
    Article 2-updated
    Is element A label: myitem & b.

    Any ideas?

    Best regards
    Fateh

    His work! Check it out now

    Just do it

    $('#mylabel').children('label').children('span').text($v('P1_A'));
    

    Published by: VC on June 9, 2012 11:21

  • How to set the value of a field from the LOV of another field.

    I'm trying to figure out how to set the value of a field (P_PROGRAM) to the value of another field of based lov (P_STATE).

    The P_PROGRAM field is a hidden field. The P_STATE field is a required field and is based on a list of values for the State Codes.

    When a user selects the State to P_STATE, the field of the P_PROGRAM should be set to this value, as well.

    I tried different ways to get there via a function call on the post for the calculation of the field P_STATE, defining the source P_PROGRAM to the value of the page item P_STATE put varialbles, creating a process before SENDING, and they all still come back as having a NULL value for P_PROGRAM, therefore impossible to create the file in the db as the PROGRAM is a mandatory field in the table.

    Can you please help? Thank you, Laura

    Laura,

    It is always helpful if you provide information about the Apex version you are using. The Apex 4 you can use Dynamic Actions to achieve this. In earlier versions is possible using processes to submit or javacsripts, as well.

    Heres how you do in 3.x with treatment to submit, to make it work in 4.0 as well.

    1 do the P_STATE ' select list submits the Page.
    2. Add a calculation on the point P_PROGRAM, or write to him assign a value based on a process. The treatment should be OnLoad after the header
    3. If the page does not have an unconditional branch that loops on itself, add a. NOTE: The direction must be the last branch (larger sequence number) and should have checked "Save Session State".

    This is what will happen
    a. when the State is selected Page will be submitted
    (b) it will take the unconditional branch to himself and save the value of P_STATE
    c. the calculation process / fills the value of the P_PROGRAM element when the page reloads

    Kind regards

  • Fill a field value based on the value of another field

    Hello
    Could someone tell me what is the problem with the following select statement. For a group of records, trying to fill a field with a value based on the value in another field (problem of status), but the Group of records appears empty just when I put this code in the field.
    Any help would be appreciated
    Thank you


    <? choose:? >
    <? When: IssueStatus = "Open"? >
    <? 1? >
    <? end when? >
    <? otherwise:? >
    <? When: IssueStatus = "closed"? >
    <? 2? >
    <? end when? >
    <? otherwise:? >
    <? When: IssueStatus = "Unresolveable? >
    <? 3? >
    <? end when? >
    <? end otherwise? >
    <? end to choose? >

    Use the following syntax.

    
    
    Display 1
    
    
    Display 2
    
    
    Display 3
    
    
    
  • You need to reset and or change my old icloud account of moms on the phone with another. When I try to reset it with the information that we know that it says "blocked account"

    You need to reset and or change my old iCloud account of moms on the phone with another. When I try to reset it with the information that we know that it says "blocked account"

    ACCOUNT SAFETY CONTACT NUMBERS

  • in LOV query to get the Responsibility_id using profile... but when I switch to another responsibility always the LOV shows the previous values of RESP.

    Hello

    I have the choice of Message box, in which I'll show the inventory list organizations are assigned to responsibility. I just the following query in the query of LOV...

    Select hou.NAME separate organization_name, mp.organization_id

    of mtl_parameters mp

    , hr_organization_units hou

    oa org_access

    where mp.organization_id = hou .organization_id

    and hou.organization_id = oa.organization_id

    and oa.responsibility_id = fnd_profile.value ('RESP_ID')

    organization_id asc order

    But first let's say after the OA Core bounce if I open a responsibility which is to have access to 5 associations of the inventory, and then in the message of choice is showing correctly... But when I go to another responsibility that is to have access to a single inventory, always the choice of Message body shows the previous inventory 5 Orgs who is to have access to the prior responsibility.

    Pointers on this?

    Thank you
    Clarriiza

    Use choiceBean.setPickListCacheEnabled (false) to PR.

    See you soon

    AJ

  • How to automatically complete a transitional according to the value of another attribute when attribute line is questioned in the VO?

    Hello world

    The task seems simple enough, but I have not found a way to populate an attribute transitional according to the value of another attribute when the line is queried. What is the best way to achieve this?

    Thank you.

    James

    Use VORowImpl, if you have any transient attributes defined in the view object, whose value is derived from other attributes of the line, you can override the GET method and add logic there

    Please note that this class represents a row in the results collection in a display object.

  • How do I delete an article based on the value of another field


    I have a pdf form that I added to the text fields. My challenge is that of the financial section of the form, if the value of a specific field is empty or null, I blank block of signature financial review.  I've been trying to find a way to cover the area of signature with a white box or have a text box with signature block text appear or disappear depending on whether the value is zero or empty.

    If seen many answers on how to make the field itself disappear based on value, but I did find something that causes another field or shape appear or disappear depending on the value of another field.

    Please try the following script,

    var signid = true;

    If (this.getField("finan").value! = 0) signid = true;

    of another signid = false;

    If (SignID) this.getField("signaturefield").display = display.visible;

    else this.getField("signaturefield").display = display.hidden;

    Please let me know if it solves the problem.

  • can a field on an update of the top form another field in the same form

    I need to update a value of text field with a drop down value of the same shape.  Is this possible?

    Emre is correct, that you can do only with a formula. Note If you use a string PD type, the formula will display the value not on its label. This is useful if you want the label to be something that is easy to use, but the value can be a code or an abbreviation that is used elsewhere.

    Also an Emre says the formula field will be read-only, but can concatenate the value of the RFP by another string (entered manually, already on the form, of an another PD,...) implement a longer string. This type of approach is sometimes used to define the structures of coding for the elements.

    If you have an integer PD, then you can have the Boolean logic built into the form. Let's look at an example. You have an amount field that you want to split and or show it is Capital or a time-based fees. You can set the following configuration:

    • Amount: currency
    • Type: Costs of Capital (1), (2) [Note: If no value is selected, it will evaluate as a 0]
    • Amount of capital = Type * (Type 2) * amount
    • Fees = Type * (Type - 1) * amount / 2

    The results are:

    • If nothing is selected, the Type is 0, and the other two amounts are 0.
    • If the Capital is selected, the amount of Capital will be defined (1 * 1 * amount) and the amount of spending is 0.
    • If the expenditure is selected, amount of expenditure will be defined (2 * 1 * amount/2) and the amount of Capital is 0.

    This logic can be extended to any number of options of PD, but the logic is quite complicated, and it's basically hard. If you want to change the options later, then this is a great company to make the change.

  • Deactivating a page element based on the value of another element on the page

    Hello
    I have a page element I want to turn off if the value of another article (drop-down list item) is set to a specific value. I followed the example in the book 'Pro Oracle APEX"(p.320) in this regard. He ordered me to do this in the HTML form element attributes for the element section:
    OnChange = "htmldb_item_change (this); html_DisableOnValue (This, 'Closed', 'P3_PRIORITY', 'P3_ASSIGNED_TO'); »

    It works very well. It disables the element I want to disable. HOWEVER, it does not neutralize the article unless the element with the onchange attribute is changed.

    How can I add features to disable the second element, even if the first element does not change, but contains the value 'Closed' when the user of the first load of the page?

    Thanks for your help and your insight!
    -Reid

    Hello Reid,

    The easiest way would be to (also) a Condition only read the item that you want to disable.

    Greetings,
    Roel

    http://roelhartman.blogspot.com/

  • hit the tab opens another line of address rather than go to the subject field

    With the last update to Thunderbird, I can not tab directly from the field address within the scope of the topic. Hit the tab opens another line of address to be removed, then tab will move to the scope of the topic. I hope someone solves this problem quickly.

    In my version 31.2.0
    It depends on how MANY fields are automatically inserted.

    So if I have 3 set as default, but have used an email address, tab scrolls the (two) other TO and in THE fields and then go to topic.

    The rest to THE fields may not necessarily appear if the content by separating the divider was raised to provide more space to strike. So it might appear as though the creation of a new FIELD (which is normally when you press the enter/return key), but it's actually only to already available in THE fields.

    To check this:
    Open a new message of Scripture.
    Lower the separator bar to reveal header space, all the fields to display and also a few extra empty lines.
    How many auto fields appear?

    Place the cursor at the top of the page to and use Tab to move.
    the move of the tab should move from FIELD to the fall of choice FOR down, then next field. When the last FIELD was used, tab should go to the question, it should not go to an empty field AND create a new FIELD.

  • XMLTYPE Datatype - extracted value of an element based on the value in another element

    Hi all

    I have a typical XML problem in which I am trying to extract the value of a property on the base of another.

    Here is an example of XML data:-

    < object type = "InstanceObject:instanceKeyValue" version = "2" >

    < property name = 'name' value = 'COUNTRY' valueType = "string" / >

    < property name = "keyValueType" value = "VARCHAR" valueType = "string" / >

    < property name = "keyValue" value = "SINGAPORE" valueType = "string" / >

    < / object >

    < object type = "InstanceObject:instanceKeyValue" version = "2" >

    < property name = "name" value = "DATA_SET" valueType = "string" / >

    < property name = "keyValueType" value = "VARCHAR" valueType = "string" / >

    < property name = value 'keyValue' = 'April 9, 2014' valueType = "string" / >

    < / object >

    My requirement is-

    If value = 'COUNTRY' under/object/property then I need the property value where @name = "keyValue" that is Singapore.

    But when I do

    SELECT EXTRACT('object/property[@name="instanceKeyValues"]/object/property[@name="keyValue"]/@value')

    I get the two keyValues SINGAPORE09-APR-2014

    While I only need Singapore.

    No idea how we can solve this?

    Sorry, I'm a jerk, so finally I just with this

    with t as)
    Select xmltype)
    '
            
               
               
               
           

           
               
               
               
           


               
               
               
           

    '
    ) x
    of the double
    )

    Select
    Val
    t
    xmltable)
    "for $o in/root/object.
    ["Let $p: = $o/property[@name="keyValue "]
    ["where $o/property[@name="name"][@value="COUNTRY "]
    Return $p'- or return $p/@value'
    go x
    columns
    path of varchar2 (40) Val '@value' - or '.'
    )

    VAL
    Singapore
    India
  • How to insert the value from the FORM to another database table?

    Hi all

    I have the following problem.

    I have a form that has a tabular layout for the MATURED_FD_DTLtable. (all about 20 line items)

    CREATE TABLE MATURED_FD_DTL

    (

    ACCT_FD_NO VARCHAR2 (17 BYTE) NOT NULL,

    CUST_CODE NUMBER (9),

    FD_AMT NUMBER (15),

    FD_INT_BAL NUMBER (15),

    TDS NUMBER (15),

    CHQ_NO NUMBER (10),

    CREATED_DATE DATE,

    CREATED_BY VARCHAR2 (15 BYTE),

    PREV_YR_TDS NUMBER (15),

    ADD_FD_AMT NUMBER (15),

    DESCRIPTION VARCHAR2 (100 BYTE),

    P_SAP_CODE NUMBER (10),

    P_TYPE VARCHAR2 (1 BYTE)

    )

    By clicking on 'SAVE' button, all values will be automatically is stored in the MATURED_FD_DTLdatabase table.

    But I want to insert these values in another table called TEMP.

    I want to insert values of form only, no table select.

    How can I do this?

    Help me.

    Is Oracle Designer 6i.

    Answer:

    BEGIN

    Commit_form;

    PREMIER_ENREGISTREMENT;

    LOOP

    insert into TEMP_MATURED_FD_DTL

    SELECT * FROM MATURED_FD_DTL WHERE ACCT_FD_NO =: acct_fd_NO;

    WHEN THE OUTPUT: SYSTEM. LAST_RECORD = "TRUE";

    NEXT_RECORD;

    END LOOP;

    PREMIER_ENREGISTREMENT;

    COMMIT;

    MESSAGE ("RECORD UPDATED AS PAID '");

    MESSAGE (' ', no_acknowledge);

    END;

  • When I use my brush tool, it works very well unless I overlap the brush with another brush stroke.

    When I use my brush tool, it works very well unless I overlap the brush with another brush stroke. When this happens, it turns bright red. How can I fix this and put it on the default setting?

    Your brush is set to Hard Mix in the options bar.  Change this to normal and everything will be fine.

  • passing the value of the item to another page

    Hello!

    I have a few questions while passing the value of the item to another presentation page and page refreshes.

    I have a page (page n ° 2) with more areas where users can fill data in some articles (text box, popups,...), then I have a region report report and button to enter a new item. When users, click the button is it redirects to another page (page no. 21), where the user enters the values to other elements (popup, text box,...) then I have 3 buttons on this page ('Cancel', "create one", "create an and create another") and now I don't know how to handle the button ' create a. Action for the button "create one" I want is that when button "create one" is clicked in a table (in my DB) should be inserted some values of page 2 and certain values on page 21, then users should be redirected to page 2, where you can see everything that you see before the user has clicked 'enter a new element button' (so all the values in the elements of the page 2 must be visible) + in this report in the region must be updated (so you can see the inserted elements on page 21)

    I hope you understand what I mean and you can help me. And sorry again for my English.

    Kind regards
    Dragan

    You can create a collection and use it in this way:

    IF apex_collection.collection_exists ("YOUR_COLLECTION") = TRUE THEN
    apex_collection.delete_collection (p_collection_name-online 'YOUR_COLLECTION');
    END IF;
                             
    apex_collection.create_collection (p_collection_name-online 'YOUR_COLLECTION');

    -Value added to the collection
    apex_collection.add_member ("p_collection_name-online 'YOUR_COLLECTION', p_c001 => ' value to save");

    -get the value of collection
    Select C001 in apex_collections where collection_name = "YOUR_COLLECTION";

    Go through this link to learn more about the collections http://docs.oracle.com/cd/E17556_01/doc/apirefs.40/e15519/apex_collection.htm

    OR

    as you say if its only id you want to perform, then simply create an item hidden in your page 2 =>: P2_ID_SO, then capture the value in your 2 page deal and use it in page 21.

    -Manu

Maybe you are looking for