Interactive form with the issue of personal calculation

Hello, I'm new to javascript and met with a coding problem.  I have an interactive pdf file it is a purchase order in bulk.  The form calculates the subtotal.  My form has to calculate sales tax (0.05%), if a resident of Hawaii.  I created a radio button with a Yes or no answer.  The Yes option button exports as a de.005 value.  The answer didn't export the value 0. I know that I mean if the value of 'taxyn' est.005 and then multiply by "Subtotal".  If the value of 'taxyn' is 0 then put 0.   I use the script in the section below custom calculations.  The result is that ' yes' or 'no' radio button the response always calculates the tax.  What Miss me?

the value at 0.05% tax rate

var tax_rate = 0.005;

Get the value of the option button

taxable var = getField("taxyn").value;

Get the value of the subtotal field

Subtotal var = getField("subtotal").value;

Set this field value

If (taxable! == 'Off') {}

Subtotal = Event.Value * tax_rate;

} else {}

Event.Value = "";

}

Thank you in advance!

Melissa

You have entered "totqty" as a field in its own calculations

script... So, whenever the value is updated, it adds its own value to

himself. That is why he continues to expand whenever you make a change to the

option buttons.

Tags: Acrobat

Similar Questions

  • Text, highlighted during the navigation through form with the mouse

    Hello

    I have forms IAS 11.1.1.6. When I click on text tabled in form with the mouse, the text within the field is not highlighted (selected), but the slider is set when I clicked.
    When I tried the same thing on the same form on IAS 10 g and Forms 6i, the text still highlighted so I can run directly over the text.

    Is there a solution (set in) also for 11 GR 1 material (11.1.1.6) forms.

    Thank you and fr.

    The behavior has changed several times between the versions. If there is a situation where the text is not selected, but you prefer that he was, simply create a trigger in a TIMES - NEW - ITEM - INSTANCE and add the built-in SELECT_ALL*. This will cause the text to select when entering.

  • How can I add a form with the user name and password

    I would like to add a registration form with the user name and password. Are there any embedded html or widget for this

    Hello

    Here you will find a similar description:

    https://forums.Adobe.com/message/6078030

    https://forums.Adobe.com/message/6141887

    Thank you

    Sanjit

  • Can I do an auto-fill forms with the repetition of the data?

    I want the user to be able to enter text in a field in the form and get the other fields in the AutoFill forms with the same text (for example, if the name must be entered in three separate places). Is this possible?

    Leave the fields of the same name, and the values will automatically be the same.

  • Fill in the form with the information to another form

    I have 2 forms.  I want to automatically fill the second form with the information of the first shape.  How could I get this?  I tried to import the xml data in the first shape in the second form, and nothing happened.  All fields of the second form have the same name as the corresponding fields on the first form.  I don't know what else I'm missing / need to do.

    Any help is very appreciated!

    Thank you

    Rose.

    Data can be imported into another form, but if it is not based on the same structure or schema (having the same name is not enough), then you can map incoming data to the fields on your form (this is called binding). In the dataview tab, you can create a new data connection (use the sample xml option) and your data structure is displayed in the palette. Then simply drag and drop each data node on the ground where the data should go. An icon will appear next to the data node to indicate that it is linked. Now, when you import the product data knows where you want the mapped data.

    You can also see where each field of the form is bound by highlighting the classified and clicking on the link tab.

    Paul

  • How can I contact the high-level support and have an interactive discussion with the SAME person?

    I tried to get a fix for a problem with my account and her affair with an old email address I want dissociated with my account.  I sent a very detailed and clear request to the service the customer and I get the same, I mean exactly, Word for Word response, which is not at all what I wonder.  In addition, I get these email responses and tells me that I can not reply to this message; I wonder to start a conversation.  Believe or not, when I started a conversation and pasted my explanation and asked that the representative has read my message, that person got sent back the same word-for-Word pre-formatted message.  At that time, I wrote a very detailed re-explanation of with the letters "BOLD" and everything, and the guy or the girl still he sends me a sentence canned.  In addition, it is called cat, but it takes 2 person 5 minutes to respond; they read very slowly or watch TV or something.  During the whole cat 30 min, this representative managed to never sending me a message that he or she actually typed. but the entire cat with all pre-formatted responses.  Are these real people or some sort of software experience HAVE?

    If this community of users is not monitored by Adobe personnel, then I know that this message cannot go anywhere that will help me.  But if anyone has a secret formula to get around the wall built the auto-bots on the front line and get to higher level support, I would appreciate a tip.

    Thank you

    Hello

    I sent you a message. Can you please check and answer?

    -Usman

  • Form with the data of the issue of the database

    I made a form so that I can test the connection to a database and fill in the form with data from db.

    My form is very simple, and I used MS Access to the db.
    The db has two tables:

    Table 1: ID, wheels, cost
    Table 2: ID, brakes, cost

    The form of hierarchy:

    Snap1.jpg

    Form:

    Snap2.jpg

    Displaying the data

    Snap3.jpg

    Brake and wheel data flows into the ddlists of the db.

    Cost values display the costs in the table.


    How to "bind" the cost value of the wheels to the wheel data, so that when you select "wheel 2" package. "
    the ddlist, the cost value of the wheel 2 package appears in the wheel cost field?


    How I will summarize cost fields to provide a total?

    I downloaded the form and the db here: https://Acrobat.com/#d=HEGvv-CMb0o5uPGxisU1Kw

    You need to make calls to two DB. 1 the one you have made already that will fill the DDList with appropriate values. Then a second call that will pass a SQL statement to the DB to retrieve the record that contains the value of the wheels or brakes that the user has selected in the DDList. This part is possible with the code. There is an example how to proceed at this place.

    http://Forms.stefcameron.com/2006/09/29/selecting-specific-database-records/

    You can mine this site for another form of information DB because it has a couple of different entries on access DB.

    Paul

  • How can I change the source of the region of the interactive form with a button

    On the first page of the interactive form the user wants a button to enjoy on, for example: "select * from mytable where name = 'Doug' to a button on the top of the form."
    Is this possible.
    Thank you
    Doug

    Hi Doug,.

    Take a look on: Re: dynamic query for a report it can be a bit limited for what you need, but can give you ideas

    Andy

  • Navigation in the form with the arrows or keys of planning tab

    Hello

    We have some users who are frustrated with navigation in the planning forms in 11.1.2.3.  That's what I've noticed, and I would like to know if this is the way in which planning is supposed to work, or if we have bugs.  Our browser is IE 8, but we get the same behavior in Mozilla.

    1. we can use the arrow keys and move in all directions, but cannot change the cell, unless you click with the mouse.  In edit mode, we can not arrow out.

    2. we can tab from cell to cell, modify the data and tab on.  If we tab in a read-only column, we are blocked and cannot tab out.

    I don't like logging SRs for that sort of thing, but the support guys, I'm supposed to challenge such things.  It might be something wrong with our implementation.  Is this normal and EXPECTED?

    Thank you, Kevin

    This was noted as a known issue in Bug 17282780 : INTERNET EXPLORER - SHAPE CELL cannot BE OUT WITH KEYS, CURSOR, TAB or ENTER

    This problem is caused by the introduced interface 11.1.2.2 ADF go. Oracle Dev still working on this issue.

    HTH-
    Jasmine

  • interactive PDF with the text box replace Chinese simsun font

    Hi all

    We have designed an interactive pdf with text fields. We need the text fields in a Chinese font. I understand that this cant be done in Indesign (change the police seized in Chinese), I moved the file to Acrobat Pro and used the text property to change the font Simsun but when we try the police is always in English. Any ideas on how to fix this problem?

    Thanks in advance

    Paul

    It will take the user to install the Asian language pack and or traditional Chinese:

    Adobe - Adobe Reader: for Windows: Adobe Reader 11.0.09 - Pack of Asian and extended language font Packs

    When the user attempts to enter Chinese characters, it will invite the user to download if is not already installed. Large unicode fonts get not include for the use of form fields as other fonts are.

  • Interactive report with the subreport Details on the same page

    Hi all

    I am fairly new to APEX, sorry if my question is too obvious. I use Apex 4.0.2 on top of Oracle 11.2.

    I have an interactive report that lists the contents of a table. Since there are a lot of columns in this table I would like the report to only show that some identifier columns and all of the currently selected folder is displayed using another report in a separate area on the same page.

    The 'link' on the interactive report column is almost that, except that he jumps on another page; I would just like to have a subreport, updated with the data that is selected instead of a new page is displayed. Does anyone know how to do?

    Thanks for your help,
    Chris

    Chris,

    This looks like what I usually do in my referential data.

    I use the wizard to create the "report."

    I make sure that the two regions (the form and report) will be created on the same page number

    so I check/change the order of regions (second report in the first place, form)

    then I put in the form to display in the column 2

    Kind regards
    Richard

    P.S., the report shows only enough columns to recognize records. the screen displays all records

  • Best way to reset all fields of form with the exception of 1

    Hi, I have a button with the click event:

    xfa.host.resetData ();

    However, there is a field that is associated with the mechanics of form and not the user interface that calculates a number of days.  I want that the calculation to stay after the reset of all fields in the form.  How can I do better?

    Thank you!

    Hello

    A workaround is to declare a variable whose particular field value. Then reset the form. Then reallocate the specific field with the variable:

    var vField = TextField1.rawValue;
    xfa.host.resetData();
    TextField1.rawValue = vField;
    

    Hope that helps,

    Niall

  • a simple form with the "submit" button: can it look better?

    Hi all

    I did not imagine that a simple form (with Textfields and ChoiceFields) could do a lot of problems:

    I would like to ask a few basic questions about it. First the code (Simplified):

       GridFieldManager formfm;    
    
            EditField surname = new EditField("", "-", 25, Field.FIELD_LEFT | Field.FIELD_VCENTER | EditField.FILTER_DEFAULT);
        EditField email = new EditField("", "-", 25, Field.FIELD_LEFT | Field.FIELD_VCENTER | EditField.FILTER_EMAIL);
    
        public FormFieldManager(){
    
            formfm = new GridFieldManager(2,0);
    
            formfm.add(new LabelField("who: ", Field.FIELD_RIGHT | Field.FIELD_VCENTER));
            String[] choicewho = new String[] { "Mr", "Mrs", "Miss" };
            ObjectChoiceField who = new ObjectChoiceField("", choicewho, 0, Field.FIELD_LEFT |Field.FIELD_VCENTER);
    
            formfm.add(who);
    
        formfm.add(new LabelField("Surname :", Field.FIELD_RIGHT | Field.FIELD_VCENTER));
        formfm.add(surname);
    
        formfm.add(new LabelField("E-Mail :", Field.FIELD_RIGHT | Field.FIELD_VCENTER));
        formfm.add(email);
    
        ButtonField sendButton = new ButtonField("Send", Field.FIELD_HCENTER|ButtonField.CONSUME_CLICK);
        formfm.add(sendButton);
        FieldChangeListener listenerSendButton = new FieldChangeListener() {
        public void fieldChanged(Field field, int context) {
    
        try {
            String data = "send=true&surname=" +surname.getText();
            data += "&email=" + email.getText();      httpPost("http://bla/sendData.php", data);
        } catch (IOException e1) {
            e1.printStackTrace();
        }
        formfm.deleteAll();
        formfm.add(new LabelField("Grazie!"));
        }
      };
      sendButton.setChangeListener(listenerSendButton);
    

    now my questions:

    (1) don't miss something (style) for the EditFields? At the present time, it is possible to change them, but the behavior (9700 Simulator) is strange: it is 'difficult' to get from one field to the other and everything moves sometimes when editing...

    How do you define a standard form that seems 'normal' and can be completed as expected in other applications? (Swifts nothing, it is possible to access the next field with the expected key / trackpad (I have no touch screen)) and so on?

    The EditFields do not even have a border, but I guess that's the standard case on BlackBerry.

    (2) the ObjectChoiceField is also very ugly... It's too big... Is it not possible to reduce the size without much effort? (I couldn't everride it correctly). (I also tried with radio buttons, but unfortunately I can't add a RadioButtonGroup to my LayoutManager, strange)

    (3) it is perhaps a stupid question: I can't get the text selected from the ObjectChoiceField (to send it can in data).

    AM EditField, it's simple:

    editfield.getText()
    

    But how is it with my ChoiceField?

    I found getSelectedIndex() but it provides a value int not text...

    Thanks in advance for any suggestions!

    silizia

    1. you have defined fields as follows:

    EditField family name = new EditField ("vorname:", "-", 20, EditField.FILTER_DEFAULT);

    The 20 means 20 characters, so it's all the field allows you to enter.

    2. Yes, the mail filter is pretty useless.  Use the EmailAddressEditField instead

    3. you can play with the scroll, but the best thing to do is to set the focus on the first field that you want people to pull together - usually the upper part of the form.

  • Wizard built in form with Validation issues

    APEX 4.2.4, running with the Wizard built in form, with a collection as a source of data from a table. I have a manual process to save the data in my table, but I have a couple of columns having validation Wizard built on them.  When I try and save I get the message annoying that it means my data are tool and I need to update my table...

    I thought that this could be due to having disabled on my form, or perhaps because of the unalterable columns columns...  However, when I went and built a manual validation routine (have look through the g_f00x table storing data from columns one) I was still able to get this annoying message "Outdated information" to appear...

    Does anyone have a reliable solution when using forms in a table to get rid of this message?

    (Previous conversations showed my group here how to remove the "Save before paging message", then perhaps another similar solution there...)

    Thank you

    Tony Miller

    Ruckersville, WILL

    Tony Hey,

    Only point fcud table?

    You can just run

    $("input[name=fcud]").val("C");
    $("input[name=fcs]").val("");
    

    No need to use. each(). I have not really a configuration with a form of hybrid tab on a collection at hand to test, but I think that just those of compensation and submission should not produce these errors. I could be wrong however. Try to start with debugging to see if you can spot something?

  • Open the form with the parameter send

    Hello to all the

    I have this Code to open a form with send a parameter form of the anthers

    I'm doing two settings in both forms

    but gives error

    FRM-40010 c:\ cannot read...

    The code is: -.

    declare

    pl_id paramlist;

    Start

    -pl_id: = CREATE_PARAMETER_LIST ('DEFAULT');

    PL_ID: = GET_PARAMETER_LIST ('Maintain_param');

    If not id_null (PL_ID) then

    destroy_parameter_list ('Maintain_param');

    end if;

    pl_id: = CREATE_PARAMETER_LIST ('Maintain_param');

    ADD_PARAMETER (PL_ID, "P_user_stud_id", TEXT_PARAMETER, to_char (': STUDENTS.user_stud_id'));

    OPEN_FORM ('C:\Hieet\SUPLY_CASH_RECIVE.) FMX, PL_ID');

    DELETE_PARAMETER (PL_ID, 'P_user_stud_id');

    end;

    What is the error

    I use application server 10g and 11g db



    Thank you for all

    And I'm sorry for the inconvenience

    I modified the code for:

    declare

    pl_id paramlist;

    Start

    -pl_id: = CREATE_PARAMETER_LIST ('DEFAULT');

    PL_ID: = GET_PARAMETER_LIST ('P_user_stud_id');

    If not id_null (PL_ID) then

    destroy_parameter_list ('P_user_stud_id');

    end if;

    pl_id: = CREATE_PARAMETER_LIST ('P_user_stud_id');

    ADD_PARAMETER (PL_ID, "P_user_stud_id", TEXT_PARAMETER, to_char(:STUDENTS.user_stud_id));)

    OPEN_FORM ('C:\Hieet\SUPLY_CASH_RECIVE.) FMX ", ACTIVATE, SESSION, NO_SHARE_LIBRARY_DATA, PL_ID);

    -DELETE_PARAMETER(PL_ID,'P_user_stud_id');

    end;

    and

    I create in an abstacle Trigger

    when_new_form_instance

    and write the code

    : STD_MONEY_RECEIVE.user_stud_id: =:parameter.p_user_stud_id;

    Thank you for all

    Thank you for all

    Concerning
    Ibrahim

Maybe you are looking for