Fill text fields by checking the boxes

Hello!

I'm new to javascript, but am confident that I can do something like that. Here is my scenario:

I have an invoice form that asks you if there's photography at an event. If there is, there is a fee of $50.

I've set up like this:

Photography?

[No] [Yes] (two checkboxes with the same name and different export values)

I want to be able to fill in a separate text field if the user clicks 'Yes' with the value of 50.

I also want to be able to come back this same text field to a value of 0 if the user clicks on 'no '.

Once again, just a beginner! Thank you in advance!

-Andy

PS. I am using Acrobat X Pro on a Mac.

Wow, thanks! It has worked flawlessly. I really appreciate the help! I have

had tried to find an answer online about it for days.

Tags: Acrobat

Similar Questions

  • in Acrobat DC - I would like to change the font of a strikethrough text field after that I have check the box next to it.

    I work on a document in Acrobat DC and want to be able to use checkboxes as a checklist. Once the box is checked, I want the police in the text box the box is associated with having a police barred .

    Is this something that needs javascript?

    Textfield name is 4MedHistoryMedication1 , and there already Calibri font type.

    The box is named 4MedHistoryMed_1_RXonFile

    When the 4MedHistoryMed_1_RXonFile checkbox is checked, then the text in 4MedHistoryMedication1 will be Calibri ; So any content text already typed into this text field will get the police barred.

    Don't forget that I'm not familiar with Javascript.

    It will take JavaScript and the text field must be put in place to allow rich text formatting. You will need to set the value by using span in order to set the bar. Here is a sample script for the script of mouse upward to a check box that should help you get started:

    Script mouse upwards to the box

    (function () {}

    Set a Boolean value that indicates whether to set the property for each span made out

    which depends on the State of this check box

    var bStrikethrough = event.target.value! == 'Off '.

    Get a reference to the text field

    var f = getField ("4MedHistoryMedication1");

    Get the value of the text spans tabular field that represents the rich text value

    var aRV_spans = f.richValue;

    Set the property for each span made out

    for (var i = 0; i)< arv_spans.length;="" i="" +="1)">

    aRV_spans [i] .strikethrough = bStrikethrough;

    }

    Update the value of the text field

    f.richValue = aRV_spans;

    })();

    More info is Acrobat JavaScript reference.

  • Check the boxes based on the value in a text field

    Hello.

    I'm building a pdf form in Acrobat Professional X. I want to add JavaScript to two checkboxs to achieve the following objectives:

    If the value of a text field (TLigne) is equal to 61, 64, 66 or 67, the first box (PlanACheck) has the value of the object of an audit.  If the value of a text field (TLigne) is equal to 60, 62 or 63, the second box (PlanBCheck) has the value of the object of an audit.

    I have no other than copy and paste Javascript experience, so I'm not sure I use the right language to research. If anyone can provide guidance, I would be very happy.

    Thank you very much!

    Usually this kind of thing will run the custom calculation of the target field script, but the boxes is not a calculation script, so we'll use the text for field Validation script do, with this code:

    this.getField("PlanACheck").checkThisBox (0, (event.value == "61" | event.value == "64" | event.value == '66' | event.value == "67"));

    this.getField("PlanBCheck").checkThisBox (0, (event.value == "60" | event.value == "62" | event.value == "63"));

  • Filled text field, clear the default checkbox

    I've seen a lot of question and scripts on when a box is checked, then the text field copies the value of the checkbox.

    What I'm trying to do is the opposite, i.e. If a text field is empty, the check box by default is checked; But if the text field is filled with what, check the check box disappears. Could someone help with scripts?

    Let's say that the checkbox is named "Check Box1". Enter this code in the custom text box validation event:

    this.getField("Check_Box1").checkThisBox (event.value == 0, "");

  • HELP - lost the button "calculate" in the "text field properties"! I try to summarize the total for separate text fields in a summary box.

    Help, please!  I try to summarize the total for separate text fields in a summary box, but have lost the tab 'calculate' in the 'text field properties area.  Any help would be greatly appreciated!

    When in forms editing mode (Tools > prepare form), select: more > return to the Acrobat form

    In the future, check the box 'this document requires signatures' when you choose at the beginning: Tools > form prepare

    unless you plan to use the form with eSign Document Adobe cloud service.

  • Print everything that is typed in the text field without printing the text fields

    Hello

    I am trying to print a form once filled the text fields I want to print just what I typed in the field, not the text field and the color in the text field. I use CS3.

    Any help would be appreciated!

    Hello Teddy and wellcome to the Group!

    If you want to change the fonts or other things, then you will need to use the PrePrint method. What I usually do is select PrePrint in the 'Show' section in the Script Editor (if you did not go to the toolbar at the top, Windows and select Script Editor). After selecting PrePrint you can now either type the name of the subform and the field you want to change (or you can place the cursor in the script dialog box, hold down the CTRL key and select the field with the mouse) and enter in the JS to change font. It's something like TextField1.fillcolor = "255, 255, 255; (which changes the background in white fill). You can also replace fillcolor fonts or border to change the color of the police or the border. I put a link to an Adobe website that goes over the color JS below changes. You just need to add a method of pre-press for each field that you want to remove the necessary on highlighting. Then once the user hits a button print that you have on the form or use CTRL + P to print the form, it will remove any highlighting.

    Now on the text field does not itself feel that I do not know what you ask for. You ask for the legend does not print or not there is a box around the data entered. If you don't want to have a box surround the text field located in the section purpose of the field (see image below). You just need to select none, if you want to just text. If you want to change that with JS, I put another link below that has the code to change the color of the border in white and the user can't see it. If you do not want to print the legend, the only method is to remove the legend from the text box and replace it with a static text that can be hidden, but I guess that it isn't what you're talking about (correct me if I'm wrong however).

    http://partners.Adobe.com/public/developer/en/LiveCycle/Designer/PDFs/ChangingFieldAndSubf ormBGColors.pdf

    https://forums.Adobe.com/thread/1409617

  • I connect to outlook and put my email address and full security in when I disconnect and reconnect I must sign in everyntime even after checking the box to keep me connected?

    e-mail Outlook for windows 7does won't keep me signed in, I save my e-mail and security question to keep me signed in but after that I have close and open later he always wants me to re sign in? ... Joseph thanks, even after signing, constantly checking the box to keep me in...

    Hi Joseph,

    1. what browser do you use on your computer?

    2. is the specific question to Outlook.com or all web mail?

    I suggest you follow the steps described in the link if you are using Internet Explorer and let us know the State of the question below.

    Automatically fill in website forms and passwords:

    http://Windows.Microsoft.com/en-in/Windows7/fill-in-website-forms-and-passwords-automatically

    I hope this helps.

  • The center of GL is a required field!  Check the definition of file format in the header of the file

    Hello

    I'm new in Hyperion FDM. I'm trying to load a txt file using the FDM multiload feature. I created a VBScript script to load data. When I run the script, it ends without error but doesn't load any data. I get the following errors in the log file

    * Start the journal entry for the Runtime Error FDM [2012-01-29 16:20:07] *.
    -------------------------------------------------------------
    ERROR:
    Code............................................. 2621
    Description... The center of GL is a required field! Check the definition of file format in the header of the file (lines 1-6).
    File = 10_SAMPLE_Actuals_JAN - 2011_RM.txt
    Process... clsMPLoader.fStructGetText
    The component... upsWMPLoaderDM
    Version.......................................... 1111
    Thread........................................... 3212

    IDENTIFICATION:
    User............................................. admin
    Name of the computer... RAJNEESH
    App name... testfdm1
    Client App....................................... WorkBench

    CONNECTION:
    Provider......................................... ORAOLEDB. ORACLE
    Database server...
    Database name, orcl
    Trust connect... Fake
    Connect status... Open connection

    GLOBALS:
    Location......................................... SAMPLE
    Location ID... 748
    Location Seg... 2
    Category......................................... ACTUAL SPENDING
    ID of the category... 12
    Period........................................... Jan - 2012
    Period ID........................................ 31/01/2012
    POV Local........................................ Fake
    Language......................................... 1033
    User Level....................................... 1
    All Partitions... True
    Is Auditor....................................... Fake

    Here is the content and the format of the text file that I am trying to load

    SAMPLE
    ACTUAL SPENDING
    Jan - 2012
    1
    R, M
    a, v, e, v
    A1, version1, e1, 100
    A2, e1, version1, 100
    A3, version1, e1, 100

    Obviously there is something wrong in the above txt file. Someone can let me know whats wrong, I have do. I see also error in the following database tbatchcontents table after the code end run VBScript

    10_SAMPLE_ACTUALS_JAN - 2011_RM. TXT_CHECK FAILURE (CODE = 2621)

    Need your help. Thank you.

    Published by: rajneesh sharma on January 29, 2012 14:02

    Please see this post-online Multiload Essbase

    Thank you

    Todd Rebner

  • Firefox does not allow me to check the box "Remember passwords for sites". What should I do?

    I have iAntivirus, not Norton or McAfee. Wanted to install "remember passwords" and "remember pass" are not add-ons, but the key to the right arrows and after removing these 2 modules I can't check the box "remember password for sites". What should I do? I really want to save my passwords.

    Hello romkom, you can not save passwords when you chose to always run firefox in private browsing mode in the Preferences > privacy Panel...

  • Why Firefox «ask» when I checked the box 'don't ask me '?

    When you try to open media as something of an email, Firefox always shows me the window asking me to check which software program to use when opening the file, even though I checked what, to use and the box 'don't ask me. " I also checked the box 'always use this program ". It is very annoying.

    is always

    This occurs because the file that you download is an accessory, so Firefox will always ask you what you want to do with the file.

    This is a security feature, since attachments can often contain harmful files. So there's no way to automatically open an attachment without asking you first. This box can be confusing when it appears in a download of attachments, given that the setting does not apply to the attachments.

  • When I check the box to me connected, when I sign keep, it does not keep me logged on Windows Live.

    Original title: keep me connected

    When I check the box to keep me connected, when I sign, it dose not keep me connected. What can I do?

    Hello

    You can ask your questions on the links of the following forums.

    http://answers.Microsoft.com/en-us/windowslive/Forum/LIVEmail

  • In the Internet properties and connections and the local network settings, I uncheck the box for a proxy server, but in a few moments, the computer checks the box

    In the Internet properties and connections and the local network settings, I uncheck the box for a proxy server (because it is blocking my access to Internet Explorer), but within moments, the computer checks the box. What can I do to stop the area of the check proxy server box?

    original title: LAN settings

    Have you checked for viruses?

    http://www.eset.com/us/online-scanner/

    It is very common that the virus to do.

  • Apply for a job that an i marked the days I can work a TI says that I have not checked the boxes

    I am to apply for a job a TI says check the box to indacate what days I am free to work, so I check, a TI goes back to the page saying I did not mark the box, I'am so ask what she could be, how can I fix it, if it can be fixed!

    Thank you

    Bettyjo Applehans

    Hi Bettyjo Applehans,

    1. what happens on the only site?

    If so, you will need to contact site support.

    Step 1:

    You can temporarily disable a security software and firewall installed on the system and check if the problem persists.

    Note: Be sure to enable the security software on the computer after checking.

    Step 2:

    If you use Internet Explorer, then you can try to disable temporarily add ons and check if it helps:

    Steps to open Internet with no mode of modules:

    a. click on start

    (b) in the search box, type in Internet explore

    c. Select Internet (no add-on mode)

    For further ifnroation, please see the following article

    How the modules of the browser affect my computer?

    Hope this information is useful.

  • PDFMaker, Options, create PDF/A-1 a in Word. Where can I change the setting so I did not check the box for each file, I create?

    PDFMaker, Options, create PDF/A-1 a in Word. Where can I change the setting so I did not check the box for each file, I create?

    Win OS: Windows 7

    Acrobat 9 Pro

    Hello

    You can do this to change the registry settings.

    Go to run type Regedit to open it.

    First make a backup of the registry.

    Here is how do.

    Go to HKEY_CURRENT_USER > software > Adobe > Acrobat > PDFMaker 9.0 > > Word > settings

    You need to change the DWORD values & chain listed below.

    Chain: JobOptions

    Value: PDFA1b 2005 RGB

    DWORD: PDFComplianceIndex

    Value: 1

    DWORD: PDFComplianceLevel

    Value: 1

    Close the registry editor

    Thank you

    Abhishek

  • Why not an edited image is not at the Organizer even if I check the boxes that indicate that it should?

    I imported a photo in the Organizer.  Now I edit this photo and I check the boxes indicating the program to put the image in the organizer and also the image with the original pile.  Can I save the image.  When I return to the Organizer, 9 times out of 10, the image won't be there, which seems strange, is that once in a while where I worked on the image will appear in the Organizer as it is supposed to, but is most of the time it won't.  This requires me to manually import the image published in the organizer and then manually put the image with the original sound.  It's frustrating because it takes the time it should not.  Can anyone help?

    What is your version of elements?

    What you describe looks like a bug in PSE12. This has been fixed by an update: use the menu help/update.

Maybe you are looking for