If I get the user to select a location in a drop-down box

If I get the user to select a location from a drop-down list (Atlanta, Orlando, 14 sites in total, etc.), then I want to write the address of this place in a text field which is the best way to do it I tried several if statements and did not get good results. any suggestions?

Here is the code I use... It retrieves the value of Location_1, and then returns the address

var Location = this.getField("Location_1").value

If (Location = "Atlanta") {}

Event.Value = "Barnes HC - Atlanta \n 2030 Powers Ferry Rd Atlanta, GA 30339-5016 \n \n 678-627-0077 \n";

}

If (Location = "Birmingham") {}

Event.Value = "Barnes HC - \n \n 120 Oxmoor Blvd Homewood Birmingham, AL; \n \n 35209-0000 205-667-9193 \n ";

}

If (Location = "Crestview") {}

Event.Value = "HC - 2207 Crestview\n Barnes S Ferdon Blvd\n Crestview, FL\n 32539-8458\n 850-683-0888\n O2 Lic # ';"

}

If (Location = "Dothan") {}

Event.Value = "Barnes HC - Dothan\n 3236 West Main St, Suite 1 & Dothan, AL\n 36301-4130\n 334-671-1027\n 2\n";

}

If (Location = "Gainesville") {}

Event.Value = "Barnes HC - Gainesville 1700 NW 80th Blvd. \n Gainesville, FL 32606-9177 \n \n 800-825-1733 \n O2 Lic #"; "

}

If (Location = "Jacksonville") {}

Event.Value = "Barnes HC - 3728 Philips Highway, Suite Jacksonville\n 32\nJacksonville, FL\n 32207-6840\n 904-301-1050\n O2 Lic #";

}

If (Location = 'Panama City') {}

Event.Value = "Barnes HC - 2425 City\n Panama Martin Luther King Jr\n Panama City, FL\n 32405\n 800-434-0822\n O2 Lic # ';"

}

If (location = "Tallahassee") {}

Event.Value = "Barnes HC - Tallahassee\n 2524 Cathay Court\n Tallahassee, FL\n 32308-4248\n 800-464-8455\n O2 Lic #";

}

If (Location = 'Tampa') {}

Event.Value = "Barnes HC - Tampa\n 5483 waters Ave, Suite 1200 N\n Tampa, FL\n 33634 813-888-7607\n 1205\n O2 Lic # ';"

}

If (Location = "Tifton") {}

Event.Value = "GA\n HC - Tifton\n 2201 US Hwy 41 N unit K\n Tifton, Barnes 31794 - 2754\n 866-876-9114\n."

}

If (Location = "Valdosta") {}

Event.Value = "Barnes HC - Valdosta\n 200 S Patterson St\nValdosta, GA\n 31601-5621\n 800-422-5059\n";

}

If (Location = 'Waycross') {}

Event.Value = "Barnes HC - Waycross\n 2875 Knight Ave\n Waycross, GA\n 31501\n 866-284-9190 \n";

}

currently I have this under the field Calcualation of the text box, I want it written on. Is there a way to better / easier to do this?

I need to write the field like this:

Barnes, HC - name of the location

Address 1

Address 2

City, State Zip

Phone

O2 Lic. #

Sorry, it's so long. Thanks for any help.

SOLVED used if (location is "Locationname") instead of a single "="

Tags: Acrobat

Similar Questions

  • Get the user name in the select LOV

    Hello!

    I wonder if its possible to get the user name of the currently logged in user and pass it as a variable in a select statement used in a dynamic LOV in Oracle AS Portal?

    What I'm trying to do is pull all values in a table that corresponds to the current name of user to user on a portal report

    (as an approximate example)

    Select the color from mytable where username = 'whatever is the user name would be here. "

    And then the current user would get a list of values to select based on the values entered in this table.

    The issue I'm having is determine how to complete part "regardless of the user name is would be here" with the actual recorded in user name (or even if its possible). I know that on the portal, we can do #USER. FULLNAME # to display their username, is there a similar "variable", can be used to get the user name for a call to sql LOV?

    I can make it work if I statically resolve the user name to a particular value (ex: where username = "Joe.Hacker"), but I'm not sure if theres value a variable or a bind (for lack of better term) to enter the name of the user on the fly... dynamically.

    Portal.wwctx_api.get_User can be used in your report of Portal SQL query to get the user_name of the currently connected user portal. For more information about wwctx_api, see 10.1.2 portal API documentation or 10.1.4 at http://www.oracle.com/technology/products/ias/portal/html/plsqldoc/pldoc1012/index.html or http://www.oracle.com/technology/products/ias/portal/html/plsqldoc/pldoc1014/index.html

  • HW 2 get the value to select only one option selected by the user in the bean support

    IAM using the select only one option button that is filled during execution.

    I want to get the value selected by the user of a choice selection in the bean to support for other operations of... .IAM using this method, but I got a null pointer exception.

    Public Sub test (ValueChangeEvent tokenChange)
    {
    Integer tokenIndex = (Integer) tokenChange.getNewValue ();
    DCIteratorBinding tokenListIter is getBindings1 () .findIteratorBinding ("TokenIDVOIterator");. in this line null pointer exception
    Token of the line = tokenListIter.getRowAtRangeIndex (tokenIndex.intValue ());
    currenttoken = (Number) token.getAttribute ("TokenId");
    System.out.println ("token ID selected:" + currenttoken);

    }

    I want to know if there is any method to get the value of the value selected by the user to select a choice...

    pls help? //

    3 words:

    "research on the forum.

    asked and answered countless times.

  • [MAF] How to get the user name and password after login?

    Hi Experts,

    I have a call to REST where it requires identification information of the user (uname and password) to identify the data that belongs to who.

    Authentication has been made with OAuth.

    I believe that there is an API to get the user name and password in the CRG

    See you soon,.

    Hendry

    Hello.

    You don't need to manipulate the credentials yourself in code. MAF will propagate the logon cookie or inject the identification information in the HTTP header if cookies are not supported.

    To do this, you must select the purchase option of cookie from the server connection Include in REST in the dialog box create a connection Login MAF , such as discussed here:

    http://docs.Oracle.com/middleware/maf210/mobile/develop/MAF-securing.htm#ADFMF23732

    In addition, you must attach the policy of security appropriate to the connection, as explained here:

    http://docs.Oracle.com/middleware/maf210/mobile/develop/MAF-Web-services.htm#ADFMF23697

    Best regards

    Frédéric Desbiens

    Senior Product Manager

    Mobility and Cloud oracle

    Twitter: @BlueberryCoder

    blog: http://blogs.oracle.com/blueberry

  • Get the user logged in PL/SQL

    Hi, I need to get the user name of the user currently connected to the database in PL/SQL.

    I discovered that this can be done by using the following statement:
    select USERNAME into user from v$session where audsid = sys_context('userenv','sessionid');
    The problem is that the above statement will work for a user with privileges higher (if I run it with a user at a disadvantage, I get a table or view is no mistake) and I need to do for any user.

    How can I do this?

    Thank you
    Komyg

    deleted duplicate caused by an error in the forum

    Published by: BluShadow on November 21, 2008 14:01

  • Wait for the user to select the OK button

    For my application, I can't use a simple MessagePopup where the user must select the OK button to continue.

    I created a new Panel with just a text message and an OK button to act as a MessagePopup.

    When I call InstallPopup and the box pops up that I have to wait until the user selects OK before continuing as the MessagePopup.

    How can I accomplish this?

    Thank you!

    John W.

    The popup has no effect on the mouse: it can happen that you have a function that manipulates the cursor before the popup is displayed? A SetWaitCursor (1); would be sufficient.

  • Asking the user to select a file path to record data to

    Hello

    To improve the 'user interface', and the usability of my VI, I would like to have the dialog box "select file path" appears automatically, rather than create a user by clicking on an icon on the front panel to display the path of the file dialog. The 'order' of operations would be as follows:

    VI implementing--> Dialogue request to the user the name of the file--> VI adds automatically it appropriate extension--> traditional dialog windows 'save file' opens to allow the user to select the appropriate folder to save the file in--> rest of VI runs.

    I have everything other works independently to obtain registration of the file dialog is displayed automatically. Currently, the only way I can do that is to have the user to select the folder to save ahead to launch through the façade, but would like to remove this step and as soon as they clicked 'OK' on the previous dialog (file name request) have the "Save file/select the folder" dialog appear.

    Thank you

    I think you are looking for the file Express VI dialogue. Be sure to post if this isn't what you're looking for.

  • "Changes Made" during the closing - how to get the user's response?

    When you press the close button after the change of some fields in text on a form, how can I find out what the user has selected? (Save, delete, cancel)

    Hey,.

    I found this link:

    http://www.BlackBerryForums.com/developer-forum/184021-save-discard-cancel-prompt-capture-button-SEL...

    After reading it, I wrote a little lil of the code.

    public boolean onSave()
        {
            Dialog.alert("Saved Data");
            return true;
        }
    

    It works for me and made the work of what I need. In my application, I want to save the data that a user makes when they leave the page. This code is called if 1) a change has been made on the page, and 2) if the user clicks on the "Save" option in the save/discard/Cancel dialog box.

    Hope that helps

    Mike

  • When I go to a favorite websight how can I get the user id and the password to open the view without having to put in me? Barry was soon

    When I go to a favorite websight how can I get the user id and the password to open the view without having to put in me? Barry was soon

    Hi Barry,.

    Please contact Microsoft Community.

    It would be great if you can answer the following question:

    What browser you use on the computer?

    If you are using Internet explorer, I suggest you to follow these steps to turn on the AutoComplete feature and check if it helps:

    (a) open Internet Explorer.

    (b) click on the Tools button and then click on Internet Options.

    (c) click on the content tab.

    (d) under AutoComplete , click settings.

    (e) check the address bar, Forms, usernames and passwords on formsand ask me before saving passwords check boxes.

    (f) click OKand then click OK again.

    Let us know if this can help, and if you need further assistance.

  • Restrict the user to select a fixed number of values only to the SelectManyShuttle component

    Hello

    I'm working on JDeveloper 11.1.1.7.

    My requirement is to allow the user to select a fixed number of values using the SelectManyShuttle component only.

    Suppose if I have 10 available values in the left part of the element of the shuttle, I should allow the user to shuttle only three values on the right.

    In the image below, I already have 3 employees. Now the user should not be able to select employees more.

    < af:selectManyShuttle label = "Label 1" id = 'sms1.

    value = "#{pageFlowScope.shuttleBean.selectedEmpNames} '"

    leadingHeader = "all employees".

    trailingHeader = "selected employees.

    simple = "true" >

    < f: selectItems value = "#{pageFlowScope.shuttleBean.allEmpNames} '"

    ID = "si1" / >

    < / af:selectManyShuttle >

    Shuttle.png

    Can you please share your ideas to achieve this?

    Respect,

    Vinod

    There are different strategies how to implement this. The easiest will be to check the size of the selected list when the user cklicks the button finished. If the number is larger that the size limit display you an error message.

    Another way would be to use a valueChangeListener and the listener, check the size of the new value and add the tonthe size from the size of the already selected list. Then display an error message.

    Timo

  • How can I get the user name (the user who has registered their own personalized interactive report) in the application

    Hello

    I want to get the user name. Who saved their own custom application of the Apex report.

    If someone could please help to get user names.

    Thanks in advance.

    Kind regards

    Cyril S

    A possible source: see in the following metadata table: apex_application_page_Ir_rpt

    You will need the id of the application, the page id and the id of the report to the information, which is located in the application_user column...

    Thank you

    Tony Miller
    Software LuvMuffin
    Ruckersville, WILL

  • How to get the user name during the execution of a workflow?

    Here's what I would do:

    Say that each user is allowed to have 4 instances QA, create a workflow when a user run from vCenter plugin, it must be able to get the user name of the SSO user jsmith, and then he questions if there is an existing virtual machine jsmith_qa1, jsmith_qa2,jsmith_qa4, etc., if there isn't one, then create one for him; If not, indicate to the user that there are already 4 cases.

    I found that I can use getCurrentLdapUser to get [email protected] , now I want to remove the domain.name (there are several areas):

    username = actionResult.userPrincipalName.replace ("@[a - z].") +","");

    This does not work. Anyone know where I can find the right document for the document script of vRealize Orchestrator?

    Thank you!

    Jack

    vRO uses javascript as its scripting engine.

    UPN var = actionResult.userPrincipalName;

    var username = upn.substring (0, upn.indexOf("@"));

    Something like this will give what you want. You could also do a replacement, but I think that you should remove the quotes around the regex and use "/" instead.

    username = actionResult.userPrincipalName.replace (/ @[a - z] "+ /," "");

    Paul

  • I can't get my calculations right away, even after the selection "commit selected value immediately" on my drop-down menus. Any ideas?

    I can't get my calculations right away, even after the selection "commit selected value immediately" on my drop-down menus. Any ideas?

    The field calculation order is probably not set correctly. The specific configuration procedure it depends on which version of Acrobat you are using. Acrobat 11, you would go first in forms editing mode (Tools > forms > change), and then select:

    Tasks > other tasks > set field calculation order

  • Advanced Action help - the user must select all before moving on to the next slide

    I need a tip action that will require the user to select a number of option buttons containing information until the next button appears. I don't know how to write it. I want the user to be able to select each button in any order that they choose. Can someone give me a step by step process? Your help is greatly appreciated!

    What version do you use? Why radio buttons? The behavior expected normal of radio buttons is that only one can be selected, you seem to ignore what is generally accepted. As having a next button appears only after several items have been selected, this has been explained many times in this forum and have many examples in my blog. They are free, maybe not considered worth nothing...

    You need a variable associated with each item. Click on an item to trigger a conditional action advanced or shared with two decisions. First decision is simulated standard action, rotate the variable from 0 to 1, then is a real condition that will make the next visible button if all variables have the value 1.

  • How to use JavaScript to limit the number of boxes to check the user can select a PDF form?

    How to use JavaScript to limit the number of boxes to check the user can select a PDF form?

    Here's the working solution

    Please rename all the boxes like chkBox0, chkBox1... .chkBox30 (must start with 0)

    Value of exports of each checkbox must be "Yes" (default value is Yes)

    Place this Code at the level of the Javascript Document

    -Code JavaScript document-

    var counter = 0;                Checked the meter

    -Count boxes checked again when the document is closed and reopened.

    for (var i = 0; i)<= 30;="">

    If (getField("chkBox"_+_i).value == 'Yes') {}

    Counter += 1;

    }

    }

    -The function of validation-

    function validateCheckBox(name,value) {}

    If (value == 'Yes' & meter)<>

    Counter += 1;

    } else if (value == 'Off') {}

    counter = 1;

    } else {}

    getField ("name") .value = "Off";

    App.Alert ("you can select only four checkboxes");

    }

    }

    -End of Document Javascript-

    Now put this line in the MouseUp event all checkboxes

    Box - Code MouseUp event.

    validateCheckBox (event.target.name, event.target.value);

    //----------------------------------------------------------------------------------

    Hope this will help

    Kind regards

    Post edited by: Mohammad Irfan

Maybe you are looking for

  • Bookmarks Firefox no longer displays the number of selected files

    I've just updated to FF 37 to 40, and the ability to see the number of URLS, I select in the bookmarks view seems to have disappeared. Instead, I have a bigger box of descriptions (which I don't need) I have to minimize. Let me know how I can activat

  • 2 apple ID and only need 1

    I discovered that I have two apple ID using two different e-mail accounts. I'd rather just have an apple ID and use the second email only as a backup on the same account. How to achieve this?

  • Windows 7 feature requests?

    How to request a feature for Microsoft to add to Windows? I have a few that might be useful for some people such as computer turn off after the installation of updates, etc... Thank you. -kane

  • HP G72-130SB

    I have a HP G72 - 130SB other VY062EA #UUG My hard drive broke down. My restore DVd is damaged. I installed a new windows 7 64 bit. Graphics drivers (ATI HD 5430) is not installed. Cannot find the driver. The latest ATI drivers do not work. I need th

  • Cannot install new programs in Windows 7 Home Premium

    Cannot install Microsoft FixIt and Weather Channel Desktop programs. Programs will download, NOrton it inspects and reports it is safe, then nothing else!