How to pre-fill boxes based on a selection of choice list?

So we have a 'primary area of interest", which is a priority for the customer is most interested. However, we also have a list of ALL our lower technologies on the form.

How can we make it if they make a selection of the P.A.of interest prepopulate (or check) it maps to one of the technologies listed in the form of box?

Main area of interest: [drop down list]-> Orange

Technologies of interest-

[Apples]

Pears]

[X] Oranges

Berries]

While allowing them to select also other choices:

[X] apples

Pears]

[X] Oranges

Berries]

Hey Jorge,.

That's the basic idea, I just copy/paste/written really fast, in order to better check.

When choosing the multiple selection and myCheckbox is the theckbox...

{$(document) .ready (function ()}

$(«select») .change (function () {}

$(«sélectionnez l'option: sélectionnés») {.each (function ()}

/ * do something here to make the logic of the box and check the box use this: * /.

$('.myCheckbox').prop ("checked", true);

});})});

Reference

(1) : checkbox selector | jQuery API Documentation

(2) . change() | jQuery API Documentation<--- check="" the="" demo="" at="" the="" bottom="">

Mapping so if they click on option A, box 1 & 2 will be checked, if they click on option B, case 1 & 3 get checked... and so on. The mapping is manual.

You must also consider unchecking the boxes, being also discussed in REF 1.

Tags: Marketers

Similar Questions

  • How to pre-fill a field before inserting the new record in the same block

    I'm obviously new to the forms and need help! I need to insert new records based on the lodge currently in the same block.

    In the block, I specify a lodge (lodge 0000) and run the query for this particular lodge. I want to insert new records
    for lodge 0000. The number of dressing room must be pre-fill with lodge 0000 and I have to do is enter the others
    provide the information.

    How to make a form to pre-fill the field lodge?

    Instead of global variables, why do you not use "Form settings" which are specific to your form? You can use them in the property 'Initial value' similar to global variables.

  • How to pre-fill the ADF form with the data?

    Hi guys,.

    I was wondering how you go about the generation of a pre-filled form of ADF. Is this something that is done if the designer of the ADF and the business objects? or do you create database tables stay and bind in the ADF and the workflow. Specifically, I want that if a user is presented with a several drop-down lists when the human task of the initiator is executed.

    Thank you
    Ross

    Hi Ross
    1. Yes, in all first place in the database, we added all the data manually for all research. Its our own schema custom. We plan to provide a few simple administration screens in a different WebApps to maintain these values to search. Note that it is a different simple ADF application, with a layer of EJB and EJB layer calling this and get/update database values.

    2. in ADDITION, we have a few search values we get from system/application totally another as Oracle EBS Suite. To do this, we have created custom schema. In this custom scheme, we have a few stored procedures created by the developers of EBS database (they are more familiar with EBS). Now in our EJB layer, we use architecture JPA, call these stored procedures and get all values for the search and display in the TaskDetails page. These values are maintained in EBS itself, so we have not all custom within our SOA/BPM project admin screens.

    In conclusion, our SOA/BPM applications, we have 2 databases. First database is for components SOA where we run RCU comand and there all SOA_INFRA, MDS, diagrams ORABAM etc. The second database is for our custom schema specific to our application. Here, we have our own lookup tables, custom table and all cutom stored procedures than coonect to external EBS etc. Weblogic console, we have just to create a data source for this second database and use layer JPA (persistence.xml file). For the first database, you already know that in the creation of the field itself, it will create all sources of data also.

    Thank you
    Ravi Jegga

  • How to pre-fill the user information during the operation to assign tasks

    Hello

    I have a requrirement to pre-fill fields of the form (name, Email, phone etc) when a task is assigned to a user. Users are dynamically specified, so I use the user to find and services to assign tasks to locate and assign them to the user. Since I was a user variable that is the result of the operation of the user to find, I was hoping to get the user information with the attributes of the type of user.

    I tried to use the service to set the value to set the form field (Email) with the email of the user that is object type attribute

    / process_data/MyForm/Object/Data/XDP/datasets/Data/Form/User/email-> /process_data/facilityAuthority/object/@email

    However I get the following error when I try to do - com.adobe.idp.dsc.util.InvalidCoercionException: can not compel object: [B@335d of the type: [B type: interface org.w3c.dom.Document.]]

    Is it possible to retrieve information from the user to the user object? If yes how values for the attributes of the user (name, Email and phone etc...) so that I can fill in the form?

    Thank you
    Nicolas

    Hello

    Please cast chain e-mail before you assign it.

    Example of

    / process_data/MyForm/Object/Data/XDP/datasets/Data/Form/User / email-> string (process_data/facilityAuthority/object/@email)

    For more details, please refer to the forum http://forums.adobe.com/thread/492826

    Thank you

  • How to create a report based on the selection of a node of a tree

    Hello

    I am new to Oracle Apex and tried to build a tree and also an interactive report based on column empno from emp table.

    I created a tree based on the emp table. Now, I want to see the records in the employee selected in the tree.

    This is the query of the tree:

    Select case when connect_by_isleaf = 1 then 0
    When level = 1 then 1
    of another-1
    end the status,
    level,
    'ENAME' as the title,
    NULL as an icon,
    'EMPNO' as value,
    NULL as ToolTip,
    NULL as link
    of ' #OWNER # '. " EMP.
    Start by "MGR" is nothing
    connect prior "EMPNO" = "MGR".
    siblings arrested by 'ENAME '.

    Can someone tell me step by step how to go from here?

    I tried to follow the thread Re: question of tree but could not understand a lot of it.

    The approach to reload the page and display the report is fairly simple.

  • You start by creating a new page element that will be used to store the selected node ID, for example. P100_SELECTED_NODE (you can do atext element and change hidden once everything works as expected)
  • Change the query of the tree and the link column in the SQL of tree definition to a link to the same
    for example if your page is 100, you'd do the tree node a link to the same page but the value of the P100SELECTED_NODE with id_ of the node selected
    This is done here
    {message: id = 4410987}
    In this case, it would be

    ' f ? p = & APP_ID.: 100 :'|| : APP_SESSION |': P100_SELECTED_NODE :'|| EMPNO as link

    Now when you click on a link to tree node, it would be back to the same page, but set the P100_SELECTED_NODE with the empno of the clicked node.

  • All that's left to do, change your report so that it refers to the new point inorder to filter records for this employee empno i.e

    SELECT ...
      ..
    WHERE empno= :P100_SELECTED_NODE
    
  • How Mark Read only cases based on RadioButton selections

    I have spent the last hour looking through old discussions and found nothing on this subject, so maybe it will help others in the future as well.

    I'm building a dynamic PDF for people at work to use for troubleshooting.  Basically, it follows the same logic flow charts I have already done, but by asking questions and saying technicians what do based on their responses.  Top I have checkboxes which are kind of 'high level questions' that I want to be read-only and that they check automatically as they make their way through the radio buttons.

    My ultimate goal is to integrate this PDF file in our ticketing system and the checkboxes at the top level will show the troubleshooting that has already been accomplished without the technician having read the full PDF to find out what to do next.  If we have to send a technician on site to fix whatever it is she will also act as a report of climbing, to let him know where we could get without him being there.

    I thought this might work, but apparently I don't understand the coding as well as I thought I did.  I hope I'm close lol.

    If {(TestRadio.rawValue == 1)

    Subform1.check1.RawValue = 1;

    }

    else {}

    Subform1.check1.RawValue = 0;

    }

    Any help is greatly appreciated.  If anyone has a PDF file with an example of this work, I'd love to see it.  Thank you very much.

    Mike

    In fact, I just thought to it.  I've been away "" around the values.  Maybe this will help you always someone else, so I'll leave it to the top.  Thank you all!

    If {(TestRadio.rawValue == 1)

    Subform1.check1.RawValue = "1";

    }

    else {}

    Subform1.check1.RawValue = "0";

    }

  • How to disable the datepicker based on the selection in a table list

    I created an example on

    https://Apex.Oracle.com/pls/Apex/f?p=85310:23:9121532652163:

    follow-up

    https://community.Oracle.com/thread/1119800

    but no luck

    My needs: -.

    with selection N dymanic action datepicker should be disabled

    and now, I think I need help.

    anyone if possible have a look what I'm doing wrong

    Hi ReemaPuri,

    Check your application on apex.oracle.com. The problem is resolved.

    Here are the steps:

    • Page-> section JavaScript attributes-> function and Global Variable declaration drafted according to the javascript function:
    function f_disableDtPicker (pThis) {
        var row_val = pThis.value;
        var row_id = pThis.id.substr(4);
        if (row_val == 'N') {
            // disable datepicker input
            $('#f04_'+row_id).attr("readonly", true).addClass('apex_disabled');
            // disable datepicker icon
            $('#f04_'+row_id).next('button.ui-datepicker-trigger').addClass('apex_disabled').unbind('click');
        } else {
            // disable datepicker input
            $('#f04_'+row_id).attr("readonly", false).removeClass('apex_disabled');
            // disable datepicker icon
            $('#f04_'+row_id).next('button.ui-datepicker-trigger').removeClass('apex_disabled').unbind('click');
        }
    }
    
    • Changed your SQL query from:
    select APEX_ITEM.SELECT_LIST(1,'Y','Yes;Y,No;N','class=myclass" onchange="f_disableDtPicker(this);"')yn ,
    APEX_ITEM.DATE_POPUP2 (
               P_IDX                   => 4,
               P_VALUE                 => NULL,
               P_DATE_FORMAT           => 'DD-MON-RR',
               P_SIZE                  => 10,
               P_MAXLENGTH             => 256,
               P_ATTRIBUTES            => NULL,
               P_ITEM_ID               => 'f04_'||ROWNUM,
               P_ITEM_LABEL            => 'Label for f04_'||ROWNUM,
               P_DEFAULT_VALUE         => NULL,
               P_MAX_VALUE             => NULL,
               P_MIN_VALUE             => NULL,
               P_SHOW_ON               => 'both',
               P_NUMBER_OF_MONTHS      => NULL,
               P_NAVIGATION_LIST_FOR   => 'MONTH_AND_YEAR',
               P_YEAR_RANGE            => '-5:+5',
               P_VALIDATION_DATE       => NULL ) "date "
    from dual;
    

    to do this:

    select APEX_ITEM.SELECT_LIST(
            p_idx           =>   1,
            p_value         =>   'Y',
            p_list_values   =>   'Yes;Y,No;N',
            p_attributes    =>   'class=myclass" onchange="f_disableDtPicker(this);"',
            p_show_null     =>   'NO',
            p_null_value    =>   NULL,
            p_null_text     =>   NULL,
            p_item_id       =>   'f01_'||ROWNUM,
            p_item_label    =>   'Label for f01_'||ROWNUM,
            p_show_extra    =>   'YES') yn ,
    APEX_ITEM.DATE_POPUP2 (
               P_IDX                   => 4,
               P_VALUE                 => NULL,
               P_DATE_FORMAT           => 'DD-MON-RR',
               P_SIZE                  => 10,
               P_MAXLENGTH             => 256,
               P_ATTRIBUTES            => NULL,
               P_ITEM_ID               => 'f04_'||ROWNUM,
               P_ITEM_LABEL            => 'Label for f04_'||ROWNUM,
               P_DEFAULT_VALUE         => NULL,
               P_MAX_VALUE             => NULL,
               P_MIN_VALUE             => NULL,
               P_SHOW_ON               => 'both',
               P_NUMBER_OF_MONTHS      => NULL,
               P_NAVIGATION_LIST_FOR   => 'MONTH_AND_YEAR',
               P_YEAR_RANGE            => '-5:+5',
               P_VALIDATION_DATE       => NULL ) "date "
    from dual;
    

    Kind regards

    Kiran

  • Reading JSON file based on the selected drop-down list item

    I have little code shown below.

    I'm trying to read data from a JSON file based on certain criteria, in this case all the suburbs on a territory

    I can do that quite easily in a liquid hard coding the territory, however, I want to use the value of the < select > option

    I understand that this can be achieved with JavaScript, is it possible otherwise?

    < select id = 'territory' >

    < option value = "xx" >--please select--< / option >

    < option value = "CBD" > CBD < / option >

    < option value = "North" > North < / option >

    < option value = "South" > South < / option >

    < / select >

    {model module_json json="/_System/shipping/shipping.json" = "" = "shipping" collection "}

    < select id = "suburbs" >

    < option value = "xx" >--please select--< / option >

    {% for section in shipping.territory %}

    {% If the element.} TERRITORY is '< value on top of select >' %}

    < option value = "{{point." POSTAL CODE}} "> {{point." SUBURBS}} < / option >

    {% endif %}

    {% endfor %}

    < / select >

    Hi Craig,.

    You can skip liquid altogether and use JS to get the values you need for json.

    If you want to use liquid you need to load the last part with AJAX/XHR to enter the selected value.

    1. create a new file suburb.html and ajax request after #territory selected with the option as a parameter:

    URL: suburb.html? = north shipping

    2. the suburb.html file would be:

    {assign = globals.get.shipping-% selectedTerritory %}<- this="" will="" have="">

    {model module_json json="/_System/shipping/shipping.json" = "" = "shipping" collection "}

  • Toggling text element based on the selection of a list item

    Hello friends,

    I have a header data block where I have a field to not enter the name of book and a REGD Item list that displays 'Yes' and ' ' and a text REG_NO element.

    When the user selects 'Yes', the text REG_NO element must be enabled so that the user can enter the number of the book.

    By choosing 'No', the REG_NO element must be disabled.

    I have included a trigger WHEN-LIST-CHANGED in the list REGD item.

    I added the following code in the trigger above:

    --=======================================

    BEGIN

    IF: HEADER. REGD = ' don't

    THEN

    SET_ITEM_PROPERTY('HEADER.) REG_NO', ENABLED, PROPERTY_FALSE);

    ON THE OTHER

    SET_ITEM_PROPERTY('HEADER.) REG_NO', ENABLED, PROPERTY_TRUE);

    END IF;

    END;

    --=======================================

    However, when the form is opened, the text REG_NO element is enabled.

    When the user chooses the 'no' in the list item REGD, then the text REG_NO element is disabled as expected.

    However, when you choose 'Yes' in the item list REGD, the text REG_NO element does not get activated.

    Can someone let me know how to activate the text element.

    Concerning

    Hawker

    When you disable an item, NAVIGALE, INSERT_ALLOWED, and UPDATE_ALLOWED properties are also set to False, then you will need to reactivate their when you reactivate an item.

  • How to move to the next item of selected in a list.

    * Edition *.

    I was wondering how I could make a button that would move the currently selected item to another in the array in a List component. I would think to do so through of ACE or an event, but I only am not sure what I have référenceriez under this component. Help would be appreciated, thanks.

    You can set the selectedIndex property. What next button increments the selectedIndex property.

    If (list.selectedIndex< list.dataprovider.length="" -="" 1="">

    list.selectedIndex ++;

  • Pre-fill unique choice with DLPrepop lists

    Edit: See the answer to know how to set up

    ----

    I am using DLPrepop: search for Cookie visitor data + Contact data search form checkbox Prepop (built on top of asynchronous tracking Scripts Eloqua) to pre-fill E10 form on our installation of Drupal, but I hit a wall. I can't understand how to pre-fill the simple drop-down lists. Here is the code in the DLPrepop post:

    [deleted to save space]

    Someone at - it an example of what I'm supposed to replace //Place code here for the SELECT LIST entries with?

    For those who find it in research, Mapili @Chris helped me with code selection list page 4 of DLPrepop: search for Cookie visitor data + Contact data search form checkbox Prepop (built on top of asynchronous tracking Scripts Eloqua). Below is an example of what the code for DLPrepop looks like with prefill selection lists. I'll add a link to an example of work once we place it on our website.

    Place here the code for the entries of the CHECKBOX

    If (LowerCaseValue == 'on') checked entries [index] = true;

    Else if (LowerCaseValue == 'true') checked entries [index] = true;

    Else if (LowerCaseValue == 'y') checked entries [index] = true;

    Else if (LowerCaseValue == 'Yes') checked entries [index] = true;

    Else if (LowerCaseValue == 'checked') checked entries [index] = true;

    Else if (LowerCaseValue == '1') checked entries [index] = true;

    } ElseIf (.Guy entries [index] == 'radio') {}

    Place the code for the RADIO BUTTON entries

    } ElseIf (.Guy entries [index] == "Select one") {}

    $("#"+inputs[index].id).val (ValRech) .attr ("selected", true).siblings('option').removeAttr ('selected');

    } ElseIf (.Guy entries [index] == 'text') {}

    Place the code for the STANDARD TEXT entries

    entries [index] .value = ValRech;

    } else {}

    All other entries = nothing to do

    }

    }

    }

    $("#"+inputs[index].id).selectmenu ("refresh", true);

    }

    https://s1234.t.Eloqua.com/e/F2"id ="form123">

    First name*

    var Champ0 = new LiveValidation ('C_FirstName', {validMessage: ' ', onlyOnBlur: true}); field0.add (Validate.Presence, {failureMessage: "this field is required"});

  • How to create a report based on the item selected from the list of selection?

    Hello

    I created a tables_LOV based on:

    Select table_name table_name user_tab_cols r, d

    where column_name like '% _type % '.

    Then I created a ListOfTables page element, display in a selection list and pointing to tables_LOV.

    I run the page, and I can choose the table I want in the drop-down list.

    How to create a report based on the selected element? (ex: select * from selected_table)

    Thanks in advance

    Salah

    Hi Salah,

    Allright, take a look at this page: http://apex.oracle.com/pls/apex/f?p=vincentdeelen:collection_report

    I think that simulates what you are trying to accomplish. I've implemented the simplest method I could think of.

    The report is based on a collection of apex. If you are not familiar with this, you should study the documentation: APEX_COLLECTION

    To recreate my example, you should:

    (1) create a report (interactive) on your collection

    SELECT *
       FROM APEX_collections
     WHERE collection_name = 'MY_COLLECTION'
    

    (2) create a selection list page_item for the tables that you want to display (in my case, this is called "P38_TABLES")

    (3) create a dynamic action that triggers on the evolution of your selection list page_item. Dynamic action must be a parade of PL/SQL procedure the following code:

    declare
      l_query varchar2(4000);
    begin
      l_query := 'select * from '||:P38_TABLES;
      if apex_collection.collection_exists
            ( p_collection_name => 'MY_COLLECTION' )
      then
        apex_collection.delete_collection
          ( p_collection_name => 'MY_COLLECTION' );
      end if;
    
      apex_collection.create_collection_from_query
        ( p_collection_name => 'MY_COLLECTION'
        , p_query           => l_query
        );
    end;
    

    Make sure that you add your page_item 'Page to send items' section.

    (4) add a real extra action that makes an update of the report area.

    Here are two photos describing the da:

    http://www.vincentdeelen.com/images/OTN/OTN_COLLECTION_REPORT_DA1.PNG

    http://www.vincentdeelen.com/images/OTN/OTN_COLLECTION_REPORT_DA2.PNG

    Good luck and greetings,

    Vincent

    http://vincentdeelen.blogspot.com

  • Fill the 2 text fields with a dropdown list

    Hi guys,.

    I am very new to scripting in PDF and I can't find the solution to this problem:

    (1) I have a menu drop down called 'Package' with Bronze, Silver, Gold, Platinum options

    (2) I have also 2 fields of text called 'beneficiaries' and 'costs '.

    I want to be able to fill in these fields both text based on the selected drop-down list option.

    Bronze

    recipients = 1000

    cost = 7000

    Silver

    recipients = 3000

    cost = 10000

    Gold

    recipients = 10000

    cost = 15000

    Platinum

    recipients = 50000

    cost = 25000

    I use the code xfa below, but nothing happens when I make a selection in the menu dropdown.

    Clues?

    var sNewSel = this.boundItem(xfa.event.newText);
    
    
    switch (sNewSel)
    
    {
    
      case "Bronze": 
    
        recipients.rawValue = "1000";
        cost.rawValue = "7000";
    
        break;
    
    
      case "Silver": 
    
        recipients.rawValue = "3000";
        cost.rawValue = "10000";
    
        break;
    
      case "Gold": 
    
        recipients.rawValue = "10000";
        cost.rawValue = "15000";
    
        break;
    
      case "Platinum": 
    
        recipients.rawValue = "50000";
        cost.rawValue = "25000";
    
        break;
    
    
      default: // unknown value -- do nothing
    
        break;
    
    }
    
    

    If this code will work not because it is written in a form of LC. You need to use something like this (as the validation script customized to your dropdown menu, making sure you check the option to validate the selected immediately value):

    var sNewSel = event.value;

    Switch (sNewSel) {}

    case 'Bronze ':

    this.getField("recipients").value = '1000 ';

    this.getField("cost").value = "7000".

    break;

    etc.

    }

  • Fill a combo box based on a different c/b to Acrobat 9 Pro

    Greetings,

    I followed the tutorials Parkers Thom and have tried several variations over the past two weeks, but all without success.

    I am building a small form to work.  The form has a combo box that, based on the choice, fills a second.  In this case, the form allows patients planners choose a 'currentDiagnosis' (' Brain_Seizure', 'Brain_Tumor', etc.).  Based on the selection of a second combo Box is filled with codes CPT, "currentCPT" (for example '151.2', "152.2", etc.).

    Document-level script

    Master list of lists
    Each entry of this listeral object is the name of a currentDiagnosis
    Select the currentDiagnosis from the drop-down list box
    The associated value is the list of the CPT, where each element is a code appropriate to the CPT, [< code >

    ]

    var ocurrentDiagnosis = {}
    Brain_Seizures: [["-"], ["150.1"], ["150,2"], ["150.3"], ["150,4"]],
    Brain_Tumor: [["-"], ["151.1"], ["151.2"], ["151.3"], ["151,4"]],
    Lung_nonSamllCell: [["-"], ["152,1"], ["152,2"], ["152.3"], ["152,4"]],
    Lung_SmallCell: [["-"], ["153,1"], ["153.2"], ["153.3"], ["153,4"]]
    };


    function SetcurrentCPT()
    {
    If (Event.willCommit)
    {
    The list of CPT in the main list
    Given that the selection is made,
    Event.value contains the currentDiagnosis
    var lst = ocurrentDiagnosis [event.value];


    Clear the list of parts, if there is no parts for selected Assembly
    If ((lst! = null) & & (lst.length > 0))


    this.getField("currentCPT").setItems (lst);


    on the other


    {


    this.getField("currentCPT").clearItems ();


    }


    }


    }

    Events of typing "currentDiagnosis".

    setcurrentCPT();

    The shape is complete with the exception of these two fields to cooperate (LOL).

    All wiould help greatly appreciated.

    Tim

    System:

    2.66 Intel Quad core

    Video 1 GB 5700

    8 GB Ram

    Windows 7 64 bit

    Adobe Acrobat 9 Professional

    According to the code you have posted, the line:

    setcurrentCPT();

    Need to replace:

    SetcurrentCPT();

    or you can also rename the function to: "setcurrentCPT".

    In addition, "Lung_nonSamllCell" is probably misspelled.

  • 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.

Maybe you are looking for