Drop Down Box Choose A Name and Have only the first name show up

I am creating a form for health care.
I have a drop down box with names of Physicians... their full names so they can be easily identified. And then subsequent fields that will be populated based off of the choice. However What I need is that after the full name from the drop down list is selected than only the Dr's First name shows up in the box to be distributed through out the file. All the rest of the information is already in using this Java:
switch(this.rawValue){
    case "MD":
        form1.Page1.Physician1LastName.rawValue = " Acccc";
        form1.Page1.Physician1Number.rawValue = "1111111111";
        form1.Page1.Physician1Fax.rawValue = "2222222222";
        form1.Page1.ClientEmail.rawValue = "[email protected]";
        form1.Page1.Physician1Address.rawValue = "xyz suite ";
        form1.Page1.Physician1City.rawValue = "XYY CIth";
        form1.Page1.Physician1State.rawValue = "XZ";
        form1.Page1.Physician1Zip.rawValue = "11111";
        form1.Page1.Physician1NPI.rawValue = "111111111";
        form1.Page1.Physician1License.rawValue = "ABBB111111";
        form1.Page1.Physician1UPIN.rawValue = "A11111";
        form1.Page1.Physician1Specialization.rawValue = "Internist";
        break;
And is working beautifully thanks for previous help everyone.
Here is the example from the Drop Down list choices:
     Dr. Aaaaa Abb Accccc
     Dr. Baaaa Bbb Bccccc
I would like to choose :
     Dr. Aaaaa A Aaaaa
and upon chosing it have it show only the first name in that field so it can be processed correctly through out the rest of the fields.
ie:    Aaaaa   (Only nothing else)
I am a horrible at this stuff I just surf around until I find something that works and copy and paste and play until it works
So Please be specific:
Java vs FOrm: Client: Choice   and code ....
Thanks SO much ....

Take a look at the attached. The script assumes the name is a three-part string such as Dr. Frank Burns. You can modify it according to your needs.
// form1.page1.dd::exit - (JavaScript, client)
if (this.rawValue != null) {
  var doc = this.rawValue;
  var i = doc.indexOf(" ");
  doc = doc.substring(i+1,doc.length);
  this.rawValue = doc.substring(0,doc.indexOf(" "));
Steve

Similar Messages

  • I bought creative cloud just now and have only the option of "TRY" and not "Install"-why?

    i bought creative cloud just now and have only the option of "TRY" and not "Install"for  photoshop, after effects and Illustrator -why?

    Sign in, activation, or connection errors | CS5.5 and later
    Mylenium

  • Retrieve only the first name

    Hi
    I'd like to retrieve only the first name from diferent rows in a columan called departmentname which contains values such as "School of Information Systems", "Department of Food Science" and so on then order it in ascending order.

    Do you mean you want only School, Department and so? Then
    select substring(departmentname, 1, instr(departmentname, ' ')) from your_tableAs far as I know it should be substr() ...its not substring().......

  • Help with drop down box if/then function and sum

    Hi, I am hoping someone can help me with an if/then function. I have a drop down box with all of the provinces listed, then based on their choice I need to calculate provincial sales tax with a sum function for the price of the item plus the sales tax. Help!

    You can enter the sales tax rate for each province as the export value and
    then use the drop-down field directly in your calculations.
    On Thu, Feb 5, 2015 at 6:06 PM, jennam90934439 <[email protected]>

  • When I'm on Facebook and play Fish World, sending gifts is no longer working, the drop down box won't open enough to see the "send" button. It works in other games, but not in Fish World, and I contacted Fish World who said it was a browser problem.

    starting yesterday I cannot get the drop down box to open to send gifts to my friends. Fish world told me a few weeks ago it was due to some updates with Facebook, but now that has been fixed and I can't get the game inFB to work. It works with other browsers - Chrome and IE9. Is there something I need to do on my end to fix this? Other facebook games work fine with drop down boxes, it's only fish world.

    problem solved

  • Mobile drop down menu won't disappear once I have clicked one of the links in the drop down to take me to an anchor further down the page. I want the drop down to disappear upon clicking and scroll at the same time.

    Basically I have a drop down menu, which i have tried to create numerous times with different widgets available in muse or as freebies on the net.
    The menu within the drop down is a manual menu and each button links to an anchor on the page, so that when clicked the page scrolls to that anchor.
    My problems is that once I have clicked one of the links to go to the anchor further down the page the drop down remains. For the purpose of User Experience and fluidity across the mobile design i would like the drop down to disappear on click of the anchor link. Is this possible?
    Many thanks,
    Lew.

    Hi Brad,
    At the moment I have used an downloaded widget which utilises the acordian style to create the drop down. Here is a link to the Mobile version of the site - http://www.brainstormdesign.co.uk/phone/index.html
    Many thanks,
    Lew.

  • I want to delete history; the drop down box shown in your instructions is NOT the drop down I get when I right click; the drop down menue I get DOES NOT offer a delete option....I'm stuck, What do I do?

    I am following the directions give in 'Help'. However, I cannot follow them because the Assumed drop down menu is not the one I get, so I am stuck.
    I want to delete my History...
    ...how is this done?

    See:
    * [[Clearing Location bar history]]
    * [[Cannot clear Location bar history]]
    * [[Smart Location Bar]]
    * http://kb.mozillazine.org/Viewing_the_browsing_history_-_Firefox

  • How do I hide the microsoft agent character and have only the balloon with audio show up

    I would like my LabVIEW program to show only the Microsfot agent balloon with audio but hide the character. Is that possible?

    I played with the Agent a while ago and it seems there was a couple characters that were audio only. Of course you could display the balloon text also. But I dn't seem to have them any more.
    You might try posting to the Agent news group at microsoft.public.msagent Somebody there is sure to know.
    Ed
    Ed Dickens - Certified LabVIEW Architect - DISTek Integration, Inc. - NI Certified Alliance Partner
    Using the Abort button to stop your VI is like using a tree to stop your car. It works, but there may be consequences.

  • Why do PDF links in email open in Safari but only the first page shows and paging down is unavailable?

    PDF files in emails open in Quick time in safari gut only show the first page and scrolling to later pages is not availaable

    Try a system reset.  It cures many ills and it's quick, easy and harmless...
    Hold down the on/off switch and the Home button simultaneously until the screen blacks out or you see the Apple logo.  Ignore the "Slide to power off" text if it appears.  You will not lose any apps, data, music, movies, settings, etc.

  • How do you link a drop down box to display content in read only field?

    For starters, I am a super novice at javascript, and I'm being asked to make some huge forms.
    For this form, I need to figure out how to display a corresponding description that I have typed up when a certain product is chosen in the read-only description field. Not only this, but the price of the product needs to also show up in the read-only price section. There are five different products to choose from.
    This has to be some big coding. I just don't have any javascript knowledge and it really confuses the heck out of me. :c
    Any help would be amazing. I don't want to have to abandon this project.

    For a text value you have to use a custom JavasScript. Where you place it and the code will depend upon when you want the value of the text field to change and how you have populated your combo boxes.

  • When I switch to using the Internet, the languages on my dropdown menu (flags) stop working and can only use English, when I switch to using the Internet, the languages on my drop down menu (flags) stop working and can only use English

    Hi
    When i type a doc, can use different languages
    when try to Google in a foreign language (non-English) the flag is faded and can't be selected via dropdown menu
    Appreciate your help

    Try a different browser, e.g. Firefox or Chrome instead of Safari.

  • I purchased a lightroom 5 cd from the store, and have used the first download on one computer. I would like to know how to install the second download to my other mac without a cd drive?

    PLEASE HELP!!!

    Download the installer file for Lightroom 5 again, using the Mac without a CD drive. Install it, enter your serial number, done.

  • When I restart my computer and hold the option key after creating a bootable usb with windows 7 and partitioning only the original partition shows up. Not the windows one or the bootable usb.

         Okay so first things first this isn't the newest macbook pro. When I open about my mac and go to system report it says it is a Macbook Pro 3,1 and the Boot Rom Version say MBP31.0070.B07. Originally when starting up Boot Camp Assistant there where only two options, the "create windows 7 bootable usb" was not there at all. So after some editing and helpful tutorials I was able to get the option show up and created a bootable usb with windows 7 and downloaded the support software onto a separate flash drive. Finally I did the last step and created a second partition for windows. Once the process is complete my computer automatically restarts.
         This is where the problem is. Once my computer makes the booting up sound it doesn't load up windows it gets stuck on a apple logo as if it's trying to reastart normally and can't. So I shut down and this time I hold down the option key during start up. It brings up the main partition and some recovery thing but no windows partiton and no bootable usb.
         I forgot to mention that I am running OS X 10.9.3. Okay any body want to help me out? Iv'e been at this for hours and can't get an inch closer to having windows. Please and thank you!
    P.S. If I missed a discussion that answer my question just point me to it. Iv'e been looking for a while, but who knows i might have missed one.

    The only known way to make it work on an external drive is by first installing Windows onto an internal drive, then cloning the install to an external Thunderbolt drive. Thunderbolt is seen as an extension of the internal bus, so Windows doesn't see it as an external device.

  • My drop-down list won't appear anymore so every time I want to go to a new site I have to type it in where before my drop-down box would appear and I could just click it and hit search and go there how do I make my drop-down box come back

    somehow I must've clicked a button that took away my drop down box when I go to use my Google search so different sites that I go to a lot I would always just click it when the drop-down box came up I would click again and hit search and you would bring that page up but even if I go to a site once I leave that I try to click and make the drop-down box come up again with the new search and it nothing happens so the problem is I need my drop down box to come back up to all the places that I visit kind of like a history of like I said I would just click and it would come up by itself now the drop-down box won't come up anymore so I need somebody to tell me what to do to bring my drop-down box back also I am new to computers so I don't know a lot so don't be real technical thanks for the help merry Christmas from Joe

    It's not a matter of me assuming to restore it, once the error comes up, the only next step I can do is to restore it. I can't access any of the iphones settings in itunes or anything, it's a mandatory restore. If I just cancel the sync (before restoring) and disconnect the phone, all my apps crash on opening: aka unusable phone. So I have literally no choice but to restore every time the error shows up if I want my phone to work.
    I have no idea where I may have duplicate files as it doesn't tell me, so if that is the problem (which I don't think it is) then I don't know where I have to go to delete the duplicates.
    And the duplicate file error still doesn't explain why leaving iTunes to restore the phone doesn't work and me having to drag the window around. I know it sounds utterly ridiculous, my friend didn't believe me when I told him either but then I showed him and he was as confused as I am. If I just leave the restore to do its own thing at it's own pace, it will loa maybe 20% then fail for whatever reason.

  • HT4864 The Outgoing Mail Server drop down box in mail setup keeps reverting back to 'None' - anyone have any ideas why?

    Hi
    I've been having difficulties with mail on my Mac and have checked all the settings.  I have three mail accounts, 2 iClouds (different acct names) and 1 bigpond account. 
    Whenever I change the outgoing mail server drop down boxes for the iCloud accts and save my changes, I go out of it then when I go back to the iCloud accts the drop down boxes for both iCloud accounts have reverted back to 'None'. 
    Is this of any relevance?  Is it 'normal'? 
    I've tried deleting all mail accounts and adding them all again but the same thing still happens. 
    I have been on Apple Support and followed the Mail Acct setup tutorial.
    I'd appreciate any help on this matter thanks.

    Thanks for your reply Winston Churchill.
    Because I'd been having problems which had recently been resolved by AppleCare Support I decided to go through all my accounts and check their individual settings.  I found a Tutorial on Apple support for setting up or verifying email account settings and found mine were different so I changed it.
    In any event I took your advice and just went with the option of automatically setting the iCloud accounts up and I haven't had anymore problems thus far - fingers crossed.
    I do however note that my drop down box in account settings still says 'none' for the outgoing mail server and the 'use this server only' check box isn't ticked despite being ticked in the 'verify account' info on the tutorial, so hence my question to the community - did this matter and what was the difference?
    I will let sleeping dogs lie I think and will see how I go.
    Many thanks for your help.

Maybe you are looking for

  • Reporting Services SQL Server Express 2008 R2

    Hello, Currently we are running: 10.50.1617.0 RTM Standard Edition Microsoft SQL Server 2008 R2 (RTM) - 10.50.1617.0 (Intel X86)   Apr 22 2011 11:57:00   Copyright (c) Microsoft Corporation  Standard Edition on Windows NT 5.2 <X86> (Build 3790: Servi

  • Any confirmed working USB2.0 audio interfaces with latest macbook pro (haswell USB3.0)?

    I recently got a new macbpook pro 15" 2GHz i7 (Haswell) As far as I can tell my USB audio interface just doesn't work with the new USB3.0 ports. My Echo Audio Echo2 interface simply doesn't work, no sound in or out, but does show up in preferences. I

  • Sharepoint 2013 workflow does not start when item is created by another workflow

    Hi I am having the next problem, I have a workflow on list B that starts when a new item is created. If I created the item manually the workflow works. Now I have a list A that has a workflow that creates a new item in List B. The problem is that whe

  • CS6 Export problem

    I have a CS5.5 project that I have loaded into CS6. I have 6 sequences, when I try to export them, three work but when I try to open the export dialogue for the others nothing happens. Ctrl+M doesn't work either.The sequences play OK. Win 7 EXcam 108

  • Add listener / remove listener

    hi, when I add a listener on a clip or button (like the CLICK Event) that exists in the timeline do I allways have to remove the listener if the Clip is removed from stage? Or will it be removed automaticly by the garbage collection? TIA