Omitting drop down lists if a certain drop choice is chosen

I have 5 drop down lists that have data binding to populate a text field with number values (12-34-567-89012-34).  There is one choice in the first drop down list that will populate the entire numbered sequence.  If that drop down choice is chosen, I would like the next 4 drop downs to be skipped.  How can I do this?
Thank you,
Steve B

Something like this should work.
The attached form has three drop-downs (dd1, dd2 and dd3) each with a default value of "00". On dd1 exit event I check if "01" was chosen. If so I set dd2 and dd3 access to "protected" and their values to "00".
// form1.page1.subform1.dd1::exit - (JavaScript, client)
if (form1.page1.subform1.dd1.rawValue == "01") {
          form1.page1.subform1.dd2.access = "protected";
          form1.page1.subform1.dd3.access = "protected";
          form1.page1.subform1.dd2.rawValue = "00";
          form1.page1.subform1.dd3.rawValue = "00";
else {
          form1.page1.subform1.dd2.access = "";
          form1.page1.subform1.dd3.access = "";
The text field tf calculate event checks dd1. If dd1 is "01" is sets tf to "12-34-56". If dd1 is not "01" it concantenates dd1, dd2 and dd3.
// form1.page1.subform1.tf::calculate - (JavaScript, client)
if (form1.page1.subform1.dd1.rawValue == "01") {
          this.rawValue = "12-34-56";
else {
          this.rawValue = form1.page1.subform1.dd1.rawValue + "-" +
                    form1.page1.subform1.dd2.rawValue + "-" +
                    form1.page1.subform1.dd3.rawValue;
Steve

Similar Messages

  • LiveCycle Designer 8.0 - Linked Drop Down Lists

    Hi,
    Im new to Adobe LiveCycle and trying to link two drop down lists. I want the second drop down list to have certain options visible, depending upon the choice selected in the first list.
    I have spent a bit of time with JavaScript and trying to link them, however am struggling.
    Can anyone advise?
    TIA, Mike.

    Hi Mike -
    You can accomplish what you are describing with an array.
    An example of what you are asking about can be found in the Live Cycle Interactive Purchase Order sample found at [installdir]\EN\Samples\Purchase Order\Interactive (at least that's where I found mine, I'm using Live Cycle Designer version 7).
    There are two drop-down lists in this Purchase Order sample: Country and State/Province. Only two countries are listed for the purpose of the example however you can customize the script by adding other countries.
    Look for the script object named 'countryScript'. It contains the logic invoked by the drop-down lists when the form is created and based on the user interaction.

  • Preselected values in drop-down lists

    Hi everyone,
    Some quick background before stating the issue: I've
    developed a set of forms in ASP.NET working with a SQL Server 2000
    db where my client can add, edit, and search records within their
    intranet. When adding a record, they are making some selections
    from a drop-down list where the values are dynamically populated
    from a lookup table. There are three sections to the form and each
    section gets its values from a different table. When editing a
    record, the drop-down lists should show all the choices but
    prepopulate the list with their earlier selection.
    Here's the issue: everything is working just fine on my box
    and is working 90% on my client's server. The problem is that when
    editing a record, two of the three sections of the form are showing
    the correct values. The third section is showing the first choice
    in the drop-down list rather than what was recorded in the db.
    Again, this is not happening in my development environment.
    It's only happening on my client's environment. I've triple-checked
    the code and confirmed that the datatypes in their tables match
    what I've got set up in my db. The fact that these pages are behind
    my client's firewall make the usual trial and error kind of
    troubleshooting very difficult.
    This is very mysterious. Any suggestions for what I can check
    and how I can troubleshoot this?
    Thanks.

    In case anyone else comes across this problem, it seems that
    deleting and recreating the table solved the problem. I renamed the
    original table and compared it to the one I recreated and they
    appear to be identical but nevertheless that was the
    solution.

  • Drop-down list is crashing my interactive PDF document

    Hello, I'm using LiveCycle Designer 7.0 on Windows XP.
    I'm attempting to create some simple editable PDF documents for use by my security staff.
    I've created the forms and most fields work correctly, except for a simple drop-down list field with about 15 choices. When the pdf is called up from Windows and the user reaches that field (either by tabbing to it or clicking on it), the entire pdf crashes; the user is booted out and the pdf closes. The "debug" option doesn't seem to fix anything.
    When I test-run the pdf in Designer, the field seems to work OK. The problem is happening when we open the pdf from Windows.
    I've deleted and rebuilt this field twice, with the same result.
    I'm an Adobe noob and am nowhere near sophisticated enough to employ JavaScript or other behind the scenes programming; I'm just using the basic features of Designer.
    Please help, I'm stuck and don't know how to troubleshoot this problem.
    Thanks in advance to anyone who may be able to point me in the right direction. Remember, I'm a noob, so single syllable words are probably best.
    RJinNorCal | 11/7/2011

    Hello Srini,
    Thanks very much for your gracious offer. I did a bit more research
    yesterday after posting my issue on the forum, and based on a similar
    thread, I saved my document as a static PDF instead of a dynamic PDF.
    That seems to have done the trick; all fields now work correctly without
    crashing.
    I will still be happy to share the document with you, but my current IE8
    browser is having problems with accessing the specific website; it keeps
    crashing/recovering the tab. My IT department knows about this issue and
    is working to address it. At any rate, since my problem seems to be
    fixed, I'm sure you have other pressing matters to attend to, but thanks
    again for providing support! I will be sure to come back to the forums
    if I encounter any other problems I cannot resolve.
    Regards,
    R.J. Richards
    Administrative Services Officer II
    County of Sacramento, Department of Health & Human Services
    Departmental Administration, Management Services
    E: [email protected]   D: 916-875-1232  C: 916-416-8550  F:
    916-875-2029
    Intranet: http://dhhsweb/default.aspx?WOID=FAC
    Internet: http://www.sacdhhs.com

  • Is it possible to show first item in a Drop down list

    Is it possible to automatically display the first item in a drop down list ?
    The reason I ask is  ... I am generating pre-filled PDF forms using XML data files.
    Whenever there is a certain type of data I am populating a drop down list for the user to review.
    Currently, the user must click on the drop down to see if data is there regardless of whether there is no data at all or many data lines of data..
    I would like to make it clear to the user whether or not there is any data - right awa.y
    I have considered creating a display item next (like a check box or a text field ) next to the drop down and setting it to cindicate if there is data, etc -
    but i thougth that I would ask if the drop down could simply be set to automatically display the first item in the list (this is the preferred functionality)
    If this is not possible I can always create a check box and set it if there is any data as an  indicator for the user ..
    Thanks

    You can do this way..
    Place the code in Inititalize event with Java Script
    if(DropDownList1.rawValue == null)
        DropDownList1.selectedIndex = 0;
    You need to check if the Dropdown has a value selected from the previous save.. If not then set the selected item to 0th index. (which is 1st one in the dropdown values)..
    Thanks
    Srini

  • Drop down list based on log in username - php mysql

    I have a drop down list of client names on a php page that filters a second drop down list of site names.
    At the moment, any user who logs in can see the entire list of clients, however I want to filter the list based on their username log in.
    This is the entire page code, the section in bold is the drop down list in question:
    <?php
    if (!isset($_SESSION)) {
      session_start();
    $MM_authorizedUsers = "asguser,admin,member";
    $MM_donotCheckaccess = "false";
    // *** Restrict Access To Page: Grant or deny access to this page
    function isAuthorized($strUsers, $strGroups, $UserName, $UserGroup) {
      // For security, start by assuming the visitor is NOT authorized.
      $isValid = False;
      // When a visitor has logged into this site, the Session variable MM_Username set equal to their username.
      // Therefore, we know that a user is NOT logged in if that Session variable is blank.
      if (!empty($UserName)) {
        // Besides being logged in, you may restrict access to only certain users based on an ID established when they login.
        // Parse the strings into arrays.
        $arrUsers = Explode(",", $strUsers);
        $arrGroups = Explode(",", $strGroups);
        if (in_array($UserName, $arrUsers)) {
          $isValid = true;
        // Or, you may restrict access to only certain users based on their username.
        if (in_array($UserGroup, $arrGroups)) {
          $isValid = true;
        if (($strUsers == "") && false) {
          $isValid = true;
      return $isValid;
    $MM_restrictGoTo = "accessdenied.html";
    if (!((isset($_SESSION['MM_Username'])) && (isAuthorized("",$MM_authorizedUsers, $_SESSION['MM_Username'], $_SESSION['MM_UserGroup'])))) {  
      $MM_qsChar = "?";
      $MM_referrer = $_SERVER['PHP_SELF'];
      if (strpos($MM_restrictGoTo, "?")) $MM_qsChar = "&";
      if (isset($_SERVER['QUERY_STRING']) && strlen($_SERVER['QUERY_STRING']) > 0)
      $MM_referrer .= "?" . $_SERVER['QUERY_STRING'];
      $MM_restrictGoTo = $MM_restrictGoTo. $MM_qsChar . "accesscheck=" . urlencode($MM_referrer);
      header("Location: ". $MM_restrictGoTo);
      exit;
    ?>
    <html>
    <body>
    <script type="text/javascript">
    function AjaxFunction(client_UID)
    var httpxml;
    try
      // Firefox, Opera 8.0+, Safari
      httpxml=new XMLHttpRequest();
    catch (e)
      // Internet Explorer
              try
                        httpxml=new ActiveXObject("Msxml2.XMLHTTP");
                  catch (e)
                    try
                  httpxml=new ActiveXObject("Microsoft.XMLHTTP");
                    catch (e)
                  alert("Your browser does not support AJAX!");
                  return false;
    function stateck()
        if(httpxml.readyState==4)
    var myarray=eval(httpxml.responseText);
    // Before adding new we must remove previously loaded elements
    for(j=document.testform.subcat.options.length-1;j>=0;j--)
    document.testform.subcat.remove(j);
    for (i=0;i<myarray.length;i++)
    var optn = document.createElement("OPTION");
    optn.text = myarray[i];
    optn.value = myarray[i];
    document.testform.subcat.options.add(optn);
        var url="dd.php";
    url=url+"?client_UID="+client_UID;
    url=url+"&sid="+Math.random();
    httpxml.onreadystatechange=stateck;
    httpxml.open("GET",url,true);
    httpxml.send(null);
    </script>
    <form name="testform" method='POST' action='mainck.php'>
    Select first one
      <select name=cat onChange="AjaxFunction(this.value);">
      <option value=''>Select One</option>
    <?
    require "config.php";// connection to database
    $q=mysql_query("SELECT DISTINCT * FROM qry_test GROUP BY client_name ASC");
    while($n=mysql_fetch_array($q)){
    echo "<option value=$n[client_UID]>$n[client_name]</option>";
    ?>
    </select>
    <select name=subcat>
    </select><input type=submit value=submit>
    </form>
    </body>
    </html>
    I think I need to amend the sql statement to something like this - but I haven't quite got it right:
    SELECT DISTINCT * FROM qry_test WHERE username = colname GROUP BY client_name ASC
    Where do I drop the code for the colname info?
    name:colname
    type: text
    default value: -1
    run time value: $_SESSION['MM_Username']
    Thanks!

    I don't do PHP but it would be something like:
    $sql = sprintf (SELECT DISTINCT * FROM qry_test WHERE username = %s GROUP BY client_name ASC, $_SESSION['MM_Username'] );
    or you can just embed the session variable into the sql string.
    But why are you using the GROUP BY clause? If you just need a distinct list of names, use the DISTINCT keyword and reduce your select list to only the needed column.

  • Drop-down list in MS Word

    Using this MacBook, I have created a Template in MS Word 2004, and want to create a drop-down list containing perhaps 30 choices. The drop-down list available in Form Fields has a limit of 25 choices. There is an article at http://support.microsoft.com/kb/198561 explaining how to create a bigger combo-box, but I notice that the instructions in that article cannot be followed to the letter, because the steps that it dictates for the Entry Macro and the Text Form-field do not appear in this version of Word; and I certainly cannot get the result to work in the template.
    I dare say that I have made some mistake through inexperience, but might it be that the version of MS Word in the Mac-version will not permit me to do what I am trying to do ?

    Since this question is about a Microsoft product, you might have more luck getting suggestions if you ask in Microsoft's own forums.
    Good luck.

  • Webdynpro for ABAP - interactive Adobe form - drop down lists not working

    Hi all,
    I'm trying to create an interactive form for a client using webdynpro for ABAP and I've viewed the demo "Create SAP Interactive Forms by Adobe with Web Dynpro for ABAP" by Thomas Jung, but when I implement it the form following similar steps the form is not interactive.
    In the properties of the "InterativeForm", I've tried clicking the "enabled" flag both on and off.  I've also tried setting the "displayType" property to both "ActiveX" and "Native".  But none of this worked.
    I though my problem might be with Adobe reader so I switched from 8.0 back to 7.0 but this didn't make any difference either.
    The system we are using is NW04s WAS 700.  Any hints would be greatly appreciated!
    Thanks,
    -tom

    Thanks for the suggestion Dezso.  I've downloaded a newer version of ACF as indicated by the OSS note and installed it.  I'm still having the same issue.
    My basic question is what options should I be using in the form and on the InteractiveForm component?  It looks like because of the evolution of the product there are multiple options available.  I recall reading somewhere that as of a certain SP level we should have ZCI (zero client install) available.  The would be our preference.  It will be a support nightmare if each user needed a manual download of ACF.exe installed.
    Should I click the "enabled" flag on the InteractiveForm object?  When I create the form should I use the "Native" drop down list or the one from the "Active X" tab?  I would like to use the "List Box" control on the form as well but it is only available in the "Standard" tab.  So does that mean I can't get the selections from a "List Box"?
    Thanks,-tom

  • Create a drop down list that populates based on the selection form another drop down list.

    I need to set up a drop down list that is popualated (i.e. displays a certain list of selctions in the drop down list) based on the choise the form user selects in an adjacent List
    For example
    There are two drop down list field sitting side by side in the form
    1. Select State          2. Select Course
    What I want to do is have a list of states in the first drop down list (1.Select State) and depending on which state the form user selects , the second drop down list (2.Select Course) will populate with a selction of courses available in that selected state only (i.e. it will on;y show course available in QLD if QLD is selcted).
    Is this hard to do?

    Hi,
    I would recommend some posts from Stefan Cameron's blog:
    http://forms.stefcameron.com/2006/09/18/connecting-a-form-to-a-database/
    http://forms.stefcameron.com/2006/09/29/selecting-specific-database-records/
    http://forms.stefcameron.com/2006/12/18/databases-inserting-updating-and-deleting-records/
    http://forms.stefcameron.com/2006/12/07/better-form-design-with-xfa-25/
    Hope that helps,
    Niall

  • Email Select People From Drop Down List

    I am creating a form that sales reps fill out to go to one whole department and I have that all set with my email submit button.
    However I also need to form to go to one of 5 others based off their names in a Drop down box for who is a manager for a certain region. Since all 5 don’t need to be copied on all form submissions I want our sales reps to be able to select their manager from the drop down list to ultimately add their email address in the CC field when the forms is submitted.
    Is this possible?
    Thanks, Mike

    Ok,
    if you don't know scripting, then you can use this macro (requires Desiger ES2 or ADEP Designer).
    It will create the script for you.
    The only thing you have to do is to install the macro.
    http://thelivecycle.blogspot.com/2011/07/mailto-maker-macro.html

  • Datatable with drop down list in a cell

    Does anyone know the existing example of datatable against certain memory structure with possibility to have drop down list in a cell ( I mean after switching to editing mode some columns become drop down lists , otherwise just value ).
    TIA
    Michael

    Not possible. InDesign isn't designed to be form-filling software. At best, it can create fields which can be passed on to a PDF file, which usually further has to be edited in Acrobat Pro.

  • Can we display only the required dimensions under Dimensions Drop Down list

    Hi,
    I am using Hyperion Financial Data Quality Management, Fusion Edition 11.1.1.3.00, so far under Activities -> Maps option we used to display all the dimensions used in the application, but now as per the client's requirement we need to display only those dimensions which needs mapping under dimensions drop down list.
    Eg)
    Now in our Application our Dimension Drop Down list will look show these dimensions
    Account
    Entity
    Legal Entity
    Inter company
    Reverse 1
    Reverse 2
    Among these we are doing mapping only for Account, Entity dimensions so we need to hide rest of the dimensions from the Dimensions Drop Down list for which we are not using any mappings (Legal Entity, Inter company,Reverse 1,Reverse 2)
    Another thing is these dimensions should be hidden only from the drop down list and not from the Output file generated after the Export.
    Some suggestions regarding this issue will be greatly helpful.
    Thanks,
    Abdulla Javeed Hassan

    Hi
    If hiding the other dimensions is to prevent users from accessing and changing the mappings then you could do this by amending the object security so that only certain user roles can access the Activities > Maps option.
    This will only really work if you have limited users / central team that will control the maps but it is the most obvious way to stop users accessing the maps.
    Hope this helps
    Stuart

  • Use of Zero (0) in Required Drop-Down List Field

    Using LiveCycle Designer ES 8.2.1x and Acrobat Pro Extended 9.1.2.
    I have a drop-down list (DDL) on a form for entering a quantity.  For certain reasons (i.e., quantity bundling/packages), I want to use a DDL.
    For one thing, if I set the default value to zero (0), that value does not appear in the DDL in the published form.
    Moreover, I've set the field to "User Entered - Required".  However, the form doesn't recognize/validate zero (0) as an entry in this field, and I need it to.
    Is there a trick to using a zero (0) as a value in a DDL, esp. one set to "required"?

    I too was unable to recreate the error/condition, so, I deleted and
    re-inserted the fields, without a problem.
    B

  • Exactly what does the Data Drop-down List do?

    What does the Data Drop-down List do? Is it used to make a drop-down list from certain records in a column in a table of a data base?

    Yes, this is exactly what it does. However, it's a custom control, not a built-in control. JavaScript is used to set it up. In order to use it you have to have a data connection in the document and modify the "Initialize" script, which is were the list is populated from the DB. The "Initialize" code is a good example of how to use XFA JavaScript to access a DB. However, the code is also written in a very general manor and takes the long way around to hooking up to the DB. Much shorter code can be written for a specific DB.
    Thom Parker
    WindJack Solutions
    www.windjack.com

  • Binding Drop Down Lists

    Hello,
    I am trying to figure out how i can bind drop down lists. I want it so if you choose a certain selection in drop down list 1, then you are only able to pick a certain selection out of drop down 2. So basically each selection in drop down 1 will give you different options to select in drop down 2. Sorry if i made that really confusing. Thanks
    -Aaron-

    Hi,
    Here is a mock-up version of the spreadsheet.
    The first dropdown has the nine categories set in the Object / Field tab. Also have a look in the Object / Binding tab as there are values specified for each of the nine categories. These will be used later in the script.
    The second dropdown does not have any values specified in the Object / Field tab.
    Instead there is script in the exit event of the first dropdown. This is a switch statement that first of all looks at the bound value ("9030") of the choice that the user has made ("9030 National Marketing"). The statement then looks at each case until it gets to one that matches; then it runs the script for that case and then breaks from the switch statement.
    Each case starts off with:
    DropDownList2.clearItems();
    DropDownList2.rawValue = null;
    This is important because this clears the list in dropdown2 and sets its value to null. These two lines are then followed by a series of addItem() script which goes through all of the types in that category.
    I have scripted all of 9030 and the first five lines of 9031. This should get you out of the traps. It is a bit of a pain, but just copy and paste downwards.
    Each case ends with a "break;" and the last "}" closes the switch statement.
    Good luck,
    Niall

Maybe you are looking for

  • Invoice & PO

    hi all, kindly share ur answers this is already posted but not answered 1.From where does system pick default qty of an item when u post invoice?    Po or PO history 2. which of the following regarding I/p tax r correct? u can use i/p and o/p tax cod

  • Image Dark on a PC

    Hi, I have a Mac Book Pro and I use Final Cut Pro to edit video for our newspaper's website. Several people with older PC monitors claim my videos are too dark. They look fine on my screen. I know that PC monitors tend to be darker while Macs are bri

  • My imac restarts insteads of shut down

    hello i am new to the mac...so bare with me. i am using a 27" intel i7 mac os x lion, version 10.7.2 hmm ... i noticed from day one...that sometimes when i click the apple>shut down...it does everything like a shut down but it spins the dvd-r and res

  • Trying to use HPLJ 1102w as a wired network printer. How do you configure the network settings?

    I have an HPLJ 1102W and I want to use it as a wired printer on my LAN. The trouble is, the easy setup utility is geared toward wireless networking and the ethernet interface will not get a DHCP address from the LAN. In order to get an IP address, I

  • Using EL in navigation model

    Hi All, I am using webcenter portal application. I want to check a condition and based on that condition i want to navigate to the specific page, which i think can be done with a bean call from a commandlink on action attribute. May i know how to imp