Check box adds to the Total

Hey there,

Anyone happen to know if there is a script so that when a box is checked, it adds the correlation price altogether?

Screen Shot 2016-06-21 at 8.48.08 AM.png

Thanks in advance!

JW

Use the code I provided the custom calculation of the total field script.

I had assumed that the prices are fixed. If indeed they are dynamic and you have a text field for each award, then you can use something like this:

var total = 0;
if (this.getField("CheckBox1").value!="Off") total+=Number(this.getField("Price1").value);
if (this.getField("CheckBox2").value!="Off") total+=Number(this.getField("Price2").value);
if (this.getField("CheckBox3").value!="Off") total+=Number(this.getField("Price3").value); // etc.
event.value = total;

Tags: Acrobat

Similar Questions

  • Data received, press CHECK BOX to print the last page

    Aloha

    I have an old HP Laser 4200 Jet that has been the back BONE of my business! I worked perfectly except for the last two days!

    He give me a "data received press CHECK BOX to print the last page" and print a portion of the last page with or without printing of the

    previous pages! It just started happening! Over the other day, I have my children of girlfriends! Is it possible that they pressed a button?

    I reset, but this problem persists! Help!

    SLY

    Hi Sly,

    Welcome to the Customer Support Forums!  I'll lock this accidental double post and lead everyone on this subject.  This will keep all your answers in one easy to find place.

    If you have any questions or concerns about this, feel free to contact me by private Message.  Thank you!

    Message edited by SandyD on 06/06/2009 17:07
  • Clear the check box according to the value of column DB

    Hello
    My requirement is to disable the check box according to the value of a column DB. Say for example my report displays the following. Check box, the name of the EMP, Dept. If the Department is the checkbox should be disabled and user should not be able to select the check box.
    Ask your help for a solution.
    Thank you
    Prasanth

    You must use the parameter p_attributes of the apex_item.checkbox API to make the boxes off (readonly do not work with the checkboxes)

    SELECT ..
    CASE WHEN  THEN APEX_ITEM.CHECKBOX(1,)
                         ELSE APEX_ITEM.CHECKBOX(1,,'disabled="disabled"')
              END 
      ..
    
  • Tables: Must have text Message box appears if the totals do not agree

    I have a table that has six columns of figures. Each column is reached. I would get a text box ("these totals must agree") to appear IF (column mouse + column Rats) is NOT equal to (column B column C + column D + column E.)

    I didn't need calculate the sum of the totals of columns, that is to say, no need to know the total of mice and rats, etc.. I just have to make sure that the number of rats and mice is equal the number of category B, C, D and E pets. And to let the form user know.

    I hope that makes sense!

    Thank you!

    There are two ways to handle this.  Normally validation of this type is made when the user has finished the form and is ready to submit.  This is because in this case, validation is based on several columns and rows, so if you wanted a pop-up for the error message box, they would get a message popping up every time a number is entered until all columns are added correctly.

    It looks not to form any kind of function submit, so I got stabbed another angle.  I've added a message that is a note and a warning below the list of categories.  This is normally visible and is hidden when the columns add up correctly.  I added the validation code in the event of page layout: ready for JustifyE since it was already used another script and it fires when you need it.

    Update form is attached.

  • check box for fills the fields


    Hello

    I have a column of text fields named date1, date2, date3... all the way to date10.  I would like to include a check box if the user enters a date in the field "date1" then checks the checkbox, it could fill the remaining fields with this value.  Someone would have the script for this.

    Thank you very much.

    You can use this code as the script of the mouse upward to the checkbox:

    if (event.target.value!="Off") {
        var v = this.getField("date1").valueAsString;
        for (var i=2; i<=10; i++) {
            this.getField("date"+i).value = v;
        }
    }
    
  • by the way check box values in the WHERE clause

    Hello

    I created a data block - 'CONTACT' (block of data in database)

    and has an element of database - 'Code', 'Descr '.

    The number of records displayed has the value 5.

    When enabled - value 'Y '.

    Value when disabled - n

    Box mapping of other values - "unchecked."


    I write the code inside "WHEN the BUTTON PRESS. My main goal is to return the number of records from

    According to several conditions and one among them is the CODE which can be single or multiple based on the checked checkbox.

    The requirement is when I check one or more boxes, I should pass the "Code" element values in the WHERE clause.

    I tried to use the simple loop but things havmt worked as shown below.

    The next_record refers to the COCHEE BOX as well, and thus return all the eventhough lines if it is not checked.

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

    -LOOP

    IF: contact.cb = 'Y' THEN

    LOOP

    IF p_where is null then

    p_where: =: contact.code;

    on the other

    p_where: = p_where | «, » || : contact.code;

    end if;

    When the output: system.last_record = "TRUE";

    next_record;

    END LOOP;

    end if;

    -END LOOP;

    MESSAGE ("p_where :'|| p_where);

    MESSAGE (' ');

    END;


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

    And even if I write the LOOP before the first CASE, it returns me the current value and move to the last record.

    Please suggest

    Try something like this:

    FIRST_RECORD;
    
    LOOP
    
      IF :contact.cb = 'Y' THEN
        IF p_where is null then
           p_where := :contact.code;
         else
           p_where := p_where ||','||:contact.code;
         end if;
       END IF;
      exit when :system.last_record = 'TRUE';
      next_record;
    END LOOP;
    
    -- END LOOP;
    MESSAGE ( 'p_where :'||p_where);
    MESSAGE (' ');
    
    END;
    
  • Check box to hide the subform does not

    I have what I think it's a pretty simple dilemma. I have a check box that will be used to show/hide a subform when checked/unchecked.

    However, any code that I have written seems to work. The box is an object in page1 and not wrapped in subforms. The subform has simply two inside text fields. the properties of the box have been defined for bind values are 1 for archiving, 0 for uncontrolled. The fields in the subform exploit the value "invisible" because I don't want to see these fields in the form (unless the box is checked).

    My code is:

    Form1. Page1.newspaper::click - (JavaScript, client)

    If (this.rawValue == 0) {}

    xfa.resolveNode ("form1..") Presence Page1.Newspaper_Subform") ="hidden ";

    }

    else {}

    xfa.resolveNode ("form1..") Presence Page1.Newspaper_Subform") ="visible ";

    }

    This code is located in the under JavaScript click event. The form is saved in a dynamic XML form to Adobe. I use Adobe Pro XI and LC ss4

    I can do this work in the generator of the action, but I want the subform back to hidden when unchecked.

    Obviously, a beginner in Java script, ideas/help you might have would be appreciated.

    What exactly is the problem?  Is this not not showing or hiding not when you change the box?  According to your description, you have two text boxes the invisible value but your script changes only the presence of the subform.  If you show the subform without changing the presence of text boxes, they will remain invisible.  If you want all show/hide together, set the presence visible text boxes and simply change the subform presence as you are now.

  • Check box to change the value of the field and reveal hidden text

    Hello

    I need to change a value in a field when you press a checkbox

    the default value can be $ 10 in 'formfield1 '.

    But when the checbox is checked, the value of 'formfield1' must spend $ 8

    I also need a reval text function in "textfield2' of the text hidden to visible.

    Is it still possible to combine in a box?

    I found a code on the forum and changed it, but it does not work as expected, it affects the field, it shouldn't and it behaves a bit funny, here is the code to calculate.

    I also tried to change the value of Off to On, but who has not reversed the procedure than I hoped.

    Well its a start, maybe someone can understand a give me help on the way?

    ________________________________

    custom for the discount calculation

    var nDiscount = 2;

    name of the Sub total field

    var cSubTotal = "formfield1";

    name of the non-Discount checkbox

    var cbNonDiscount = "CheckBox1";

    default value for the non-Discount

    Event.Value = 10;

    see if the purchase is with discount or not non-Discount

    If (this.getField ("cbNonDiscount") .value == 'Off') {}

    Event.Value = this.getField ("cSubTotal") .value - nDiscount;

    }

    put an end to a custom calculation

    Ah, if you want the calculation to take place when the box is checked, use this:

    If (this.getField (cbNonDiscount) .value! = "Off") {}

    Instead:

    If (this.getField ("cbNonDiscount") .value == 'Off') {}

  • Check box to hide the table row

    I have the table and the box.
    I need when is checked then unhidde of certain lines and when is not checked to be hidden?

    Thank you

    I did it in my form. What I did do the subform, and then place all the objects that I wanted to be hidden and then visible inside. I then used this code on the button:

    If (this.rawValue == '1') {}

    oTargetField = this.resolveNode ("subform name here");

    oTargetField.presence = "hidden".

    }

    If (this.rawValue == '0') {}

    oTargetField = this.resolveNode ("subform name here");

    oTargetField.presence = "visible".

  • Check boxes based on the table...

    I have an 'event' of the table, a "subject" of table and one table that links these two 'event_topics '. I have a form to create events and want to have all the available topics in the table of 'event' presented a list with checkboxes, to verify for each event, all the van when registering for any subject verified and relevant topics, a line is added in "event_topics" with the event_id and the topic_id.

    Is this possible? And if so, how do I start on this? I use Apex 3.2.

    Hello Tom,

    Yes, it is possible.

    First of all, you need a point of the box. The LOV for this element of the value to something like

    select topic_name, topic_id from topic order by topic_id
    

    To save the selection you need a process of pl/sql

    declare
      vPICKED apex_application_global.vc_arr2;
      vITEMS varchar2(1000);
      vCOUNT number;
    begin
    
      vITEMS := :YOUR_CHECKBOX_ITEM;
    
      --first delete all entries from event_topics that are not checked
      delete from event_topics
      where ':' || trim(to_char(topic_id)) || ':' not in (':' || vITEMS || ':')
      and event_id = :EVENT_ID;
    
      -- insert all new checked topics into event_topics
      vPICKED := apex_util.string_to_table(vITEMS, ':');
    
      for z IN 1..vPICKED.count
      loop
        select count(*) into vCOUNT from event_topics
        where event_id = :EVENT_ID
        and topic_id = vPICKED(z);
    
        if vCOUNT = 0 then
          insert into event_topics values (:EVENT_ID, vPICKED(z));
        end if;
      end loop;
    
    end;
    

    To extract the items all turned on during the loading of the page, you need to load on before the process of the header:

    declare
      vPICKED apex_application_global.vc_arr2;
    begin
    
      select to_char(topicl_id)
      bulk collect into vPICKED
      from event_topics
      where event_id = :EVENT_ID
      order by topic_id;
    
      :YOUR_CHECKBOX_ITEM := apex_util.table_to_string(vPICKED, ':');
    
    end;
    

    Hope this helps,
    Dirk

  • I want that all my color settings set to sRGB so that when I print from my professional lab colors will match my screen (I'm calibrated). When I hit save under and see that there is a check box to embed the Adobe 1998 color profile in the menu, but I want

    When I hit Save as menu drop-down is checked to integrate adobe 1998 color profile and I want it to be srgb. Where can I change so that it is srgb and the rest in this way? My impressions of my professional lab and come back cast, flat and dark green or blue for them. My monitor is calibrated according to me its because somewhere I have adobe 1998 selected and color profiles are the translation not properly so I need everything to be srgb. I am also shooting srgb. Help, please!

    If you think that your calibration profile is disabled, follow these steps:

  • "Check box" form of the ADF does not work in JDev11.1.1.2

    11 GR 1 material:

    I've created an ADF form in a JSF Page and I deleted a column and move the same column again as a "selectBooleanCheckbox ADF.
    and in Boolean binding dialog box Edit: I entered the value as 'True' selected and deselected as 'false '.
    and when I run the data page not synchronized with chech box item.
    Note:-while the element box is working with Adf Table in example #145 to the link http://blogs.oracle.com/smuenchadf
    can someone help me?

    concerning

    Forakora

    Hello

    just tried and discovered that you define partial triggers for the af: selectBooleanCheckbox as:

                  
                  
                  
    

    Kind regards

    Branislav

  • check box assigns the value of the export of a dropdown list

    Hello

    I have a form where there are three drop-down lists (DD), each with several selections containing specific export values (products, therefore, drop 1 to lets say cars models, combo 2 has level of finish and drop 3A guaranteed). The value of exports is summarized in a "Total" box that shows the total cost for your car. This field uses a simplified notation DD1 + DD2 and DD3 field.

    I want to add in a reduction box, so when the user selects they are exempt, VAT (checkbox) it takes only 20% of the price of the model.

    So if checkbox = Yes, it calculates, DD1(-20%), DD2 and DD3.

    I am struggling to find how to apply the discount to the value of export a DD.


    Any ideas?

    You will need to use a custom calculation script, like this (you will probably need to adjust the names of fields used in the code):

    var v1 = Number(this.getField("DD1").value);
    var v2 = Number(this.getField("DD2").value);
    var v3 = Number(this.getField("DD3").value);
    var discount = this.getField("VAT exempt").value=="Off" ? 1 : 0.8;
    
    event.value = (v1*discount) + v2 + v3;
    
  • Check box if the numeric field is equal to the value

    Newbie needs help!

    I am writing a script to check a box, but only after a numeric field adds up to "4".

    If you look at my attachment, "Student 1" has four check boxes (skills before the course, courses, etc.).  Each time that these boxes are checked/unchecked, the numeric field + or - 1 for the rawValue.  The script that I have problems with is on the box next to student 1...

    Here's the script of 'calculate' attached to this box:

    If (stu1_results.rawValue == 4) {}

    CheckBox_stu1.rawValue = true; Select the check box

    else {}

    CheckBox_stu1.rawValue is false; Clear the check box

    }

    Any advice would be great!

    Mike Schaefer

    (blinkyguy)

    There were two things wrong with your code. Logically, it was fine, but you have been mixing an entitled, declaration of the NTS and a comparison. In an if statement if you wantt o compare two values that you need two equal signs. If you want to assign a value to another, you need a single equal sign. Who was number one. The second is when you assign the value of the checkbox. The power values are 1/0 not true/false. So, you can either modify your code to assign a value of 1/0 instead of true/false or modfiy the box to the true/false as values instead of 1/0.

    The code should look like this:

    If (stu1_results.rawValue == 4) {}

    CheckBox_stu1.rawValue = 1;

    } else {}

    CheckBox_stu1.rawValue = 0;

    }

    Paul

  • How do the &amp; quot; text &amp; quot; After the visible check boxes?

    (The text of Dreamweaver 8, reads)

    Quote:
    To add check boxes to a form:

    1. click in the left column of the sixth row, type check all the musical styles that interest you. (including the period), then press the Tab key to move the insertion point to the next cell.

    2 click the check box button in the category of Forms in the insertion bar to insert a checkbox in the cell.

    3 in the property inspector, type Punk in the name of the check box text box and then click on the button unchecked , if necessary.

    4 click to the right of the checkbox in the table, type Punk, and then press SHIFT + ENTER to create a new line in the cell.

    5 repeat steps 2 to 4 to create the following boxes: Alternative, Tranceand Jazz. See Figure 9-33 (Pg.515 Dreamweaver 8 manual)

Maybe you are looking for

  • Firefox sync - rebuilt account not found on computer

    Windows 7 (Version 6.1.7601 Service Pack 1 Build 7601) lost my profile - after you create a profile, I try to get the synchronization of Firefox (29.01) working between the rebuilt system (office) and the existing system (laptop). I have what should

  • three times I've asked for help, I can't open my attachments. I tried the safe mode, without change. Help!

    I saw someone ask a similar question. I tried in safe mode, no luck. I have an attachment with a PDF, PPS or LSH. None can be opened. Hitting the room attached, says it is scanning, action can save on my computer, then no further. Where does go and w

  • How do I update/configure direction/address IP

    HelloThis is the first time I try to get help from this forum. I hope that I will be answered as soon as possible, because it is really urgent for me!I have been using the LAN wireless for quite awhile, but now, suddenly, it is not possible tomake th

  • FTP problems with the linux ftp server

    Hello I have a problem when trying to get a file via FTP. The FTP server is an embedded linux system, get the file manually via FTP is no problem, but to TestStand, I get the following error: Cannot download the file ' / opt/log/sislog.log'.Check if

  • How can I solve MAPI in Peachtree

    I use the system Peachtree 2009 and on the invoice by e-mail directly from Peachtree. But now it shows can't find MAPI, how can I solve this problem?