Dropdown field - when certain entries are selected make another field unavailable for data input

Hi All,
Sorry one again I am very new to forms and have another question. I have a dropdown list which when selecting certain values I need another field to be unavailable so the user can't enter data.
Hope this example makes sense:
DropDown
Field %
Outer
Not Allowed to enter data
Back
Not Allowed to enter data
Inner
Not Allowed to enter data
Cotton
Allowed to enter data
Wool
Allowed to enter data
If someone could give me some examples that would be a great help.
Many Thanks
Adam Sadler

Here's a script that you can use for the custom Validate script of the dropdown. It resets the value of the corresponding text field whenever a change is made to the dropdown. You can get rid of the line that does this if you don't want this to happen. Change "text1" in the code to match the name of the text field you're using.
// Custom Validate script for dropdown
(function () {
    // Get the selected value
    var v = event.value;
    // Set up an object to associate read-only status of text field with items
    var f_state = {
        "Outer": true,
        "Back": true,
        "Inner": true,
        "Cotton": false,
        "Wool": false
    // Get a reference to the text field
    var f = getField("text1");
    // Clear the text field
    f.value = "";
    // Set the read-only status of the text field based on what's selected
    if (v in f_state) {
        f.readonly = f_state[v];

Similar Messages

  • Mail.app crashes when certain messages are selected

    I recently migrated a user from OS X 10.4 to 10.5. When we run Mail.app, it will crash when certain messages are clicked.
    I've tried everything I could to get the mail in in a different way -- importing it in different ways, deleting ~/Library/Preferences/com.apple.mail.plist, and re-importing, etc.
    It certainly seems that the problem is tied to the individual message, as clicking on a certain message, even if it is in different folders (because of the way it was imported) causes the crash.
    Most of the dozen-or-so crash logs start like this:
    Process: Mail [17905] Path:
    /Applications/Mail.app/Contents/MacOS/Mail
    Identifier: com.apple.mail
    Version: 3.3 (926.1) Build
    Info: Mail-9260100~1 Code Type:
    X86 (Native) Parent Process: launchd
    [119]
    Date/Time: 2009-09-29
    10:47:52.713 -0600 OS Version:
    Mac OS X 10.5.7 (9J61) Report Version:
    6 Anonymous UUID:
    285B8613-3118-4F91-A28C-BC405D91FAFD
    Exception Type: EXCBADACCESS
    (SIGSEGV) Exception Codes:
    KERNINVALIDADDRESS at
    0x0000000089082454 Crashed Thread: 0
    Application Specific Information:
    -[MessageContentController _fetchContentsForMessage:fromStore:withViewingState:]
    One entry shows:
    Application Specific Information:
    -[MessageTransfer _synchronouslyPerformTransfer]
    +[Library synchronouslyUpdateMessageFiles]
    -[MessageContentController _fetchContentsForMessage:fromStore:withViewingState:]

    My guess, the email(s) are from windos users?
    I had this problem, until I switched to thunderbird. A few people, using a version (don't remember the version number) of outlook/outlook express, would send multimedia attachments.
    As soon as I would select the email, Mail would crash.
    I would copy the offending email to a folder with no other contents, and then open it up with TextEdit, to view the non-attachment portion.

  • Create a filtered list based on the selection in another field? URGENT HELP NEEDED

    Hi,
    Hoping someone can help me with something I am working on. i am fairly new to creating forms in acrobat (know how to us the full range of very basic features) but I have now found myself needing some help.
    i am producing an order form, and I need to create a filtered dropdown list based on the value selected in another field.
    basically, when a user select the company chooses their Business Name from a dropdown list, I would like their deliver address to self populate. In some cases there may be a few options for the company delivery address so in these cases the second option would be a dropdown list of the options available for that company.
    i have attached a screenshot, it is the Fields "Business Name" and "delivery Address/Delivery Postcode" that i would like to be linked so that the option in Business Name filtered the options in delivery Address
    Hope someone out there has the time to help me with this, i am using Acrobat Pro DC
    many Thanks
    Lee

    This will require a complex, custom-made script. The basic functionality of populating another field based on a selection in a drop-down is not that complicated, but if you want it to also populate other drop-downs (and then presumably use them to populate other fields), it will require a more complex solutions.
    This tutorial is relevant for your question: https://acrobatusers.com/tutorials/change_another_field

  • Error: Show Details cannot be executed when multiple items are selected in a report filter field or in a slicer

    I have connected TABULAR Model to Excel, and in the pivot the filter is on multiple dimensions. When doing the drillthrough action it gives error - Error: Show Details cannot be executed when multiple items are selected in a report filter field or in a slicer
    Is there any workaround to this error?  so that drillthrough can be done even with multiple selection.

    Hi Vikas,
    The reason behind the error message requires the knowledge on what happens at the backend. When you perform a drill-through action, a query is sent to Analysis Services. This query is expressed in a query language called Multi-Dimensional Expression (MDX).
    Since the MDX language doesnot support drill-through command against a set (collection of tuples) an error is persisted. 
    For now, there is no workaround as it is a limitation of the underlying language that is generating the query.
    When multiple items are selected you lose the ability to drill-down on individual metrics. To resolve you must either:
    1. Select a single Item.
    2. Select all items.
    Hope this helps!
    Please mark as Answer if this helps! Thanks, Rajasekhar.

  • Date ordered changing when certain parameters are updated.

    Hello All,
    I came across an Issue where DATE ORDERED is changing when certain parameters are updated, such as agreement. Any help is appreciated.
    Thanks in advance.
    Regards,
    Veronica.

    Hello Veronica,
    Negotiation Phase is only for Quotes - it does not apply to Sales orders. You need to create a Defaulting Condition template similar to that called 'In Fulfilment Phase' for Sales orders.
    Here are the details:
    (1) Navigate to Setup >> Rules >> Search for Application='Order Management' and Entity = 'Order Header' >> Once the rules appear click on 'Defaulting Condition template' >> Under 'In Negotiation Phase' create another Validaton template named 'In Fulfillment Phase' >> Enter any Group# >>Under Validation Rules, Select Attribute as 'Transaction Phase' >> Mark it '=' 'Fulfillment' >> Save
    (2) Click Tools (top menu option) >> Generate Defaulting Handler package (you can also run the conc program)
    (3) Go to the Ordered Date defaulting rule and do as I had mentioned below.
    Please let me know if that helped.
    Dipanjan

  • Phone reboots when certain songs are played on the music app?

    on my iphone 5c, if i try playing certain songs in my music app, they play for a few seconds and then my entire phone reboots. i have a lot of music on my phone and all of the songs that do this are from the same album. it also didn't start doing this until after i updates to ios 8. i've tried looking elsewhere to see if someone else has had this problem but i've come up empty. its really inconvenient because i can't even listen to those songs now. i've also noticed that its only when i have headphones or an auxiliary cord plugged into my phone.

    Hi princessruto,
    If you are having issues with your restarting when certain songs are played through headphones, you may want to try some things to troubleshoot.
    First, quit all running applications and test again -
    Force an app to close in iOS
    Next, I would try restarting and if needed resetting the iPhone -
    Restart or reset your iPhone, iPad, or iPod touch
    If the issue is still present, you may want to restore the iPhone as a new device -
    Use iTunes to restore your iOS device to factory settings
    Thanks for using Apple Support Communities.
    Best,
    Brett L  

  • Field Populates based on Selection in Another Field

    Hi everyone,
    I have created a new position description template using a pdf form. In this form I have various fields. I would like to populate one field based on what I have selected in another field. For example, I have a field called competency. In this field I can select and choose a competency. If I select "Accountability" I would like the description field to say " Accepts personal responsibility for the quality and timeliness of work. Can be relied upon to achieve results with little need for supervision. " alternatively if I select "Compliance" I would like the description field to say "Complies with policies, procedures, workflows and instructions." Can anyone assist me with script or is there another way of making this happen.
    Thanks in advance

    I think this is what you are looking for:
    Make sure that you select "Commit selected value immediately" in the options tab of the drop down menu.
    //Place this script in the custom validation script of the drop down menu
    //Create a text field caleld Text2
    var MySelection = event.value;
    switch (MySelection) {
    case "Accountability":
        this.getField("Text2").value = "Accepts personal responsibility for the quality and timeliness of work. Can be relied upon to achieve results with little need for supervision. ";   
    break;
      case "Compliance":
        this.getField("Text2").value = "Complies with policies, procedures, workflows and instructions.";
        break;
    I hope this helps.

  • When will Hub automatically select fewer than 2500 segments for tuning and/or testing?

    I have two systems (FR/IT) with 64K+ total segments uploaded.
    When I specify "Auto" for tuning and testing, the system only extracts 500 (or some other number < 2500) tuning and testing segments from the TMX files that I uploaded. On visual inspection of the subsequently downloaded training, tuning,
    and test corpora, I see nothing unusual:  alignment is OK, repeated and partial segments are not very frequent, etc.
    Similar content extracted in the same way from the same WorldServer db for other languages (PE, ES, NL, ID) works fine.
    When will Hub automatically select fewer than 2500 segments for tuning and/or testing?
    Thanks!

    Hi Mike,
    Here is how auto-selection of Testing and Tuning data works in the Hub.
    1. If a segment in tuning data is identical to a segment in training data, the segment is removed from training data.
    2. If a segment in tuning data is identical to a segment in testing data, the segment is removed from testing data.
    3. If a segment in tuning data and testing data is identical to a segment in training data, the segment is removed from training and testing data.
    4. If a segment in testing data is identical to a segment in training data, the segment is removed from training data.
    Hub auto selects 2500 sentences and the data under goes above adjustments. As a result you will see fewer than 2500 sentences.
    Additional details can be found in hub user guide:https://hub.microsofttranslator.com/Help/Download/Microsoft%20Translator%20Hub%20User%20Guide.pdf
    Please let us know if you need any additional information.
    Thank you

  • Change field value in a table, based on another field value in the same row (for each added row)

    Please Help, I want to change field value in a table, based on another field value in the same row (for each added row)
    I am using this code :
    <HTML>
    <HEAD>
    <SCRIPT>
    function addRow(tableID) {
    var table = document.getElementById(tableID);
    var rowCount = table.rows.length;
    var row = table.insertRow(rowCount);
    var colCount = table.rows[0].cells.length;
    for(var i=0; i<colCount; i++ ) {
    var newcell = row.insertCell(i);
    newcell.innerHTML = table.rows[1].cells[i].innerHTML;
    switch(newcell.childNodes[0].type) {
    case "text":
    newcell.childNodes[0].value = "";
    break;
    case "checkbox":
    newcell.childNodes[0].checked = false;
    break;
    case "select-one":
    newcell.childNodes[0].selectedIndex = 0;
    break;}}}
    function deleteRow(tableID) {
    try {var table = document.getElementById(tableID);
    var rowCount = table.rows.length;
    for(var i=0; i<rowCount; i++) {
    var row = table.rows[i];
    var chkbox = row.cells[0].childNodes[0];
    if(null != chkbox && true == chkbox.checked) {
    if(rowCount <= 2) {
    alert("Cannot delete all the rows.");
    break;}
    table.deleteRow(i);
    rowCount--;
    i--;}}}catch(e) {alert(e);}}
    </SCRIPT>
    </HEAD>
    <BODY>
    <INPUT type="button" value="Add Row" onClick="addRow('dataTable')" />
    <INPUT type="button" value="Delete Row" onClick="deleteRow('dataTable')" />
    <TABLE id="dataTable" width="350px" border="1">
    <TR>
    <TD width="32"></TD>
    <TD width="119" align="center"><strong>Activity</strong></TD>
    <TD width="177" align="center"><strong>Cost</strong></TD>
    </TR>
    <TR>
    <TD><INPUT type="checkbox" name="chk"/></TD>
    <TD>
    <select name="s1" id="s1">
    <option value="1">1</option>
    <option value="2">2</option>
    <option value="3">3</option>
    </select>
    </TD>
    <TD><input type="text" name="txt1" id="txt1"></TD>
    </TR>
    </TABLE>
    </BODY>
    </HTML>

    Hi,
    Let me make sure u r working with table control.
    First u have to create a event(VALIDATE) to do the validation.
    Inside the event,
    1. First get the current index where user has pointed the curson
    2. Once u get the index read the internal table with index value.
    3. Now u can compare the col1 and col2 values and populate the error message.
    1. DATA : lo_elt TYPE REF TO if_wd_context_element,
                   l_index type i.
    lo_elt = wdevent->get_context_element( name = 'CONTEXT_ELEMENT' ).
         CALL METHOD LO_ELT->GET_INDEX( RECEIVING  MY_INDEX = l_index.
    above code should be written inside the event.
    Thanks,

  • HT204053 If I make another apple id for my mom will that change my stuff

    If I make another apple id for my mom will that change my stuff

    Welcome to the Apple Community.
    In order to change your Apple ID or password for your iCloud account on your iOS device, you need to delete the account from your iOS device first, then add it back using your updated details. (Settings > iCloud, scroll down and hit "Delete Account")
    Providing you are simply updating your existing details and not changing to another account, when you delete your account, all the data that is synced with iCloud will also be deleted from the device (but not from iCloud), but will be synced back to your device when you login again.
    In order to change your Apple ID or password for your iCloud account on your computer, you need to sign out of the account from your computer first, then sign back in using your updated details. (System Preferences > iCloud, click the sign out button)

  • I have an iPod touch and also have the iHome.... When I first hooked it up it played music fine.....but now when I hook it up it says accessory unavailable for iPod touch and I've resetted it 2 times but still no music comes thru the iHome speakers

    I have an iPod touch and also have the iHome.... When I first hooked it up it played music fine.....but now when I hook it up it says accessory unavailable for iPod touch and I've resetted it 2 times but still no music comes thru the iHome speakers

    If you restored to factory settings/new iPod and still have the problem that indicates a hardware problem.
    Make an appointment at the Genius Bar of an Apple store..
    If your iPod is defective and not abused Apple will exchange it at no cost.
    Apple Retail Store - Genius Bar

  • Must use Step Input Keyboard prior to using midi controller? When I attempt to use my midi keyboard conteoller for step input, it won't work unless I input the first note in each track via the Step Input Keyboard. This doesn't seem right...

    When I try to use my midi controller keyboard for step input, it won't work unless I input the first note in each track via the Step Input Keyboard.. What am I doing wrong?
    Logic Studio 9.1.7, OS X 10.7.5

    Hi
    Playhead in the right place?
    CCT

  • HT5364 I installed OX X Moutain Lion and now I have trouble printing pdf documents--get messages like "plug in failed" or "no pages selected on printer" when clearly pages are selected

    I installed OS X Mountain Lion on my desktop MAC and since then I cannot print pdf documents---I get messages like "plug in failed" or sometimes "no pages selected on printer" when clearly pages are selected

    DO NOT USE PREVIEW TO FILL OUT PDF FORMS, IT WILL DESTROY PDF FILES. Sorry, but I had to shout here to prevent damage to your PDF files.
    Here is one of the symptoms when you fill out a PDF form with Preview: If you save it and return it to the author, they will not be able to see the text that you've added to form fields - unless they click on a field, which will reveal the contents of just that field. You can recover from this problem, but Preview will also remove other field types, and will actually rewrite your complete PDF while ignoring what it does not understand. Take a look at this blog post for more information about the damage that Preview will cause: Preview.app - Killer of PDF Files

  • PS 7 locks when certain action is selected

    I have had this happen before but can't remember the fix. I'll write it down this time if someone can help me.
    As far as I can tell everything works except this...
    Open an image, any image.
    Select "Image":
    Select "Adjustments"
    Select "Levels"....The "Levels" slide window does not appear.
    Move cursor over the image, the cursor immediately changes to an eye dropper and PS is locked up.
    I have tried rebooting and even re-instaling PS but no fix.
    BTW: If any of the other functions under "Adjustments" are selected, they function properly. The lock-up occurs only when "Levels" is selected.
    Thanks for any help that you might offer.
    Jack

    function(){return A.apply(null,[this].concat($A(arguments)))}
    Ralph Austin wrote:
    since the "eye dropper situation" happens as it does, I am thinking that it is not a case of the "Levels" panel being off in space somewhere.
    Your "eye dropper situation" is exactly what happens when the Levels panel is normally displayed.  You just can't see it for some reason.  Perhaps it's off-screen or perhaps it's stuck because of a system glitch.
    Beyond the above advice, which is likely to solve your problem, it's always a good idea to ensure your video drivers are up to date.
    -Noel

  • Safari quits when new tab is opened, quits when certain websites are opened, safari quits when new tab is opened, quits when certain websites are opened

    my safari quits when a tab i opened, and also quits upon opening for of certain websites, this just started several days ago for no apparent reason, why?

    Post a crash report so we can try and help you.
    If Safari has just crashed, press the Report button on the CrashReporter dialog box to view the crash  information.
    Copy/paste the entire contents of the Crash Reporter window into your reply.
    If the crash report dialog does not appear or the crash is hard to reproduce, crash logs can be retrieved from the ~/Library/Logs/CrashReporter> folder.

Maybe you are looking for

  • Inconsistency when appending a table

    hi i did an append in a standard table because of some requirement lets say i append with field name XXXX but when i go the se11 and input xxxx NE space (this should return me all field where xxxx is empty) i get 30 record and when i go the SE11 and

  • Unable to load the flat file  from client  work station

    Hi, I am trying load a flat file (.CSV file)from my desktop (Client work station) and getting the following error. An upload from the client workstation in the background is not possible Message no. RSM860 Diagnosis You cannot load data from the clie

  • Can't open photos - needs MIME plug-in?

    I'm using Safari 2.0.4 and am trying to view photos on a website, but have encountered this error message: +The page "Browser Express" has content of MIME type "application/x-oleobject". Because you don't have a plug-in installed for this MIME type,

  • Element Link Costing, Oracle HRMS 11.5.10.2, Project Task

    Hi there I have a situation with Element Entries Costing. Client wants to update the Project and Task at Element Entries level. This a Benefit Deduction Element, which is update through the Custom Interface and update in Element Entries and used in O

  • MPD not found in local db

    I ran pacman -Syy and then pacman -R mpd, and it said 'mpd not found, searching for group... error: 'mpd': not found in local db' I can reinstall it fine, with pacman -S mpd.  Why does that happen?