List drop-down selection trigger change in the text field

I'm hit a roadblock here. I'm on Adobe Acrobat XI and here's the scenario: I have a list box and a text box.

Drop-down menu field has 3 caps (A, B, C).

If A is selected, the text box = 15 default, but has the ability to change in the text box.

If B or C is selected, the text box = 0 or "by default, but it has the ability to change in the text box.

If I use an if/then with a .value, I'll be able to get the numbers to work, but do not have the ability to edit and keep them there. If I enter another number in another area, the JavaScript code will run and change the text box to 0 or 15.

Any help would be greatly appreciated.

Thank you

Instead to use script logic for the text field, use the drop-down validation script. In this way, that it only will be triggered when you change the value in the drop-down list field, not when you change any field in the file (as the calculation script).

Tags: Acrobat

Similar Questions

  • Change to the text field selection list

    Hi guys,.

    How can I create a dynamic action at random an element to the list of selection in the text field?

    I use a group of buttons radio with two options: YES and no.

    I don't want to not create two items because I'm using the same database column.

    I tried before with two elements "power off" and "carriers", but without success.

    Can you help me?

    Thank you

    Eric

    Eric.Sacramento wrote:

    Already tried that, please see the photo.

    I'm doing something wrong?

    The error message indicates that there is more than one item referring to the same column name. Follow the instructions given above for only a single and invisible element is related to the database column. Shadow points that actually appear in the user interface must not be bound to the database column, but get their initial value of this article, and conditional calculations should be used to copy the input value in the user interface elements for the element to a database column.

  • linking two fields and fill in the two field based on the list drop-down selection box 1

    I work for a small social service agency VERY small non-profit and I try to get our paperwork until the twentieth century. I hope someone here can help me. I have adobe acrobat, but not of other adobe products. I converted our word document that we use for client notes in fillable pdf format and so far everyone is excited to try it. I have a huge problem that I can't understand. I have a customer named created drop-down list box that contains a list of 300 customers. Box 2 is named customer ID and will contain a unique identification code assigned to each customer.

    For example:

    CUSTOMER ID customer JANE DOE 12345678

    So here is my question how can I ensure that when Unetelle is selected 12345678 is already filled in the second field?

    I fill the drop-down list with the names of customer and then enter the customer ID as the value of exports. Note You must have a unique name for each client.

    If your customer ID starts at zero, then you must use a custom JavaScript, so you can keep the zero non significant.

    For the customer ID field, you can use the following custom JavaScript code:

    Event.Value = this.getField("DropBoxFieldName').valueAsString;

    You will need to change DropBoxFieldName name of the drop-down list.

    You will need a mechanism for updating the new customer form and IDs names.

  • With the help of a list drop-down selection

    Hello world

    I scoured the web but couldn't find an answer that can help (I'm probably looking in the wrong places )

    I have a dropdown menu, with several options, I want it so that when the user selects one of them, I am able to move them to the correct screen. The problem is that I can get the index, they take and convert it into an object, but I can't understand how to check that this object matches a given string. My code is below:

    String [] BWChoices =
    {'Sit up', 'Crunch', 'Theatre', 'Pull-up', 'Down', 'Board', ' Leg Raise '};
    Creating object to body weight weight choice
    ObjectChoiceField BWList = new ObjectChoiceField ("body weight:", BWChoices, iSetTo);
    BWList.setFont (MyFont);
    _FMMain.Add (BWList);
    int index = BWList.getSelectedIndex ();
    Activity of object = BWList.getChoice (index);
    activity.toString ();
    If (activity.equals ("Crunch"));
    {
    LabelField evidence = new LabelField ("Proof");
    _FMMain.Add (Proof);
    }

    The evidence label is just here to try to prove when it works, but it always shows :/

    I have being debugged when I get it activity is equal to something else, but it still shows the label.

    Just tried before he can actually go to a new screen with:

    UiApplication.getUiApplication () .pushScreen (new YourScreen ());

    still no luck...

    Any ideas? Also is the best way to do it

    Really enjoy and help and thanks in advance

    Sorry I don't think we have enough here to really fix your code, so let go us with a little theory, since it seems not t be a confusion.

    You did this:

    Go.setChangeListener (goListener);

    When the Go field changes, the listener will be called.  In your case, the field going is a ButtonField, so that the listener is called when a user presses the button.

    ' Public Sub fieldChanged (field field, int context) {.}

    will be called.  The context, you can ignore for now, but you wil notice that there is a defined in the JavaDoc, and allows you to distinguish the user changes, you do.  Not really applicable for a button, but for other fields, very useful.

    When fieldChanged (field, the field passed in will be the area that has changed, so in your case will be the way of the ButtonField.  You can see, in this case, it is probably unnecessary.

    You have this:

    If {(BWList instanceof field)

    that seems redundant - what else is he going to be?  What is the purpose of this statement?

    Similarly, since you know these to be defined in this way, you could probably simplify the following for instructions

    int index = BWList.getSelectedIndex ();
    the final activity String = (String) BWList.getChoice (index);

    and I'm not sure of the try/catch, but I guess it does no harm.

    You say

    "But he always, never moves it just did nothing (which seems off so he wants but it is at the moment).

    Sorry I don't understand this.  Under what circumstances you won't move?  How this is reflected in the code?

    I hope this helps.

  • WebView: cannot scroll through long lists drop-down/select

    I added webview standard, but are unable to scroll through long lists on drop-down lists (html select). It shows just the best selections and im unable to scroll in the list to select something lower.

    Someone else has webview with selection lists for a long time who have this problem, or do NOT have this problem?

    the latest version of the OS fixed this! So update your OS to dev for the device and you should be ok!

  • List drop-down selection within html cfgrid

    I have a html with a drop-down list grid in one of the cells. Its a rerouting menu but for help a standard drop-down list doesn't do the same.

    When it is placed in the cfgrid controls everything works very well with respect to rendering, but the GUI acts a bit strange because of the dhtml and css involved in the controls cfgrid.

    In order to select something from the menu drop-down I have to click on the cell/row to select I want to interact with, so I have to double click it to expand the select control to select an option. Is anyway to bypass this and be able to simply select an item in the drop-down list normally?

    I've included the code for my CFCS that I link below

    Yes I actually solve the problem, but not in coldfusion... I have rebuilt the application in ASP.NET.

  • Several list drop-down menu items to fill the area of separate text even. How can I do?

    Acrobat x Pro, I have figured out how to create a dropdown menu with items that will populate a separate text box, but how do I get several menu items to fill the text box. For example. My menu has three items, cat, dog, mouse. I choose the cat and it appears in the separate text box (hooray). Then I choose "dog" in the same menu. I would like it to appear in the text box even my previous selection 'chat '. Is this possible? I am very new to JavaScript, any help would be greatly appreciated! Thank you

    Change the last line:

    getField("Text_field_1").value += "" + aQuotes [point];

  • Is it possible to add a list drop-down selection to a form of Muse, once exported to HTML etc?

    Hello

    I have created a form and make the features of Muse does not allow a form element to have a menu drop-down. However, I wonder if it is possible to add after you have exported the file HTML etc.? If so someone does know how to approach the issue? I realize there are other alternatives to the addition of forms such as Jotform, but they do not really state how I want that they.

    If anyone can give me a hand, it would be great!

    Hello

    check the last comment in the following thread, see if you can get something useful

    Contact form Widget Radio buttons & falling down

  • Radio button selected user jumps to the text field

    Hello

    Is there a way to blow up a user of a radio button selected in a text field.  For example...

    1. the user will have two options of the radio button.  One option is YES and one option is no.

    2. the user must choose Yes or no (must)

    3. If the user selects YES (radio button), I want the shape of jump them to a text field to fill out additional information.

    I was able to do this with a box, but not the radio button.

    I did research online and via the forums but have not yet found a solution.

    Thanks much for any direction or resources!

    OK, with a checkbox or a radio button, you can use the mouse event to the top, but check the value is different. For the Yes option button where the value of the key (aka export value) is set to 'Yes', you would do something like:

    Script mouse upward to a radio button

    If (event.target.value = 'Yes') {}

    getField("text1").setFocus ();

    }

    Do the same for the box but use the corresponding export value.

  • Try using the drop-down selection list but is a different

    Hi all

    ILO, at a loss, what I'm doing wrong here. Trying to change a field (previously in the textfield) a menu drop-down selection list. All works except one. Looks like a multidirectional selector, even if I put the type in the List select


    http://i.imgur.com/Hz7tP.PNG

    Had no idea of what I need to do to change from falling. Thank you very much.

    You set the height = 4 for the element. You're the problem.
    Make the height = 1.

    Kind regards

  • Get the value of the drop-down list (selectedIndex) and the text field - does not

    Hi all

    I'm trying to find and change the values selected by the user using a drop-down list and text field. Here's the code.

    ChangeRevDetails();
    function ChangeRevDetails(){
    
    
              var myDialog = app.dialogs.add({name:"Enter copyright information"});
    
    
    //    var monthlist = col1.dropdowns.add('myList', undefined, myList);
    
    
              var col1 = myDialog.dialogColumns.add();
              var col2 = myDialog.dialogColumns.add();
      
        col1.staticTexts.add({staticLabel:"Month:"});
              col1.staticTexts.add({staticLabel:"Year:"});
        col1.staticTexts.add({staticLabel:"Rev. no.:"});
        
        var myList = [ "January", "February",  "March", "April", "March", "April", "May", "June", "July", "August", "Sepetember", "October", "November", "December" ];
    
    
         var myMonth = col2.dropdowns.add({stringList:myList, selectedIndex:0, minWidth:100});//{minWidth:100});
         var myYear = col2.textEditboxes.add({editContents:"2013", minWidth:100});   
         var MyRev = col2.textEditboxes.add({minWidth:100});
    
    
        var RevMonth = (myList [myMonth.selectedIndex]);
        var RevYear = myYear.editContents;
        var RevNumber = MyRev.editContents;
        var RevToReplace1 = RevMonth +", "+ RevYear;
        var RevToReplace2 = RevMonth +", "+ RevYear + " Rev. " + RevNumber;
    
    
        var myResult = myDialog.show();
    
    
            if(myYear.editContents == "") //entry is "" 
            { 
            alert("Please enter some text into the contents field."); 
            ChangeRevDetails(); 
            }
            else if(myResult == true) //user entered datas 
            { 
    
    
                alert (RevMonth);
                alert (RevYear);
                alert (RevNumber);
                alert (RevToReplace1);
                alert (RevToReplace2);
    
    
                app.findGrepPreferences = NothingEnum.nothing;
                app.changeGrepPreferences = NothingEnum.nothing;
    
    
                // grep find/change
                app.findGrepPreferences = app.changeGrepPreferences = null;       
                app.findGrepPreferences.findWhat = "[\\l\\u]+?\\s?\\d{4},?\\s+[\\l\\u]+\\.*\\s+\\d+";
                app.findGrepPreferences.appliedParagraphStyle = app.activeDocument.paragraphStyleGroups.item("Back page"). paragraphStyles.item("Legal_7/9");
                app.changeGrepPreferences.changeTo = RevToReplace1;
                app.changeGrepPreferences.appliedParagraphStyle = app.activeDocument.paragraphStyleGroups.item("Back page"). paragraphStyles.item("Legal_7/9");
                app.activeDocument.changeGrep();
    
    
                app.findGrepPreferences = NothingEnum.nothing;
                app.changeGrepPreferences = NothingEnum.nothing;
      
        } 
        else //implies user clicked cancel 
        { 
        myDialog.destroy(); 
        }
    
    
    }
    
    

    The problem is, it does not take the value that the user selects in the drop-down list and the text field. It takes the default value as "January" and the year is '2013' as these two values are given as selectedIndex:0 and editContents: "2013". I compared the coding with a few other scripts work as well, but it does not work. I added several alert boxes to check the value we get.

    In addition, search for it and change also does not work. Please help me on this. Thank you.

    Kind regards

    Bachi. D

    Change the order of dialogresults:

    ...

    var myYear = col2.textEditboxes.add ({editContents: "2013", minWidth:100});})
    var MyRev = col2.textEditboxes.add({minWidth:100});)
    Ditto var = myDialog.show ();
        If (myYear.editContents == "") //entry is «»
        {
        Alert ("Please enter a text in the content field.");
        ChangeRevDetails();
        }
        else //user entered if(myResult == true) datas
        {
    var RevMonth = (myList [myMonth.selectedIndex]);
    var RevYear = myYear.editContents;
    var RevNumber = MyRev.editContents;
    "var RevToReplace1 = RevMonth + ', '+ RevYear;

    "var RevToReplace2 = RevMonth + ', '+ RevYear + 'Rev' + RevNumber;

    ...

    did not have a look for the problem of change to find

  • Select the customer name in a menu drop-down select or be able to type in

    Hello

    Is there a way to allow my users to have an option to select a customer name in a menu drop-down select or be able to kick it...

    Thanks in advance

    Hello

    I don't know about build Apex point of AutoComplete.
    But if you use jQuery UI to create the AutoComplete for the text element, you must limit not list user see all values.

    Kind regards
    Jari

  • Drop-down lists of the fill of the text fields on a different page from the drop-down list.

    Hi all

    I have a form with multiple pages. The first page contains a number of drop-down lists. These lists, drop-down list when the option is chosen, must complete a field text on another page. I can get the drop down menu to populate the text field when it is on the same page, but as soon as I move the text field to another page, the script does not work. Can anyone offer a solution? I used javascript on the changes to the scripts.

    Every time reference you the other object... so I guess in the code located on the DDlist.

    Paul

  • Problem of not seeing list drop-down connection to the wireless network when checking connections network - pc windows 7.

    Problem of not seeing list drop-down connection to the wireless network when checking connections network - pc windows 7.

    I just installed a Belkin modem-router - which went well. Can I connect WiFi gadgets etc. I can also connect to the internet via a network cable to my pc. I also installed a belkin usb wireless adapter and in Device Manager, says it is enabled and works.

    My problem is, I have no way of choice get a WiFi PC to display in the list (from the notification area) and cannot get the pc to give me options to create a wi - fi connection. The more I get to try to do that is "unexpected error"!

    If someone could help on this - I would be very grateful

    Good news - update of my ongoing saga with this Belkin modem/router.

    Got the pc to see wi - fi now. It turned out to be the Zone Alarm! As the router has a firewall, I uninstalled Zone Alarm completely. Also, I went into the properties of belkin usb and checked it was the most recent drivers, it does not so I installed them.

    So far so good

    Thanks for the help

    TREV Smith

  • How can I prevent the text fields and drop downs changed after the form has been signed using a digital certificate? Thank you.

    Hi all

    How can I prevent the text fields and drop downs changed after the form has been signed using a digital certificate? Thank you.

    There is also a checkbox on the dialog box 'Sign' to lock document after signing.

Maybe you are looking for

  • How to establish Manager mailto hotmail?

    We can define mailto to be handled by our web mail, gmail or yahoo email accounts. But I want to hotmail /outlook.com That's how get you gmail/yahoo mail: [IMG] http://img.Photobucket.com/albums/V135/noitidart/how20to20use20hotmail_zpsb12baf06.PNG Li

  • iPhoto still exist in my iOS devices

    I have an iPad and iPhone and iMac, all with the same Apple ID. IN the past, I use iPhoto in my iMac, BUT I did stop using what I use now the new OS X Photo App (automatically tfansfer data between these Apps) Lately, ive started using ICloud library

  • Y550P Trackpad doesn't work when you type

    I am running Win 7 Home Prem x 64 on my i7-720QM Y550P and if I move my mouse pointer using my trackpad and I type a letter, there is an offset second half before my trackpad responds again. This is a really annoying and unwanted feature. My friend h

  • BlackBerry red Passport Glitching, tapping and opening Apps

    Hello I bought a Red BlackBerry passport of Amazon.com in October. Everything worked fine until what verse January or February of 2016 the unit starts glitching. Initially as a flicker of the screen. Then the camera blacked out now it's opening apps

  • HP Officejet 5610 - when the driver is coming to Snow Leopard?

    I just upgraded to Snow Leopard and now discover there is no driver for my printer model - HP Officejet 5610. I know, I know I should have checked before but luckily anticipate problems because there was zero with Leopard. It says software set to upd