Using a drop-down list to make a subform becomes visible/invisible

I'm trying to do something simple... I can't work. I have a menu named 'property' (which is part, BECAUSE the BORROWER HAVE a PROPERTY INTEREST IN ANY OTHER GOOD? and I have choices 'Y' and 'n'.) When the user selects 'Y' I want the subform (which is currently invisible) named "sometimesHidden" to appear. Then, if the user selects "N" after that they have already selected 'Y' I want it to disappear. It's a Virgin with no O/N by default, just empty form. It turns out to be just... There is no need to pass anything... just appear and disappear.

Capture.JPG

I tried to run on the 'Output' in JavaScript for menu drop-down mode. I tried to use other examples and nothing. Any help?

Thank you!

I got it to work by changing the save options from a static to a dynamic PDF PDF. I'm not a coder very decent, just, I went in the designer of the Action and created a show and hide Action on this article and it has worked very well. If I left it as a static PDF code show/hide and the Action never worked. Once I saved it as a PDF dynamic, it worked very well.

Tags: Adobe LiveCycle

Similar Questions

  • How can I use two drop-down lists for a time value?

    I want to enter the length of time someone did something in hours and minutes using two drop-down lists, then enter it as a time value only (├a) in Mysql.

    I used the dropdown database lists and a few different variations of what follows without success (seconds is a hidden field with a value of "00"):

    GetSQLValueString (strftime ("% H: % i: %s", strtotime ($_POST ["sleeptimemin"].))) " «. $_POST ['sleeptimehr']. » «. (_POST ["seconds"])) $, 'date').

    This comes back to 00:00:16, regardless of what is selected in the drop-down list.

    Any help would be appreciated.

    MySQL stores time in human-understandable format, using the 24-hour clock.

    GetSQLValueString($_POST['sleeptimehr'] . ':' . $_POST['sleeptimemin'] . ':00', "date"),
    
  • JavaScript to set radio button choices using the drop-down list box value.

    I use Adobe Acrobat Pro DC version 2015.016.20039 on a MacBook Pro OS X El Capitan version 10.11.6.

    I have a set of named CitBox radio box choices. I'm defining what choice is selected from out of a drop-down list named AppCitizenship box.  Both of them have six choices with values of 1, 2, etc. (I thought having the same values would make easier the translation from one to the other). Thanks in advance.

    If you used the same values, then it is pretty easy. Just use this code as the validation script custom field drop-down list:

    this.getField("CitBox").value = event.value;

  • using a drop-down list to power a listview

    I try to get a drop-down list selection (newOption) to fuel a sql query to get more information in a listview. The drop down menu works ok, but the list is empty. My dosent sql query recognize newOption and therefore does not feed listview.

    Please could you help me with the query syntax. Thank you.

    My code is below.  If I replace '+' "' + newOption +" ' with a sql table entry, IE 'the cradle', then the listview works very well.

    import bb.cascades 1.2
    import bb.data 1.0
    import com.apiary.data 1.0

    {Page}
    ID: infoPage

    {Of container
    {Label
    text: "Info Page".
    verticalAlignment: VerticalAlignment.Center
    horizontalAlignment: P
    }

    {Drop-down list
    ID: dropdown
    }

    {To ListView
    ID: apiaryList
    dataModel: dataModel

    listItemComponents:]
    {ListItemComponent}
    type: 'point '.
    {StandardListItem}
    ID: apiaryItem

    Title: ListItemData.apiary_name
    Description: ListItemData.apiary_location
    status: ListItemData.apiary_id
    }
    } / / end of ListItemComponent
    ]

    onTriggered: {}

    }
    }
    attachedObjects:]

    {GroupDataModel}
    ID: dataModel2
    },
    {ComponentDefinition}
    ID: optionFactory
    Option {}
    }
    },
    DataSource {}
    ID: dataSource2
    Source: "sql/hood_apiary.db.

    query: "SELECT * FROM Apiary ORDER BY apiary_name".

    onDataLoaded: {}
    dataModel2.insertList (data);

    Now, this is going to populate the drop-down list while reiterating each
    the query data and adding one by one to the drop-down list
    using the optionFactory component to dynamically add definition
    New Options for the drop-down list
    for (var i = 0; i)< data.length;="">
    {
    Create new Option
    var newOption = optionFactory.createObject)

    Set the text of the Option categoryfield (title of the drop-down list)
    newOption.text = data .apiary_name [i]
    Console.log ("newoption.text =" + newOption.text);

    Add the Option in the drop-down list
    DropDown.Add (newOption);
    }
    }
    },

    {GroupDataModel}
    ID: dataModel
    },
    DataSource {}
    ID: dataSource
    Source: "sql/hood_apiary.db.

    string newOption property
    query: "SELECT * FROM Apiary, hive where apiaries.» [apiary_name] = ' "+ newOption +" ' AND Apiary. [apiary_id] = hive. [apiary_id] AND the hive. [apiary_id] is not null ORDER BY hive_id DESC'
    onDataLoaded: {}
    dataModel.insertList (data);
    }
    }
    ]

    onCreationCompleted: {}
    When the display of the list has been created, load the data into the listview
    and the drop-down list.
    dataSource.load ();
    dataSource2.load ();
    }
    }

    }

    Hello Simon

    Thank you very much for your help, you have solved a problem I had for centuries.

    {Drop-down list
    ID: apiarydropdown
    Title: 'select the Apiary.
    onSelectedIndexChanged: {}
    var dropvalue = apiarydropdown.at ("apiarydropdown.selectedIndex") .text;
    Console.log ("dropvalue has been changed to" + dropvalue);
    Console.log ("selectedIndex was changed to" + selectedIndex);
    dataSource.query = "SELECT * FROM Apiary, hive where apiaries.» [apiary_name] = ' "+ dropvalue +" ' AND Apiary. [apiary_id] = hive. [apiary_id] AND the hive. [apiary_id] is not null ORDER BY hive_id DESC'
    dataModel.clear () / / clears all previous listview view
    dataSource.load () / / load listview
    }
    }

  • Forms - selection drop-down list box makes other fields appear

    I am building a form in InDesign that I export to PDF format with several fields (text, drop-down list, radio, checkboxes). Some fields are defined to trigger the visibility of other fields and that works very well. What I want to do and what I can barely reach, is to have a selection for a combo box, make 3 other visible fields. I'm just a beginner when it comes to buttons in InDesign and the forms of the suggestions would be appreciated.

    If it is easier to achieve in Acrobat I try too.

    In case someone sees this in the future, I found a site with a solution which works perfectly and it's so EASY!

    How can I make a visible field on a selection in the drop-down list box? (PDF Forms)

  • Acrobat Pro XI - import Pdf when you use the drop-down list

    Hello Adobe community,

    WARNING: Newbie here

    I am trying to import an existing pdf, after that the user has selected an item in the drop-down list. For example; I have a form with a menu drop-down and three points on the list (caustic diesel, heavy and hydrocarbons). Each item in the list has its own PDF which must to be imported into the document if selected. Once the user has selected in the list, I need to import a pdf file into the existing document. I did some basic research, but can find no chance.

    Any tips or tutorials that I can search will be appreciated.

    Thank you

    Again, it is delicate. You can show/hide entire pages to convert them into models and by changing the value of their hidden property, but this only works in Acrobat. In Reader, you will need to convert the model pages, hide them and then use a script to spawn them when you want to show them and then delete them when you want to hide once more. Possible, but not easy to implement.

  • Attendance problem when you use a drop-down list

    I'm trying to show/hide a table when a choice is made in a menu drop-down. It does not work until I did the same thing twice, then I get the expected result. The script is changing and I have used it before with success, although it generally uses a check box. Y at - it an easy solution if everything goes well for this problem? Code below:

    If

    (this.rawValue == 2)

    {

    Form1. Page1.OrderSection.OrderItems.blower.presence

    = 'visible ';

    }

    on the other

    {

    Form1. Page1.OrderSection.OrderItems.blower.presence

    = 'hidden ';

    }

    Thank you

    Drop-down lists work slightly differently than expected. the Change the rawValue event contains selected text previously.  That's why it works the second time.  The current selection is contained in: xfa.event.newText

  • Using the drop-down list cascading... is it possible...

    The list of parent choice consists of several values, call them A B C D E and F.

    I want only the list of choice subject to have values for the parent of E and F. I don't see a way to set the parent of A & D without value for the related selection list. Am I missing it? It would be nice to have the choice of child list is valid when the element E or F is selected.

    Any thoughts?

    You must set a value such as 'No value' will be used for the values of A - D in the drop-down list for the list of subordinate choice parent.

  • Using dynamic drop-down list

    I've seen countless videos and read a lot of posts on how to create drop down menus, but the script I write still does not work. I am trying to create something pretty basic. I have two drop-down menus on two different pages. The value of the drop-down list on the first page will decide what appears on the drop-down list on the other page. I specified values of element for both lists. Any help would be greatly appreciated. Thanks in advance. So far, the code I created is as follows:

    switch (this.rawValue) { }

    case "1" :

    ShortList.WaterFireBurglary.WaterDamageOccupancy.addItem ("primary insured
    "or staff 24/7");

    ShortList.WaterFireBurglary.WaterDamageOccupancy.addItem
    ("70%-working torque");

    breaking ;

    case "2" :

    ShortList.WaterFireBurglary.WaterDamageOccupancy.addItem ("primary insured or personal 24/7");

    ShortList.WaterFireBurglary.WaterDamageOccupancy.addItem
    ("70%-working torque");

    breaking ;

    case "3" :

    ShortList.WaterFireBurglary.WaterDamageOccupancy.addItem
    ("Unoccupied 3-6 month/year");

    ShortList.WaterFireBurglary.WaterDamageOccupancy.addItem
    ("Unoccupied more than 6 month/year");

    breaking ;

    case "4" :

    ShortList.WaterFireBurglary.WaterDamageOccupancy.addItem
    ("Unoccupied 3-6 month/year");

    ShortList.WaterFireBurglary.WaterDamageOccupancy.addItem
    ("Unoccupied more than 6 month/year");

    breaking ;

    case "5" :

    ShortList.WaterFireBurglary.WaterDamageOccupancy.addItem
    ("Unoccupied 3-6 month/year");

    ShortList.WaterFireBurglary.WaterDamageOccupancy.addItem
    ("Unoccupied more than 6 month/year");

    breaking ;

    case "6"

    ShortList.WaterFireBurglary.WaterDamageOccupancy.addItem
    ("Unoccupied 3-6 month/year");

    ShortList.WaterFireBurglary.WaterDamageOccupancy.addItem
    ("Unoccupied more than 6 month/year");

    breaking ;

    case "7"

    ShortList.WaterFireBurglary.WaterDamageOccupancy.addItem
    ("Unoccupied 3-6 month/year");

    ShortList.WaterFireBurglary.WaterDamageOccupancy.addItem
    ("Unoccupied more than 6 month/year");

    breaking ;

    by default:

    OccupancyDropDown.addItem ("Please choose
    "" "Occupation");

    breaking ;

    }

    Hi, in your code need you 2 things...-> «:»

    case "6": <>

    ShortList.WaterFireBurglary.WaterDamageOccupancy.addItem
    ("Unoccupied 3-6 month/year");

    ShortList.WaterFireBurglary.WaterDamageOccupancy.addItem
    ("Unoccupied more than 6 month/year");

    break;

    case "7": <>

    ShortList.WaterFireBurglary.WaterDamageOccupancy.addItem
    ("Unoccupied 3-6 month/year");

    ShortList.WaterFireBurglary.WaterDamageOccupancy.addItem
    ("Unoccupied more than 6 month/year");

    break;

  • How to use the drop-down list box to fill in a text box

    I'm a beginner when it comes to Java Script.  I have seen a lot of different discussions, look at a lot of articles "helping" Acrobat 9 and Java Script, but only to be left confused and dazed.  I hope someone can tell me how to write a script that fills a text box that sits on my form with the value of exports of the selection in the combo box...

    Thank you

    If you want that the read-only text box, simply set with the following custom calculate script:

    Set this field to the value of the drop-down list box

    Event.Value = getField("combo1").value;

    but replace "combo1' with the actual name of the combo box field.

    If you want something else, post again with more information.

  • Count the items in the drop-down list by repeating the subform if the user selects "S/o".

    I'm counting the number of drop-down lists the user selected "N/A" in a repeating subform. I want the total appear in a numericfield or textfield. Here is my script that unfortunitly does not work and my page layout form. I placed it in the ready event: layout so the total is updating the number of changes of N/A.

    Hierarchy.GIFScript.GIF

    Hello

    I put the code in the text box, something like calculate event;

    var result = 0;

    instanceCount var = _Subform2.count;

    var instance = Form1.resolveNodes ("Subform2 [*]");

    for (var i = 0; i)< instancecount;="">

    {

    If (instances.item (i). Table1.row2.score.RawValue == 'N/a') {}

    result ++;

    }

    }

    this.rawValue = result;

    The reference to the "_Subform2.count" will ensure that the code is executed whenever an instance is added or deleted.

    Concerning

    Bruce

  • Don't want to use a drop-down list field

    I use a text box I want only user can enter into an 'a' or a 'd', how do I make this happen?

    Thank you

    Add the following function to a JavaScript script at the level of the document and call it from event hits the field:

    function AorD_ks() {
    
        // Get everything that's entered in the field
        var val = AFMergeChange(event);
    
        // Allow a blank field
        if (!val) return;
    
        // Reject everything other than a or d, or A or D
        event.rc = AFExactMatch(/^(a|d)$/i, val);
    }
    

    Remove the i in the regular expression if you don't allow uppercase.

    He didn't really need is that it's what you want, but to show a good generalist.

  • Submit a form by using a drop-down list

    Hi I'm doing a fall to downgrade active so that when you make a selection, it supports the form rather than havingto use a "submit" button

    Any ideas Geoff Cheers

    Dreamweaver-> Insert-> form

    Dreamweaver-> Insert-> Menu of rerouting

    From the window menu jump let Insert go button after menu disabled

  • Unable to resize using the drop-down list of image Photoshop 2015 CC

    I recently had to rebuild my system (yesterday) include motherboard and computer.

    That's why I need to download and reinstall Photoshop 2015 CC. It lies the new "PC name" resumed. I turned off the old system.

    Problem.

    When I try to resize any photo using the height or width of the Image - the Image size-, I'm unable to change the values.

    Any ideas.

    Chomp

    Opens the dialog box resize the Image and you can target these areas?  Have you tried resetting your Photoshop tools?

  • States of the changes by using the drop-down list box

    I have created a form with payment options in Adobe Flex. There will be 2 options of payment, cash and credit card. When a user selects an option it must fill in a few details. I created different States for the option of credit and card, which will appear as and when the option is selected. I'm not able to get the change to the State when an option is selected. Please help me in this regard.

    Try this:

    public function paymentState (): void
    {
    If (payment.selectedItem.label == 'Cash') {}
    currentState = "CashState";
    }
    Else if (payment.selectedItem.label == 'Credit Card') {}
    currentState = "CreditState";
    }
    Else if (payment.selectedItem.label == "Chèque") {}
    currentState = "ChequeState";
    }
    }

Maybe you are looking for

  • Satellite A210-15J - no sound after waking from sleep in Vista mode

    Satellite A210-15J, RAM 2x2gb, BIOS v1.70, Vista Ultimate x 64 SP1 (with all hotfixes), driver audio Realtek v.2.01. After the Windows Vista recovery, high-definition audio (HDA) device is not working properly. There is no sound, only noise.

  • iPhone iOS 9.2 6s gps works not

    02/01/2016 my gps stopped working. anyone else having this problem? I already tried everything, except food

  • Cannot download free game Battlefield of Internet

    Original title: pc user 2 nd degree twice I tried to download versions-free Internet .comes returned as error file download .went to find the window to find the problem and under tools in the file correct them was lack something error file step, in a

  • mysqli_real_escape_string() expects parameter 1 to be mysqli, null given in

    Hello world... I use Dreamweaver CC 2015 and create the registration page. I am facing error in highest title mentioned using php and mysql server side programming. The error found in function php code was generated using the server behavior in Dream

  • Reinstall Lightroom after upgrade to Windows 10?

    I intend updating my operating system to Windows 10.  Was told that I have to reinstall all my programs.  How can I get the Lightroom application file to reinstall on my computer?  And everyone has had problems with reinstallation?