Auto insert some text in a text box, via a selection of the option button

Hi all

I'm quite new to work with Adobe Acrobat Pro DC, in fact, I'm new to working with Adobe period. I also took on the task to work to turn a fillable bunch of Word documents as pdf documents on the screen. Through tutorials online, trial & error and videos YouTube, I became accustomed to some of the basics for the preparation and editing of pdf documents.

What I find much more difficult is where the tutorials on how java script commands is added to a form. Is there somewhere I can learn how to add JavaScript for, say, a radio button? I can locate the "execute a JavaScript script" tab Radio button Properties Action but in the past, it is not a lot out there.

My ultimate desire is to be able to have a line of automatic text to insert in a text (results of the APC) box after selecting the radio (WI_0) button. If someone could write the code for this, it would be very appreciated, but above all that, I'd love to learn how JavaScript is used in a form.

Thank you for your time,

BobbyD

OK, in this case you can use the MouseUp event of the fields radio button with this code:

If (event.target.value == "in spec") this.getField("APC_Results").value = "see attached results;

Tags: Acrobat

Similar Questions

  • Prefill a text box from a selection of the option button

    Hi people,

    I just noticed an error in one of my first attempts at Javascript - luckily I don't think that one of my colleagues have noticed yet, but I need to fix it as soon as possible!

    I have two radio buttons naned "Radio Button13". One is for when the person is full time and one for when they are part-time. When the full time button is selected, I get text (that I placed in the value of the button) to fill out in advance a text box below. The text is something like "38 hours per week. Part-time has nothing.

    In the Mouse Up script for full-time, I placed:

    If (this.getField("Yes").value is "1")

    = this.getField("Working_Hours").value ' 08:30 to 17:00 Monday to Friday " < < < this text is same not the same as the value of the button so I don't know why I put that here, this is not what I want in the text box.

    The text of the button value is reflected in the area of text (called "working time") very well, but the idea is that when part-time work is selected, the user is able to enter the hours in the area. You can type, but as soon as you leave the text box, the text disappears.

    Where am I wrong? How can I solve this problem?

    It is not wrong, but it answers my question. If you keep things put in place what they are now, you can use the following custom calculate script:

    (function () {}

    Get a reference to the Group of radio buttons

    and its value

    var f = getField ("Radio Button13");

    v var = f.valueAsString;

    Allow the user to enter text

    Event.Target.ReadOnly = false;

    Located only value in this field if a change in the option box

    is what triggered this script

    If (event.source & event.source = f) {}

    Si (v ! == « Off » && v ! == "«) {}

    Event.Target.ReadOnly = true;

    Event.Value = v;

    } else {}

    Event.Value = "";

    }

    }

    })();

  • I just updated my indesign to CC of CS5. One thing I notice which is annoying is some text boxes and images go live. For example, if you close a text box in CS5 you close the box you see reformat the text to set the new size. In the tex CC

    I just updated my indesign to CC of CS5. One thing I notice which is annoying is some text boxes and images go live. For example, if you close a text box in CS5 you close the box you see reformat the text to set the new size. In CC, the text does not reformat until you are done change the size of the box. It's the same for the images when resizing or rotation re. You don't know what you have until its finished. If you are a little guess instead of see what you're doing while. Is there a way to change this, or does anyone else have this problem. Maybe it's just what does CC. But I'm not a fan... Can anyone help?

    When using the image processing manages, click... for a while... then drag...

  • y at - it a keyboard shortcut for go to the first text box on a page when the focus is on the address bar?

    I can use Alt + D to reach the address bar to enter a URL, but is there a way I can then go to the default text box, to enter data, once the search engine page was opened, using a shortcut key? I have the commands in the shortcut keys page doesn't recognize as not being what I want.

    Not as far as I know. Sites may assign a keyboard shortcut to a text field if they like, known as an AccessKey, but he is not necessarily going to be any consistency, and the site you may not be using one.

    It is possible, there could be an add-on or userscript to help with this. Or otherwise, someone might be able to write one for a particular site.

  • My students use the filling and the signature on a package of .pdf tool I'm going to fill them, but when they record and open the next day their text boxes, that they created with the bucket fill tool and sign all went and many are overlapping.

    My students use the filling and the signature on a package of .pdf tool I'm going to fill them, but when they record and open the next day their text boxes, that they created with the bucket fill tool and sign all went and many are overlapping.

    Hi chbradshaw,

    Instead of filling & signature, tool, use the text comment comment tool, KB doc option. using comments in the PDF, Adobe Acrobat DC files (keyword: Add a text comment).

    Kind regards

    Nicos

  • Muse is changing some text and images to white during the download of FTP

    Muse is changing some text and images to white during the download of FTP.  I tried to delete and re-create these assets, but still their changed to white... and I have a white background, so it seems as if it is not yet here.

    Hi Michael,

    Please share your Muse file with us for assistance.

    Please download on creative cloud or dropbox and share the download link with me in a private message.

    Kind regards

    Akshay

  • When I create a button "submit" text "Submit" does not appear on the actual button.

    When I create a button "submit" text "Submit" does not appear on the actual button. Anyone know what is the problem?

    Depends on how you file the form. In Acrobat, it has a property to set the appearance of the button. In AA 8, field properties appear as below:

    It may vary in other versions (I on other machines), but the basic idea is the same. Need to add the label.

  • Insertion of text boxes CSS on my pages

    I want to be able to insert text in the boxes below and have the info to connect from one column to the other. I think I would need to use CSS and place the divs on these areas, but I'm a little unsure of how to continue. Thanks for your help.

    ~ Scott

    Grizzly-Text.jpg

    OK - on this page-

    http://GWS-sandbox.com/Grizzly.html

    Notice how the background text box grows vertically when you increase the text size in the browser.  In case you are interested in this technique, Google "sliding doors".

    Why is it better?  It is best, because if you use positioning to place the content, you can not use any method to adjust the height of this text box, because positioned elements are removed from the normal flow and can not interact with container elements such as they resize it.  I floated the adjacent divs in position instead, giving me the flexibility of these other methods to stabilize the layout.

    As a designer who wants to work on the web, you have to put the idea of positioning pixelated.  The web is not print.

  • Insertion of text box at the current location of the caret

    I'm trying to understand the best way to insert 'text' in a textarea at the current position of the cursor. Someone at - it advice for where to find it? In Flash, you used to get CaretIndex,

    Im trying to write a component of the code editor, so first of all Im capture the key event of the TAB and then going to insert a tab CHARACTER in the text box... At this time I was doing just that. Editor.Text is this. Editor.Text + ' '; But it is a stupid stupid idea - so instead of add at the end, I need to insert it into the current cursor position.

    Advice would be greatly appreciated. Once I did, I release it under the GPL or Apache license.


    Update: I found
    var: string text = this. Editor.Text;
    This. Editor.text = text.substr (0, this.) Editor.selectionEndIndex) + "" + text.substr (this. Editor.selectionEndIndex);
    This. Editor.setSelection (this.) Editor.selectionBeginIndex + 1, this. Editor.selectionBeginIndex + 1);

  • Bug: Cannot resize some text boxes

    I can't resize certain layers of text box. The layers are not locked, are not their parent groups/folders. Sometimes layers of text unresizable box only allows me to resize vertically (height) but not horizontally. When I try to resize in different directions, the text box layer gets just deselected.

    Hi keanegiga,

    Suggest you to reset the text tool > restart Photoshop and then check out.

    See this article for tool reset: http://blogs.adobe.com/crawlspace/2012/07/photoshop-basic-troubleshooting-steps-to-fix-mos t - issues.html #tool

    Concerning

    Claes

  • Second, try questioning: I inserted a text box in my PDF document, but it is not 'push' as I type a paragraph. I can't understand how to configure for larger amounts of text.

    It looks like little to my question above - party text disappears at the end of the text box. Creation of PDF files

    Never mind - I thought about it.

  • Auto-fill text box values field based on the selection of the menu drop-down

    Try to fill in address, city, province, zip from text fields based on the selected option in a select form field. The following code works fine in Internet Explorer, but in Chrome or Firefox, after selection, text, the fields are filled with the word "undefined."

    I found a PHP script Jquery here version that would probabably do the trick.
    http://StackOverflow.com/questions/3657127/jQuery-populate-text-input-from-table-based-on-select-Valeur

    Maybe someone has a version of CF. they could share?

    Thanks in advance to anyone who can point me to a solution for this code, or a better way to fulfill my need.

    <!--> destinations with address auto-fill, city, etc.
    < script type = "text/javascript" >
    function selectAddress (list) {}
    take the first element is empty
    If (list.selectedIndex > 0) {}
    var locationID = list.options [list.selectedIndex] .value;
    locationAddress var = list.options [list.selectedIndex] .locationAddress;
    var locationCity = list.options [list.selectedIndex] .locationCity;
    var locationState = list.options [list.selectedIndex] .locationState;
    var locationZip = list.options [list.selectedIndex] .locationZip;
    document.getElementById('locationID').value = locationID;
    document.getElementById('locationAddress').value = locationAddress;
    document.getElementById('locationCity').value = locationCity;
    document.getElementById('locationState').value = locationState;
    document.getElementById('locationZip').value = locationZip;
    }
    }
    < /script >
    < b >
    < td align = 'right' bgcolor = "#FFFFFF" valign = "top" > Destination name < table >
    < td align = "left" bgcolor = "#FFFFFF" valign = "top" >
    < select name = "locationID" onChange = "selectAddress (this)" class = "smallforms" > "
    < option value = "" > SELECT the DESTINATION ››› < / option >
    < cfoutput query = "allLocations" >
    "" < option value = "" #locationName # "locationAddress =" #allLocations.locationAddress # "locationCity =" "#allLocations.locationCity #" locationState = "#allLocations.locationState #" locationZip = "#allLocations.locationZip #" > #locationName # < / option >
    < / cfoutput >
    < / select >

    Others: cfinput name = "destinationNameOther" type = "text" class = "smallforms" size = "75" >
    < br / >
    < input id = "locationID" name = "locationID" type = "hidden" > < br >

    Address: < input class = "smallforms" id = "locationAddress" name = "locationAddress" type = "text" size = "30" >
    City: < input class = "smallforms" id = "locationCity" name = "locationCity" type = "text" size = "20" >
    State: < input class = "smallforms" id = "locationState" name = "locationState" type = "text" size = "2" >
    Postal code: < input class = "smallforms" id = "locationZip" name = "locationZip" type = "text" size = "8" > < br / >
    < br / >
    < table > < /tr >

    In your last code done selectAddress refers to "index" but I'm not declared or assigned. I think that you are missing 'var index = list.selectedIndex;' statement.

  • Need text box changes to reflect through the document.

    Hi all

    I'm pretty new in InDesign. I was wondering if there's some way to do master text box changes reflect through the whole document used this master page after you move the text boxes on the documents. Is this possible?

    So. Let's say that there is the block of text with the text on the master page. I decided to use this master page on a given document, but I needed to move the block of text with the text in this document. I won't be able to change the master page text?

    Right. Once ignore you it and move on the live page, change the text on the master does not affect the text on the live page.

    If you have the same frame with the same variable text appear in the same place on multiple pages, put that image on a master page is a good way to make your life easier. But if you need the same frame with the same variable text appears upwards in * different * places on many pages, there are more effective ways.

    You don't mention a version. CS3 and CS4 allow variables (Type > text Variables). You can create a custom text variable and insert this variable in your document. Change the definition of the variable and this will change all at once. I think that a custom text variable cannot be more than one line long, but the only limit to the length of the line is the length of the block of text that is.

    For more than one line, you can make your block of text in a separate document, export it to PDF and then place the PDF anywhere in your document. Edit the new document, PDF export and it will change all at once. In CS3 or CS4, you can also directly put your separate Indesign document into your working document. No necessary PDF.

    Ken

  • Empty text box value when reading about the LV2012 development system but no Production

    Development platform: 32-bit Windows 7, LV2012 Professional Development System.

    Production of platforms: Windows XP.

    We have a test application, we have developed (in haste, I might add) who has a curious problem.  As part of the installation for each test, read us a text box with a serial number entry and record them in the log files.  Series enough.

    This works very well on production machines - no apparent problem.

    However, on the development computer, when I try to read the text box, all I get is an empty string.  I tried to read directly from the Terminal, as well as using a property value box.  Each time, there is nothing in the string.  This is even though I'm looking at the text box and there are visible data in it.

    Clear the text box repeatedly, I'm looking to see if any of those that occur at the wrong time.  And, indeed, I am looking a probe value of ' ' from the property node Value with the string "1234" visible in the text box while NONE of the compensation functions have been affected.

    The test application uses a pretty standard user interface event loop model, with an event loop manages the user input and the other event loop manages the business logic.

    Anyone have any idea what can cause this, or a better search string to find clues?

    Thank you

    Geoff

    As promised, I did go to the bottom of it.

    Simply enable "update of value while typing" gave me the result I expected.

    To explain: I had a key event down to the first text box that has been copied to this text box.  Whenever a key was hit in this text box, the value would be read and updated.  I did not have all the events for the new text box.  It has not been updated to what some other events.  At that time, it was apparently too late (most of the time on the development computer) and occasionally on the Production machine.

    Activation of the "Update value while typing" indicator means that the value field would properly up-to-date each time he has been seen/accessible.

    Life is a learning experience...

  • Hidden text box and question until what the previous text box has a value that it contains.

    Hello

    I'm trying to create a form that has fields required in it. I know that Adobe Acrobat is a great way to say "Hey, you must complete this part of the form...." "so what I wanted to do was put an overlay of a text box on top of the question, so they can't jump some criteria in the form. For example, if my name is John and my last name is Smith I would like the first (first name) box is visible and the second box (surname) to be hidden until I enter any name such as John, Joe, Chris, Abigail, etc..

    Is it possible that there is that the availability of hide a box of text over the expression until something has a value contained in the previous question?

    Sorry, I'm a newbie to creating forms and would like to get help on this situation.

    Thank you in advance!

    Answered my own question. Must have a "!" in front of the = so that any text!

Maybe you are looking for