US States drop-down

In the Contact Us form in FormsCentral, is there a way to put a drop down select window with the US States already populated in it?
Thanks

Hi;
The "Product Order Form" Template includes a "State" drop-down menu, you can create a form from that Template and Copy (Ctrl+C or CMD+C on Mac) and then paste into your Contact Us form.
Thanks,
Josh

Similar Messages

  • Country state drop down list oracle & php

    Hi all.
    I'm new in this forum.
    I have created two tables :
    create table countries
    country_id int not null,
    country_name varchar2(50),
    constraint countries_country_id_pk primary key (country_id)
    create table states
    state_id int not null,
    state_name varchar2(50),
    country_id int,
    constraint states_state_id_pk primary key (state_id),
    constraint states_country_id_fk foreign key (country_id) references countries (country_id)on delete cascade
    and insert data.
    I have connect to oracle database by this php file.
    <?php
    $conn = oci_connect('hr', 'hekal', 'or');
    if (!$conn)
    $e = oci_error();
    trigger_error(htmlentities($e['message'], ENT_QUOTES), E_USER_ERROR);
    ?>
    then I make combobox dropdown list like that
    <?php
    include ('../connect_db.php');
    $sql = 'select * from countries order by country_name';
    $stid = oci_parse($conn, $sql);
    oci_define_by_name($stid, 'country_id', $country_id);
    oci_define_by_name($stid, 'country_name',$country_name);
    oci_execute($stid);
    ?>
    <select name="country">
    <?php
    while (oci_fetch($stid)) {
    ?>
    <option value="$country_id" id="country_id"> <?php echo"$country_name" ; ?></option>
    <?php } ?>
    This code get values into drop down list
    and make another to the states.
    But I need to connect the two each other.
    I need when I choose USA. the other list show only states of USA
    thank you

    See multiple dropdown

  • Drop-Down menu not retaining selected value

    I'm using LiveCycle Designer ES 8.1.1 with LiveCycle Forms and I render my forms in HTML.  When Google Chrome or Safari are the user's browser the drop-down menus do not retain their selected value when going from page to page.  For example I have a state drop-down on page 1.  The user selects Ohio and then continues on to page 2.  Then the user goes back to page 1 and the state drop-down now has Alabama selected.  If the user is on IE there is no problem.
    Any help would be much appreciated.
    Thank you
    Dennis

    hi...i would like to thank u for the help...the problem has already been resolved though..
    thanks,
    vitish

  • Drop Down menu help needed

    Hi, on my site at the checkout page, it has 2 drop down menus, one for country and one for state.  right now as it is, if you select United States from the first menu, you are then able to select which state you are from.  But if any other country is selected, the Select State drop down menu dissappears.  The coding looks like this right now
    private function onChange(target:SelectCountryCombo):Void {
      switch(target) {
       case _selectCountry:
        if (target.value == 'US')
         _selectState.visible = true      
        else
         _selectState.visible = false;
       break;
    What i want to do is make it so that if you select canada the drop down menu stays visable, and i've added the provinces into the list.  I tried adding 'CA' along with the 'US' but that makes it stay visible for all countries, i only want it visible for the 2.  it seems easy but i really dont know action script very well at all.  Thanks a lot for any  help

    I just had another question about the same thing. Is it possible that when CA is selected, that a different data provider for the "Select State" list would come up? For example, if US were selected it would load "_selectState.dataProvider = PayPalStateUSList.instance.option;" but if CA were selected, i could have it load the same thing but with just provinces? i tried to just copy the coding for PayPalStateUSList and rename it PayPalStateCAList with the list changed to provinces, and have it load it in the as but i dont really know what im doing.
    right now i just have the states and provinces all in one list, but its just harder to select when everything is all mixed in. it looks a bit unorganized.
    another thing i would like to do, is change the total price based on the country selected in the drop down menu, if its possible. right now I have a shipping charge being added to the total from the shopping cart screen (thanks to kglad), but what would make more sence would to have the shipping based on wether its domestic or international. would it be possible to change the total based on the country selected?
    these are the last of my questions, after these 2 issues are fixed my site is complete.  Thanks for all the help
    The coding for the page looks like this (both my concerns are on the same page)
    import mx.utils.Delegate;
    import kliment.managers.PopUpManager;
    import kliment.data.FormField;
    import kliment.display.MCC;
    import kliment.net.URL;
    import kliment.net.URLMethod;
    import kliment.net.URLTarget;
    import kliment.utils._Object;
    import kliment.utils._String;
    import as.Application;
    import as.Settings;
    import as.SimpleButton;
    import as.subpage.elements.AgreeCheckBox;
    import as.subpage.elements.SelectStateCombo;
    import as.subpage.SubpageAbstract;
    import as.menu.Menu;
    import as.AlertMessage;
    import as.shopingcart.PayPalCountryList;
    import as.shopingcart.PayPalStateUSList;
    import as.subpage.elements.SelectCountryCombo;
    import as.subpage.elements.SelectCountryItemRender;
    * @author ...
    class as.subpage.ViewCheckout extends SubpageAbstract {
    private var _IDENTIFIER:String = 'checkout_view';
    private var _price_txt:TextField;
    private var _f_name_txt:FormField;
    private var _l_name_txt:FormField;
    private var _email_txt:FormField;
    private var _phone_txt:FormField;
    private var _city_txt:FormField;
    private var _street_txt:FormField;
    private var _zip_txt:FormField;
    private var _country_cb:FormField;
    private var _state_cb:FormField;
    private var _selectCountry:SelectCountryCombo;
    private var _selectState:SelectCountryCombo;
    private var _i_agree_cb:AgreeCheckBox;
    private var _proceed_btn:SimpleButton;
    public function ViewCheckout() {
      super();
    private function _init():Void {
      _target_mc = MCC.attach(_IDENTIFIER, _host.content_mc);
      _page_mc = _target_mc.page_mc;
      _price_txt = _page_mc.price_txt;
      _price_txt.autoSize = 'left';
      _price_txt.text = Settings.CURRENCY + _String.decimalFractions(Application.instance.aSopingCart.totalPrice, 2);
      _f_name_txt = new FormField(_page_mc.f_name_txt, 'first_name', _page_mc.f_name_txt.text, true);
      _l_name_txt = new FormField(_page_mc.l_name_txt, 'last_name', _page_mc.l_name_txt.text, true);
      _city_txt = new FormField(_page_mc.city_txt, 'city', _page_mc.city_txt.text, true);
      _street_txt = new FormField(_page_mc.street_txt, 'address1', _page_mc.street_txt.text, true);
      _zip_txt = new FormField(_page_mc.zip_txt, 'zip', _page_mc.zip_txt.text, true);
      _email_txt = new FormField(_page_mc.email_txt, 'email', _page_mc.email_txt.text, true);
      _phone_txt = new FormField(_page_mc.phone_txt, 'night_phone_b', _page_mc.phone_txt.text);
      _selectCountry = new SelectCountryCombo(_page_mc.select_country_mc, 'combo_box_list', 'Select a country');
      _selectCountry.itemRender = SelectCountryItemRender;
      _selectCountry.dataProvider = PayPalCountryList.instance.option;
      _selectCountry.addListener(this);
      _selectState = new SelectCountryCombo(_page_mc.select_state_mc, 'combo_box_list', 'Select a state');
      _selectState.itemRender = SelectCountryItemRender;
      _selectState.dataProvider = PayPalStateUSList.instance.option;
      _selectState.addListener(this);
      _country_cb = new FormField(_selectCountry, 'adress_country', '', true);
      _state_cb = new FormField(_selectState, 'adress_state', ''); 
      _proceed_btn = new SimpleButton(_page_mc.proceed_mc);
      _proceed_btn.onClick = Delegate.create(this, _onProceedClickHandler);
      _i_agree_cb = new AgreeCheckBox(_page_mc.i_agree_mc);
      _page_mc.f_name_txt.tabIndex = 0;
      _page_mc.l_name_txt.tabIndex = 1;
      _page_mc.email_txt.tabIndex = 2;
      _page_mc.phone_txt.tabIndex = 3;
      _page_mc.zip_txt.tabIndex = 4;
      _page_mc.city_txt.tabIndex = 5;
      _page_mc.street_txt.tabIndex = 6;
      _page_mc._y = 33;
      _page_mc._x = 50;
    private function onChange(target:SelectCountryCombo):Void {
      switch(target) {
       case _selectCountry:
        if (target.value == 'US' || target.value=="CA")
         _selectState.visible = true      
        else
         _selectState.visible = false;
       break;
    private function _onProceedClickHandler():Void {
      var isError:Boolean = false;
      var isErrorSelect:Boolean = false;
      var message:String = '';
      var messageLine1:String = '';
      var messageLine2:String = '';
      var forSend:Object = new Object();
      forSend.cmd = '_cart';
      forSend.business = Settings.BUSINESS_EMAIL;
      forSend.currency_code = Settings.CURRENCY_CODE;
      forSend.upload = 1;
      forSend.address_override = 1;
      forSend.rm = 2;
      forSend.no_shipping = 1;
      if (Settings.NOTIFY_URL)
      forSend.notify_url = Settings.NOTIFY_URL;
      if (Settings.RETURN_URL)
      forSend.return_url = Settings.RETURN_URL;
      var purchasesList:Object = Application.instance.aSopingCart.getPayPalCarts();
      if (!purchasesList) {
       isError = true;
       message += 'The shopping cart is empty.'+newline;
      if (_f_name_txt.isValid)
       forSend[_f_name_txt.name] = _f_name_txt.value;
      else {
       messageLine1 += ((isError)?', ':'') + String(_f_name_txt.start_value).toLowerCase();
       isError = true;
      if (_l_name_txt.isValid)
       forSend[_l_name_txt.name] = _l_name_txt.value;
      else {
       messageLine1 += ((isError)?', ':'') + String(_l_name_txt.start_value).toLowerCase();
       isError = true;
      if (_email_txt.isValid)
       forSend[_email_txt.name] = _email_txt.value;
      else {
       messageLine1 += ((isError)?', ':'') + String(_email_txt.start_value).toLowerCase();
       isError = true;
      if (_phone_txt.isValid)
       forSend[_phone_txt.name] = _phone_txt.value;
      else {
       messageLine1 += ((isError)?', ':'') + String(_phone_txt.start_value).toLowerCase();
       isError = true;
      if (_city_txt.isValid)
       forSend[_city_txt.name] = _city_txt.value;
      else {
       messageLine1 += ((isError)?', ':'') + String(_city_txt.start_value).toLowerCase();
       isError = true;
      if (_street_txt.isValid)
       forSend[_street_txt.name] = _street_txt.value;
      else {
       messageLine1 += ((isError)?', ':'') + String(_street_txt.start_value).toLowerCase();
       isError = true;
      if (_zip_txt.isValid)
       forSend[_zip_txt.name] = _zip_txt.value;
      else {
       messageLine1 += ((isError)?', ':'') + String(_zip_txt.start_value).toLowerCase();
       isError = true;
      if (isError)
       messageLine1 = 'Please enter your ' + messageLine1 + '. ' + newline;
      if (_selectCountry.selectedIndex >= 0)
       forSend['country_code'] = _selectCountry.value;
      else {
       messageLine2 += ((isErrorSelect)?', ':'') + 'country';
       isError = true;
       isErrorSelect = true;
      if (_selectState.selectedIndex >= 0 && _selectCountry.value == 'US')
       forSend['state'] = _selectState.value;
      else if (_selectCountry.value == 'US'){
       messageLine2 += ((isErrorSelect)?', ':'') + 'state';
       isError = true;
       isErrorSelect = true;
      if (isErrorSelect)
       messageLine2 = 'Please select your ' + messageLine2 + '. ' + newline;
      //isError = false;
      if (!isError && Boolean(_i_agree_cb.value)) {
       _Object.copyTo(purchasesList, forSend);
       URL.navigate('https://www.paypal.com/cgi-bin/webscr', forSend, URLMethod.POST, URLTarget.BLANK);
       Application.instance.aSopingCart.clear();
       message = 'The purchases are waiting for the payment.'+newline+'The shopping cart is empty.';
       _application.gotoSpash();
      } else {
       message += 'You need to accept The Terms of Use to place an order. ' + newline;
      message += messageLine1;
      message += messageLine2;
      new AlertMessage('Info!', message);
    public function onResize():Void {

  • Dynamically populating data for the drop down lists

    Hi,
    I am trying to have a mutually dependent drop down lists in my page.
    This is what I am trying to do -
    Lets consider there are 3 drop down lists (Choice - Select Many). A simple example lists are - Country, State, County. Now users selects country from drop down, I need to get all the states for that country as the data for the "State" drop down list. Then user selects a state, I need to populate data for the "County" drop down list.
    I am trying to do this. I added a ValueChangeListener method in the backing bean and tried to add this on the "Select Many Choice" component. But the method is never fired. I tried to change few other properties like - "immediate", "Auto Submit". but method is not fired.The method in backing bean is as shown below -
    public void onRegionSelect(ValueChangeEvent event) {
        System.out.println("Value changed ==>> "+event.getNewValue().toString());
    Need some help on how to do this.
    JDev: Version 11.1.2.3
    Thanks.

    Hi,
    I am trying to have a mutually dependent drop down lists in my page.
    This is what I am trying to do -
    Lets consider there are 3 drop down lists (Choice - Select Many). A simple example lists are - Country, State, County. Now users selects country from drop down, I need to get all the states for that country as the data for the "State" drop down list. Then user selects a state, I need to populate data for the "County" drop down list.
    I am trying to do this. I added a ValueChangeListener method in the backing bean and tried to add this on the "Select Many Choice" component. But the method is never fired. I tried to change few other properties like - "immediate", "Auto Submit". but method is not fired.The method in backing bean is as shown below -
    public void onRegionSelect(ValueChangeEvent event) {
        System.out.println("Value changed ==>> "+event.getNewValue().toString());
    Need some help on how to do this.
    JDev: Version 11.1.2.3
    Thanks.

  • Drop down menu default is ugly...why?

    Hi,
    Im sure this is a really stupid question but I have a
    template I built with a standard drop down menu...
    http://www.bluehippotravel.com/spahotels.php
    -see top right where it says "more"? And see on the top left
    for the hotel search where there is the country/city/state drop
    downs?
    My question is, why are they the ugly old style drop down,
    when I want them to look like the more modern, bubble style like
    the volvo drop down here:
    http://www.w3schools.com/html/tryit.asp?filename=tryhtml_select2
    Im sure it's something really obvious and simple but I have
    no idea....thank you in advance for the help/
    Also, does anyone have a suggestion on the page
    http://www.w3schools.com/html/tryit.asp?filename=tryhtml_select2
    for a better way to arrange the menu? I could do a more
    attractive javascript menu but it's got a mixture of drop downs,
    text input (Hotel Name) and two image clicks (Date and Amenity)
    Thank you!
    Laura

    > My question is, why are they the ugly old style drop
    down, when I want
    > them to
    > look like the more modern, bubble style like the volvo
    drop down here:
    It's because you have used an ordinary jump menu element (and
    used it
    incorrectly, too since it's not within a <form> tag) -
    <label><select name="jumpMenu10" id="jumpMenu10"
    onchange="MM_jumpMenu('parent',this,0)" class="more">
    <option selected="selected">More</option>
    <option
    value="
    http://www.bluehippotravel.com/allinclusivevacations.html">All
    Inclusive</option>
    <option
    value="
    http://www.bluehippotravel.com/safaris.html">Safaris</option>
    </select></label></span></td>
    and then styled it with this rule -
    select.more {
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: x-small;
    background-color:#e2f7fd;
    border-color:#003399
    font-size: x-small;
    font-weight: normal;
    color:#003366;
    The w3 example doesn't style the <select> tag at all.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "Lvanhoff" <[email protected]> wrote in
    message
    news:[email protected]...
    > Hi,
    > Im sure this is a really stupid question but I have a
    template I built
    > with a
    > standard drop down menu...
    >
    http://www.bluehippotravel.com/spahotels.php
    > -see top right where it says "more"? And see on the top
    left for the
    > hotel
    > search where there is the country/city/state drop downs?
    >
    > My question is, why are they the ugly old style drop
    down, when I want
    > them to
    > look like the more modern, bubble style like the volvo
    drop down here:
    >
    http://www.w3schools.com/html/tryit.asp?filename=tryhtml_select2
    >
    > Im sure it's something really obvious and simple but I
    have no
    > idea....thank
    > you in advance for the help/
    >
    > Also, does anyone have a suggestion on the page
    >
    http://www.w3schools.com/html/tryit.asp?filename=tryhtml_select2
    > for a better way to arrange the menu? I could do a more
    attractive
    > javascript
    > menu but it's got a mixture of drop downs, text input
    (Hotel Name) and two
    > image clicks (Date and Amenity)
    >
    > Thank you!
    > Laura
    >
    >

  • To develop cascading select drop down box from web service

    Hi,
    I have two select drop downs one is "STATE" and other is "CITY". I am fetching the values for state drop down from a web service method "return"(*a list is returned from that method*) . Now i have a method in a webservice which accepts a string type argument(state) which returns the cities corresponding to that state. I made another drop down from "return"( list is returned from that method) of this second method which gives me city.
    Now what i want to do is on selecting a state the webservice method should get executed passing "selected state" as a parameter to my web service function and that return will populate my second drop down list.
    Can partial trigger help me in this?
    If partial trigger is helpful,how will i pass an argument to my second method which is returning me cities?
    OR
    Is there some other way to do it?

    Hi,
    check this one: http://www.oracle.com/technetwork/developer-tools/adf/learnmore/70-dependent-listboxes-using-ws-286107.pdf
    Frank

  • Cascading drop downs and XML

    Hi,
    I am working on a custom form and am quite new to Livecycle.
    I would like to do something basic such as
    country drop down (populated from an xml file)
    province / state drop down (populated from xml file).
    I was able to populate the country but am unsure how to proceed so that the province/state drop down is dynamically populated from an xml file as well.
    Cheers
    Henry

    Sure here is a sample.
    country.xml is
    <CountryList>
         <Country>
              <Name>CANANDA</Name>
              <Code>CAN</Code>
         </Country>
         <Country>
              <Name>United States of America    </Name>
              <Code>USA</Code>
         </Country>
    </CountryList>
    province.xml is
    <StateList>
         <State>
              <Name>Ontario</Name>
              <Code>CAN</Code>
         </State>
         <State>
              <Name>Quebec  </Name>
              <Code>CAN</Code>
         </State>
         <State>
              <Name>Oregon</Name>
              <Code>USA</Code>
         </State>
         <State>
              <Name>New york</Name>
              <Code>USA</Code>
         </State>
    </StateList>

  • If statement in drop down

    I have dynamic values in drop down menu. that contains user names. it is used to send feedback. I want that if admin logins then show all user names, else show only 'admin' in the drop down box. how can I use if statement in drop down?
    ResultSet rset     = SELECT USERNAME FROM QMSUSERS;
         while (rset.next()){
         %>
         <option> <%=rset.getString(1)%>     </option>
         <%}%>
    Usman

    Depending on the kind of user, you can change the SQL request:
    String SQL;
    if ( isAdmin ) {
       SQL = "SELECT USERNAME FROM QMSUSERS";
    } else {
       SQL = "SELECT USERNAME FROM QMSUSERS WHERE ISADMIN = FALSE";
    ResultSet rset = `execute SQL';
    etc.

  • How can you change a drop down menu's selection in a case statement?

    Hi,
    I am trying to an array finding vi. This VI will take an existing xml file and after the user has selected his/her equipment, input, output, and frequency it will put all of those options into a string and search the xml file for that exact array name and display it on an output screen. The problem I am having is that my input and outputs selection needs to be a little different depending upon the equipment selected. I thought that I could use a case statement to change the input and output selectable options, but I have run into many snags with it. For one everytime I place a new Input and Output drop down menu in the case statement it wants to place a new one in the front panel (I only want one input and output not three I have two inputs and outputs hidden right now). I believe I am using the case statement wrong... Can anyone help change my input and output selectable options depending upon the equipment selected. Attached is my xml file, Array Find.vi (the original one), and Array Find_Test.vi (this is the one I am trying to modify).
    Thanks,
    dlovell
    Solved!
    Go to Solution.
    Attachments:
    Find Array.zip ‏126 KB

    Hi dlovell,
    There are 2 key things I'd recommend for the code - using property nodes to edit the strings in the combo boxes.  Something like the following snippet:
    Also, check your CPU in task manager when running the code.  It will eat a whole core of your machine (25% quad core, 50% dual, 100% single) - that is because you are running the while loop and polling the control as fast as Windows will allow you to.  Using Event Structures is a much more efficient way of working in this example.
    Check out the MOD attached 
    Regards,
    Peter D
    Attachments:
    MOD_Find Array.vi ‏28 KB

  • How do I add State/Province and Country to my drop down list?

    How do I add State/Province and Country to my drop down list?

    Hi Gen,
    My problem is that I'm working with the free version of Form Central - I'm willing to purchase a version.  Earlier in my form I have States as a drop down menu (see below) but can't copy it to make it appear later in the same document. I was trying to avoid recreating the entire form. Any tips on copying or duplicating a field inside a document.
    Best Regards,
    Gina Grant
    ink + thread
    312.970.1106 (p)
    773.435.6474 (f)
    www.inknthread.com
    CPS Vendor #: 98626
    The information contained in this email is confidential, proprietary and may be legally privileged. This email is intended solely for the addressee(s). If you are not the intended recipient, you are hereby notified that any use, dissemination, or reproduction is strictly prohibited and may be unlawful. If you are not the intended recipient, please contact ink + thread by e-mail ([email protected]) and destroy all copies of this email.

  • I can't print my statements from banking websites - the option to print (drop down file menu) from the website is greyed out

    I do my banking online, and have previously been able to print my statements off the website. Since the last update, although the page shows in the browser as normal, the option to print from the drop-down file menu is greyed out and I cannot print anything, even if I try and select a portion. It is not a problem with the website as I can print without a problem in another browser program. This problem has now persisted for quite a while with no resolution over time. How do I get Firefox to allow print from a secure website (I assume that is the problem?) It occurs with more than one secure site (two different banks)

    I have the same problem... not being able to print website 'Print' pages. I have read carefully the above link and have followed the reset directions in about:config, but I still cannot print in Firefox. Both Google Chrome and IE work perfectly every time. I have verified that the correct printer is selected and that the margins are in order (0.5 all around happen to be what mine are set for). I have resorted to use the Firefox Add On "View this Page in IE" whenever I need to print something. Works like a charm, but come on... it should work in Firefox too! I know there is some setting or something, but the Problems_printing_web_pages link had nothing there that worked for me.

  • Cascading Select Statements - problem with blank drop-downs

    Hello,
    I have posted a number of questions about Cascading Select Statements in APEX and though I've received some good information, I still get a blank drop-down when I select the first LOV.
    I also found "How to test an On-Demand Process used for AJAX" on the web. Here is the link to the web page:
    http://www.inside-oracle-apex.com/2006/12/how-to-test-on-demand-process.html
    When I try to test the ON-DEMAND Application Process in the Address Bar of my browser by typing the following, I get an error:
    http://beta.biztech.net:2020/pls/apex/f?p=4000:0:211233229176642:APPLICATION_PROCESS=CASCADING_SELECT_LIST:::P6_PROJECT_ID:CASCADING_SELECTLIST_ITEM_1
    The error I get is:
    Unexpected error, unable to find item name at application or page level.
    ERR-1002 Unable to find item ID for item "P6_PROJECT_ID" in application "4000".
    As perhaps a last ditch effort, I will post all the steps, all the code and a link to my application.
    Here is a link you can visit to view my application:
    http://beta.biztech.net:2020/pls/apex/f?p=112:1
    You can log in with the following ID and Password
    ID: tsimkiss
    PW: TS92
    Here are the steps that I have followed and the code that I have used.
    ++++++++++++++++++++++++++++++++++++++++++++++++++
    1. Create an application process in Shared Components
    - On Demand CASCADING_SELECT_LIST - like this:
    Process Point: On Demand
    Name: CASCADING_SELECT_LIST
    TYPE: PL/SQL Anonymous Block
    BEGIN
    OWA_UTIL.mime_header ('text/xml', FALSE);
    HTP.p ('Cache-Control: no-cache');
    HTP.p ('Pragma: no-cache');
    OWA_UTIL.http_header_close;
    HTP.prn ('<select>');
    HTP.prn ('<option value="' || 1 || '">' || '- select tasks -' || '</option>');
    FOR c IN (SELECT newops.task_name AS task_name,
    newops.task_id AS task_id
    FROM NEW_OPPORTUNITIES newops
    UNION
    SELECT DISTINCT pt.task_name AS task_name,
    pt.task_id AS task_id
    FROM pa_tasks@bizdev pt,
    pa.pa_projects_all@bizdev prj
    WHERE prj.project_id = pt.project_id
    AND prj.project_id =
    CASE
    WHEN TO_NUMBER(:cascading_selectlist_item_1)=1
    THEN prj.project_id
    ELSE TO_NUMBER(:cascading_selectlist_item_1)
    END)
    LOOP
    HTP.prn ('<option value="' || c.task_id || '">' || c.task_name || '</option>');
    END LOOP;
    HTP.prn ('</select>');
    END;
    2. Create an application item in Shared Components:
    Name: CASCADING_SELECTLIST_ITEM_1
    3. Create an LOV in Shared Components
    - This is the Primary LOV (name it similar to it's select list page item):
    List of Values Name: PROJECT_ID
    Source: Lists of Values Query
    SELECT newops.CLIENT AS project_name, newops.PROJECT_ID AS project_id FROM NEW_OPPORTUNITIES newops
    UNION
    SELECT ppa.NAME AS project_name, ppa.PROJECT_ID AS project_id FROM pa.pa_projects_all@bizdev ppa
    WHERE ppa.project_status_code='APPROVED'
    AND (ppa.COMPLETION_DATE IS NULL or ppa.completion_date > sysdate)
    AND (ppa.CLOSED_DATE IS NULL or ppa.closed_date > sysdate)
    ORDER BY project_name asc
    4. Create a javascript and put it in the header of the page where cascading drop-downs are:
    <script>
    function get_select_list_xml(pThis,pSelect){
    var l_Return = null;
    var l_Select = html_GetElement(pSelect);
    var get = new htmldb_Get(null,html_GetElement('pFlowId').value,
    'APPLICATION_PROCESS=CASCADING_SELECT_LIST',0);
    get.add('CASCADING_SELECTLIST_ITEM_1',pThis.value);
    gReturn = get.get('XML');
    if(gReturn && l_Select){
    var l_Count = gReturn.getElementsByTagName("option").length;
    l_Select.length = 0;
    for(var i=0;i<l_Count;i++){
    var l_Opt_Xml = gReturn.getElementsByTagName("option");
    appendToSelect(l_Select, l_Opt_Xml.getAttribute('value'),
    l_Opt_Xml.firstChild.nodeValue)
    get = null;
    function appendToSelect(pSelect, pValue, pContent) {
    var l_Opt = document.createElement("option");
    l_Opt.value = pValue;
    if(document.all){
    pSelect.options.add(l_Opt);
    l_Opt.innerText = pContent;
    }else{
    l_Opt.appendChild(document.createTextNode(pContent));
    pSelect.appendChild(l_Opt);
    </script>
    5. Create two Select List page items:
    P6_PROJECT_ID <-- This is the primary drop-down
    P6_TASK_ID <-- This is the secondary drop-down
    6. In your primary select list, put the following into HTML Form Element Attributes:
    HTML Form Element Attributes: onchange="get_select_list_xml(this,'P6_TASK_ID')"
    Other settings on the page:
    Name: P6_PROJECT_ID
    Display As: Select List
    Source Used: Always, replacing any existing values in session state
    Source Type: Database Column
    Source value or expression: PROJECT_ID
    Named LOV: PROJECT_ID <--- Choose from drop-down (this is the Application LOV created earlier)
    Null display values: - select project -
    Display Null: Yes
    7. The second select list is based on an LOV and depends on the value of the first select list:
    Name: P6_TASK_ID
    Display As: Select List
    Source Used: Always, replacing any existing values in session state
    Source Type: Database Column
    Source value or expression: TASK_ID
    Null display values: - select project -
    Display Null: Yes
    List of values definition:
    SELECT newops.task_name AS task_name,
    newops.task_id AS task_id
    FROM NEW_OPPORTUNITIES newops
    UNION
    SELECT DISTINCT pt.task_name AS task_name,
    pt.task_id AS task_id
    FROM pa_tasks@bizdev pt,
    pa.pa_projects_all@bizdev prj
    WHERE prj.project_id=pt.project_id
    AND prj.project_id=:P6_PROJECT_ID
    ORDER BY task_name asc
    +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    If you need an actual running copy of my application, I'm not sure I can upload to the Oracle APEX website since uses datalinks to some tables. If necessary, I will give you my login into if you email me directly, however.
    If someone could just straighten my code out especially on the ON-DEMAND Application Process, I think that would really help me out.
    Hope someone out there can help me.
    Thanks
    LEH

    Sorry, looking at your code that testing URL is still incorrect. You should be passing name / value pairs in the last arguments, and your passing P6_PROJECT_ID as the name part and CASCADING_SELECTLIST_1 as the value part. In your application process you are using CASCADING_SELECTLIST_1 as the parent ID for the P6_TASK_ID dropdown, so it is this name / value pair that you'll need to test. So your URL should look something like this...
    http://beta.biztech.net:2020/pls/apex/f?p=112:0:211233229176642:APPLICATION_PROCESS=CASCADING_SELECT_LIST:::CASCADING_SELECTLIST_ITEM_1:[some project id]
    (Note: Where [some project id] should be an ID for a project in your database, that has tasks.)
    And I'm with Dan here, I still can't access that link you provided. apex.oracle.com should be your next move if you can't resolve it, as you've got at least two people willing to go and have a look at your code.
    Hope it helps,
    Anthony.

  • I am unable to save a bank statement - a drop down box wants my "owner password" before it will save.  How do I find this?

    Recently, I have been unable to save my bank statements.  I now get a "drop down box" asking for my "owner password".  When I insert my password, it does not recognize it?  Any ideas?

    The ! turns up when iPhoto loses the connection between the thumbnail in the iPhoto Window and the file it represents.
    Option 1
    Back Up and try rebuild the library: hold down the command and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild. Choose to Rebuild iPhoto Library Database from automatic backup.
    If that fails:
    Option 2
    Download iPhoto Library Manager and use its rebuild function. This will create a new library based on data in the albumdata.xml file. Not everything will be brought over - no slideshows, books or calendars, for instance - but it should get all your albums and keywords back.
    Because this process creates an entirely new library and leaves your old one untouched, it is non-destructive, and if you're not happy with the results you can simply return to your old one. .
    Regards
    TD

  • Forms, drop down state/country, and Reset Form button.

    Hello, I am working on my first website using Muse. I am looking to add a drop down menu with all the US states within a form. I am also looking to create a Reset button Next to the Submit button at the end of the form. Are any of these possible with Muse at this time?
    Thank you for your time,
    Richard

    Hi,
    Please take a look to this thread, How do I add a contact form / feedback form to my site?

Maybe you are looking for