Calculate the based form field check

I'm sorry to have to beg for help for what should be a very simple operation but being new script and can't find what I'm looking for

While searching on the forums, I would really appreciate help with this simple operation:

I have a checkbox called 'PlanCheckYes-No' and two form fields, called "Subtotal" and "PlanReviewFee".  What I'm trying to accomplish is to have PlanReviewFee to generate a tax of 35% of 'subtotal' when 'PlanCheckYes-No' is checked.  zero if it is unchecked.  in common language the equation would be something like this:

If 'PlanCheckYes-No' = TRUE, then 0.35 * "Subtotal", if not then 0

Anyone able to give me a hand with this?

Would be greatly appreciated.  Thank you.

Steven Logan

Oregon

Put this in the custom calculation of PlanReviewFee script:

If (this.getField("PlanCheckYes-No").isBoxChecked (0) == "1")

{event.value = this.getField ("subtotal") .value * 0.35 ;}} else event.value = 0;

Tags: Acrobat

Similar Questions

  • Need help in the RTF form field to display the value yes or no based on xml

    Hello

    I have the data in xml format as follows: < CP_ZERO_COST > 2 < / CP_ZERO_COST >

    Now my requirement is, if CP_ZERO_COST is 2, then the column should display 'No' and CP_ZERO_COST is 1 column displays 'yes '. Now this 'yes' or 'no' is not in the xml tag. I need to do in the RTF form field.

    Could someone tell me please how to do this?

    Help, please.

    Thank you

    Try this:






    -You don't have to include this if the only possible values are 1 and 2.

    You can also use if so another logic. Be sure to specify the correct path to join CP_ZERO_COST

    Thank you!

  • Development of cursor in the first form field

    I have Adobe Acrobat Pro XI.  How can I make the cursor appears in the first form field when the document is opened?

    Let's say that the field is called "Text1". Go to tools - JavaScript - Document JavaScripts and add a new script (call it "load") with this code:

    this.getField("Text1").setFocus ();

    Click OK, save the file and you're done.

  • Change the values of the selection-based form field?

    Hi all

    I'm working on a schedule based on a school I'm having a hard time, my brain around programming package.  My DB table has 3 columns - ApptDate ApptTime, ApptSlots.  Most of the ApptDates are listed more than once because there is more than one time for a date.  See example below:

    ApptDate ApptTime ApptSlots
    09/09/201415:002
    09/09/201415:302
    09/09/201416:002

    The page queries this table for all data.  Then, there is a query of this query that selects the different dates and returns them in a drop - the first step of a user to choose their appointment.  The form field depending on whether I'll have is a drop down for time.  What I want to happen is based on the date of the user's selection, the corresponding time will appear in the drop-down time, as long as ApptSlots gt 0.  Before the user selects a date, I want the time drop down to be hidden or disabled.

    Is this possible or am I dreaming?

    Thanks for the help!

    Great explanation. Your explanation is simple, just so proceed and code as you say. No complication, not even AJAX, nothing. Wrapping your brain around it, makes it appear more difficult than it is.

    I'll give you some tips to help you get started. First of all, what you call a database table is not really one. Add an extra column in the table, a primary key. For example, apptID, integer type, 1, 2, 3,..., etc., which gives each appointment a unique ID.

    Then continue like this:

    / * select distinct apptDate as availableDate * /.

      


    / * Select apptTime as availableTime where apptDate = ' #session.selectedDate # ' * /.


  • The pre-population of the child form fields

    Hi all
    I am commissioning user AD based on access policies. I also need to decide the DN of the group to that user based on the attributes of user profiles. For this I created a pre-fill adapter, but it doesn't work (maybe because the name of the group is a child table field).
    I went through the other forums that says we cannot pre-fill values in the child table. Is this true?

    The solution that has been to create access policies and give the name of the group, but in my case, there are about 1000s of different groups. Please suggest how can I set the Group dn in this case.

    Thank you
    Deepika

    Pre fill child Table is not possible.

    You need to add a task in the process definition which will read the user attribute and add groups to the user of the child form to AD object. This task will be called after the creation of the user.

  • Automatic scrolling of text possible in combination with the text form field

    Hello

    We would like to know if it is possible to align the text automatically with a form field that can contain different amounts of characters.

    For example:

    We have a form with a text field for currency at the end of a paragraph of text. The period to mark the end of the sentence should always be printed just behind the currency field. For now, the comma character has a fixed place, just outside the scope of the currency field. It doesn't look good when the currency field contains only 2 characters (due to the white space).

    Is there a solution to this problem?

    Thank you.

    It is only possible if the time text is also part of a text field, preferably the same one. You can use a format or script validation to automatically add this custom text to text from the user, assuming that it is a fixed value or you can know in advance. If it is a value entered by the user, then it becomes almost impossible to do it gently.

  • Adobe Acrobat Pro DC - character spacing in the text form field

    Hi all

    We are creating a form that contains a part of money transfer.

    This form will be printed on preprinted paper that contains special rectangle fields for the characters (f.e. a bank account number = > IBAN).

    Each character must match their respective rectangle.

    Because of the spacing between the rectangles, we must be able to increase the spacing between characters, but it seems that it is not possible for the text to form fields in Adobe Acrobat Pro ms? We looked everywhere, but we can't seem to find it.

    We missed something? Otherwise: are there other options to solve our problem?

    Thank you.

    Best regards.

    Yes, the last item in the dialog box:

  • How can you change the name of the custom form fields?

    I made a form that required me to add a few custom fields.  When the form sends an email, custom fields appear as "Custom".  I need them to say what is the form field.  Can we achieve this by Muse?

    I tried to change the name of the script in DreamWeaver, but it caused the form to fail.

    Any ideas would be great.

    Thank you.

    You are not able to just type the new name in and on "Custom" label above it and see it changed in your email automatically?

  • Unable to select or enter the text in the hidden form field

    If I select 'Visible' to fields in the form that I created, I can enter text in them BUT they show as a gray light box.

    If I select "Hidden" or "Hidden but printable" there is no box grey, but I can not put in value, select or enter the text in the fields once the PDF form is saved.

    It of the same or not I have to save as 'Reader Extended PDF' or not.

    I use Acrobat for Mac.

    Thanks in advance.

    It's highlighting of field assets.

  • What are the interactive form fields

    I found an example of template online that I would use, I saved it in my documents and now I can't change it, what I need to do?

    Hello

    Referring to the following document you could more information about form fields. It will cover everything related to interactive form fields. Please take a look.

    http://www.Adobe.com/content/dam/Adobe/en/accessibility/products/Acrobat/PDFs/Acrobat-XI-a ccessible - forms.pdf

    For the model, please explain more about this.

    What model it is?

    How do you want to change it and what are the challenges that you face while trying to change?

    What version of Acrobat are you using?

    Also, what OS are you working on?

    Please provide us with the above information so that we can help as a result.

    Concerning

    Sukrit diallo

  • Exclude the cfloop form fields

    Is that anyway to exclude some fields of the form while loop on others?  If I could simply not loop on certain fields in the form on the page of action it would be perfect. Not sure if this is possible.  I'm from the form elements, and adding or deleting a list... but I don't want all the form fields to do this.

    Right now the code is:

    < cfloop list = "" #form.fieldnames # ' index 'i' = delimiters = "," > "

    Making functions here to add, remove items from the form in a list.

    < / cfloop >

    You pouvez just add a conditional statement in your loop.  Something like that might work.

    OR

  • How to protect the edit form field text

    Hi - I use Acrobat 9 Pro Extended Windows.  I created a form; in the date field, I need the day to display when the form is activated first (open).  The form is sent to the additional workers, I need to stay in the field of the form and not change the date.  I was able to get the current date to display on the logon form, but each of the following to open the form changes the date.  I even saved a completed form (after you complete the form in Reader) but when he opened subsequently, it changed to the current date.  I'd appreciate any help.

    Thank you.

    Yes, you can use this:

    var currentDate = this.getField("Today").value;

    If (' currentDate == null | currentDate == "") {}

    var f = this.getField ("Today");

    f.Value = util.printd ("mm/dd/yyyy", newDate());

    }

    You must manually clear the field, make it read-only and then save

    file and close it.

    The next time that you open it, the field must be filled.

  • form field check box control in word with report generation toolkit for Microsoft office

    Hi all

    Happy new year!

    In the word template, I insert the checkbox field. It has a bookmark name "Check1."

    Now, I try to checked or unchecked this field using the tool to generate report for Microsoft office and I couldn't. If someone now how to do? I'm using LabView 8.0

    Thanks in advance,

    Boris

    Hi all

    After I posted the question I found how to do it.

    I use the macro feature to control the box.

    Here's the diagram:

    Thank you

    Boris

  • No visible internal location on the client form field

    Hello

    I'll put in place an internal customer for the purposes of the internal application process. However, I am not able to see the field internal location on the form on the site account.

    What could be the reason for this?

    Thank you

    Look at the recipient site.  The details of the order (including the internal customer reference) management are there.

    Jessica

  • Is it possible to create a PDF file that will add and subtract in the same form field?

    I design a pdf form to fill out for a friend in need as an invoice. He wants to add each element of cost that happening automatically and I got including but now he wants to be able to subtract an element if necessary and I am lost as to how to get the correct code. Is this possible?

    So let's say that you have called Item1, Item2, Item3, and discount fields and you want to add the first 3 and then subtract the fourth total (sub).

    You can use the simplified field Notation on the calculation of your total field tab and enter the following in it:

    (Item1, Item2 and Item3) - Discount

    If the field names are more complex then a custom calculation script may be used instead:

    event.value = (Number(this.getField("Item1").value) + Number(this.getField("Item2").value) + Number(this.getField("Item3").value)) - Number(this.getField("Discount").value);
    

Maybe you are looking for