show or hide text fields based on another text field value

Hi, I have 3 text fields totals. by default, first text field is visible & other hidden two. what I want to do is if enter all the values in the first text box, other two text fields should automatically visible. Likewise, if I remove the value in the first text box, and then two other fields should automatically hide again. so thanks for giving me a java script for that. also I need javascript for hidden text fields. This script should check the values in the first field work and text (visible or hide). Thanks in advance...

As the custom field the validation script enter this code (of course, set the names of the other fields as required):

if (event.value=="") {
    this.getField("Field2").display = display.hidden;
    this.getField("Field3").display = display.hidden;
} else {
    this.getField("Field2").display = display.visible;
    this.getField("Field3").display = display.visible;
}

Tags: Acrobat

Similar Questions

  • Show or hide form fields based on Department

    Hello world

    I have a large form with many fields on. I have a requirement to show/hide some of these fields, based on the Department of the user code. So a user of a particular Department would see a set of fields over only those relevant to their Department - all non-relevant fields for this Department need to be obscured.

    My first thought was to define the conditional on each field and allows you to search if the field to be displayed by checking a department-field table in the SQL database. But it would mean a blow to the database for each field, that I need to check.

    Can anyone think of a more elegant (and efficient) solution for this? I use Apex 4.2.

    Hello

    Permission to create and assign to the patterns.

    Permission is normally performed only once per session.

    Kind regards

    Jari

  • Show or hide form fields based on the selection of cfselect

    Hello

    I use ColdFusion 9 and

    I want to show/hide a form field type = checkbox if an assigned value is selected from a drop-down list, but it does not work.

    I use a javascript function.

    My question is: is there the best opportunities with ColdFusion for this or Javascript is the best solution?

    Here is my code:

    < script type = "text/javascript" >

    function show() {}

    Select var = document.getElementById('dropdownlist').selectedIndex;

    if(Select == 1) document.getElementById('area').style.display = 'block ';

    else document.getElementById('area').style.display = "none";

    }

    < /script >

    ....

    < cfquery name = "select_list" >

    Select * from table

    < / cfquery >

    < cfform name = 'form' >

    < name = 'dropdownlist' cfselect onChange = "show (); ">

    < option value = "0" > please select < / option >

    < cfloop query = "select_select_list" >

    < option value = "#select_select_list.id #" > #select_list.name # < / option >

    < / cfloop >

    < / cfselect >

    < div id = 'space' style = "display: none" >

    < cfloop query = "select_list" >

    < style tr = "display: none" >

    < td >

    < name cfinput = "SSG" type = "checkbox" value = "#select_list.id #" > #select_list.name #.

    < table >

    < /tr >

    < / cfloop >

    < / div >

    < / cfform >

    Thank you and best regards!

    Claudia

    Well, thank you for your response.

    I changed the javascript function and replaced the

    with thetag. Then it works.

    Here is a snippet of my code:

    Select * from table

  • Show and hide some fields against a number

    I have a form for number of dependants and their insertion of names. A user can insert maximum 5 number of dependents, so total I have 6 fields, for the insertion of several dependends and 5 others to insert their names,

    I want to hide all five fields of dependents in the form, and if the user makes any number less then 6 then filleds should be visible depending on the number the user will be in put.

    I tried but I get no success, I used a dynamic insertion for if the user enters 2 or 3, but it does not work. I used two action individually for 2 and 3. but without success.

    Need advice on this.


    Thanks in advance

    Concerning

    Mazahir Abbas

    Hello

    You can show/hide elements based on the value entered in a number of ways.

    Here is an example: http://apex.oracle.com/pls/otn/f?p=12983:9

    Who uses dynamic Actions. That the user changes the value of 'Count', individual text fields are shown/hidden depending on the value selection. In this example, there are five dynamic Actions on the page - one for each of the possible values and related items.

    Each action has the following parameters:

    Event: change
    Selection type: item (s)
    Article (s): P9_COUNT (which is the selection list)
    Condition: greater than or equal to
    Value: * 1 * (for the first article of dynamic Action, then 2, 3, 4 and 5 for the other)

    Real Action: show
    Fire on the page loading: true
    Selection type: item (s)
    Article (s): P9_ITEM1 (for the first point of dynamic Action, P9_ITEM2 etc for the others)

    Action of false: hide

    Fire on the page loading: true
    Selection type: item (s)
    Article (s): P9_ITEM1 (for the first point of dynamic Action, P9_ITEM2 etc for the others)

    When a Count is selected, all dynamic Actions will trigger - each will control the display of the text elements. If the selection is 3, the first three dynamic Actions will show the first three text elements and the last two actions allows you to hide the text elements.

    Andy

  • Hide a field value based on the value of the previous row

    I need to read the string before the underscore (_) and show that the value in the 1st row for the field of Value1. For example, if the previous string (ABCDE) is equal to that of the second line I need to hide the value (100) on the field of the value1.

    Sample data:

    Report IDVal1Val2Val3
    ABCDE_01100200300
    ABCDE_02100250350
    XYZ5006028

    Final results:

    Report IDValue1Value2Value3
    ABCDE_01100200300
    ABCDE_02250350
    XYZ5006028

    I am using code below but error.

    <? If: xdoxslt:get_variable($_XDOCTX,_'x')! = substr (REPORT_ID, 0, instr(REPORT_ID, '_', 0) - 1)? >

    <? Value1? >

    <? end if? >

    <? xdoxslt:set_variable ($_XDOCTX, 'x', substr (REPORT_ID, 0, (instr(REPORT_ID, '_', 0)-1)))? >

    You can use this condition instead:

    It will manage both of your cases.

  • How can I show or hide a picture based on the size of the screen in CS6?

    I have a website created using Dreamweaver CS6. I used the checkerboard to fluid to hold different views for each of the 3 types - phone, Tablet, desktop computer. It works well, resizes properly. I would like to be able to show a picture in the desktop version but not the mobile version. How I do that? I can see in the .css file that the screens of different size can have their own different settings. Y at - it code I could add that could hide/show and image based on the users on the same page window? Let's say I have a div that is named photo. How could I add a parameter to the div photo in the stylesheet that would hide the image if it were mobile?

    Thank you

    Marilyn

    Thanks, I was able to change my code using your example and it works exactly as I wanted!

  • Siebel field values are not passed to the OPA: error on WD Smoke Test

    Hello

    I installed OPA siebel connector locally and deployed determination determination of web and server to tomcat server. The 'DS smoke Test' button works well, but the 'WD Smoke Test' does not work correctly. After the installation by clicking on the button opens a pop-up window with "page cannot be displayed".

    I changed the symbolic for 'Employee' as URL:

    http://localhost: 8085/siebel-web-determinations/startsession/AdminSmokeTest

    (from the original one: http://localhost:8085 / siebel-web-determinations/startsession/AdminSmokeTest/en-US? user = [UserID] & caseID =, [UserID], [ObjectID], AdminSmokeTest)

    This show opens the popup window and and it asks the question ' what is the text of valid user?' by clicking on it application "which is a Siebel Admin user's first name?" then the subsequesnt questions and after the last questions it shows if it is valid Siebel Admin record ot not. If the rule works correctly.

    Now my questions are:
    1. how the Siebel field values will be passed to the determination of the Web? Ideally result response (if that's a record valid sadmin) should have been displayed in the window pop up directly by clicking on the button 'WD Smoke Test' with the employee field values passed, instead he asks for input.

    2. the field mappings are definde in the automation of the Admin-Policy-> show mappings. The field values are passed correctly to the server of determination, but how to pass for determination of the Web? The same mapping works for the determination of the Web as well?

    3. If I use the old url for employee (http://localhost: 8085/siebel-web-determinations/startsession/AdminSmokeTest/en-us? user = [username] & caseID =, [UserID], [ObjectID], AdminSmokeTest) the user id is passed correctly but it is throwing an error.

    4. in the Administration - policy Automation-> Web determinations it gives the following error.

    [An error occurred when loading the case ID "8SIA-82CJP, SADMIN, AdminSmokeTest".
    This error has been recorded and is available in the application logs.

    Support and assistance please contact [email protected]].

    If I change the url as before, then he asks the same questions. What is this point of view?

    Thanks in advance!

    Kind regards
    ALIOU

    ALIOU,

    One of the key things to note about the OPA Web determinations for Siebel is which is needs component EAI run on the Siebel server for it to work. There is an article on this in the installation guide where there you preform a test to verify that EAI_ANON_ENU is running on the Siebel server (located on pages 12-13 on the installation guide).

    1. for determinations of Web works properly, you must leave the URL token exactly as indicated in the installation guide. In addition, determinations Web use EAI (mentioned above) to pass information to the Web of Siebel determinations.

    2. same as number 1.

    3. again once it goes back to check that the EAI runs.

    4. make sure that the user you are logged in as has the responsibility to use this point of view.

    In addition to all this... once EAI works you need to check the incoming Web Service URL and point them to the location of the IAE but also change the path to the IAE in the file data-siebe - adapt .properties. Also, be sure to match the user name and password in this file for what you use to connect to Siebel with.

    -Adam Starr

  • fields to show or hide the function of radio button

    Hi, in my form there are two radio buttons available. one is for 'Yes' and other is for the 'no '. There is also another 6 available and that all fields 6 fields are hidden by default.  If I click on 'Yes' below 3 fields should visible.

    text-1

    text-2

    text-3

    If I click on "no" above 3 fields must hide & 3 fields should visible below.

    text-4

    text-5

    text-6

    then u can pls give me JavaScript to manage my requirement. Thanks in advance.

    Hiding and showing form fields by Thom Parker

    Disabling (graying-out) form fields by Thom Parker

  • Show/hide multiple fields on list drop-down choice to help if else

    Goal is to display or hide the three fields according to a choice of menu drop-down. If show X, hide if Y.

    How a syntax on line error 6 when adding to the trigger mouse-to the top of the field drop-down list.

    Are several actions allowed for each if condition?

    if(event.target.value = "Yes")
      getField("Top_inches").display = display.visible;
      getField("Top_numerator").display = display.visible;
      getField("Top_denominator").display = display.visible;
    else
      getField("Top_inches").display = display.hidden;
      getField("Top_numerator").display = display.hidden;
      getField("Top_denominator").display = display.hidden;
    

    You have at least two syntax errors. The first is that you used the wrong operator for comparison. 'Is', not '=' (this is the value assignment operator).

    The second is that you did not put blocks of code inside the curly braces.

    If your code should be:

    if (event.target.value == "Yes") {
        this.getField("Top_inches").display = display.visible;
        this.getField("Top_numerator").display = display.visible;
        this.getField("Top_denominator").display = display.visible;
    } else {
        this.getField("Top_inches").display = display.hidden;
        this.getField("Top_numerator").display = display.hidden;
        this.getField("Top_denominator").display = display.hidden;
    }
    
  • Choose field from the joined table based on another field?

    Hello!

    Is it possible to select a field in a row of attached table based on another field? Consider the following data in the CVALUES table:
    ID  C1   C2    C3    C4    C5    C6
    T1  9.6  10.3  12.4  19.6  19.6    0
    T7  9.6  10.4     0     0     0    0
    T3  8.2   9.9  11.4  19.6  19.6    0
    T8  8.3  10.7  13.5  20.7     0    0
    T5  9.4  10.3  12.7  22.9  19.6    0
    ...
    And the following data in the table MDETAIL:
    ID           MDATE        CNUM     ...
    T1  03/28/2012 18:00:00    4
    T1  03/28/2012 18:00:00    1
    T8  03/29/2012 06:00:00    6
    T8  03/29/2012 06:00:00    5
    ...
    I want to get the column corresponding to the VALUE field in the table MDETAIL CVALUES. I'm doing this:
    SELECT m.t1, m.mdate,
           CASE WHEN m.cnum = 1 THEN c.c1
                WHEN m.cnum = 2 THEN c.c2
                WHEN m.cnum = 3 THEN c.c3
                WHEN m.cnum = 4 THEN c.c4
                WHEN m.cnum = 5 THEN c.c5
                WHEN m.cnum = 6 THEN c.c6 END AS cvalue
      FROM mdetail m
      JOIN cvalues c ON m.id = c.id
    The CVALUES table records are unique; only one line by ID.

    This method works and it's fast, but it's messy code and I think there must be a better way to do it. I use cvalue value in several calculations so each calculation that I use is this giant glob of CASES inside!

    Hello

    With a decoding it would be easier, but as ugly :-)

    SELECT m.t1, m.mdate,
           DECODE( m.cnum , 1 , c.c1, 2, c.c2, 3, c.c3, 4, c.c4, 5, c,c5, 6, c,c6) cvalue
      FROM mdetail m, cvalues c
      WHERE m.id = c.id
    

    Success!

    FJFranken

  • Make a mandatory DFF field based on another field

    Hi all

    We have a requirement where we need to do a mandatory DFF field based on another field.

    example:

    FDF has two fields:

    Depose1: the values 'Email', 'Fax '.
    Depose2

    If "Email" is selected in 'Field1' Field2 should become mandatory.

    All entries on this will be really useful.

    Thank you and best regards,
    Satya.

    Please see old topics that cover the same subject - http://forums.oracle.com/forums/search.jspa?threadID=&q=DFF+AND+mandatory+ANd+Dependant&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001

    Thank you
    Hussein

  • Hide text in the field when the drop-down list is selected

    Hello, I am looking for a way to hide text in a text field when a number is from a drop-down list. For example, I have a table with text field that have a line pre-populated text in them. I would like the text to be deleted if 'Yes' is selected in a data entry drop-down list in the text box empty now.   Here's what I have so far:

    If (this.rawValue == 'Yes') {SubStandard_A.StandardPkgTbl.Row1.TextField2.rawValue == ' ' ;}}

    I tried .rawValue == "", .rawValue == null, .clearItems

    Any help is greatly appreciated!

    Hello

    Just spotted your original script had a double == when assigning the value to the rawValue. You must use the double == equality test.

    Here is a sample.

    We hope that make you it work.

    Niall

  • How to show that a text entry field is selected.

    Hello
    How can I show that a text entry field is selected when _focusrect = false; and I use flash lite.
    When the text input field is selected, I want to change is the border color or show a shape... something like that or even the color of the text.

    If anyone is interested, the answer is:

    When the field is developing the text will be empty
    kword.onSetFocus = function(oPrevFocus:Object):Void
    {
    KWord.Text = "";
    }
    When the update go away text will be keyword
    kword.onKillFocus = function(oNewFocus:Object):Void
    {
    KWord.Text = '- key word -';
    }
    :-)

  • Hide a field label

    Hi, anyway is to hide a field label.

    I have a combo with a variety of types of numbers (license, health and security # etc.) I have an empty field next to the drop-down list.

    Type of number no matter what you choose, a label appears next to the empty field, indicating the choices you make.

    So in the box to the far right, the text authorization number should appear.

    Untitled-2.gif

    Ok. You can use a validation script custom in the 2nd drop-down list that looks like the following:

    Script to Validate drop-down list

    (function () {}

    Get a reference to the label field

    var f = getField ("LABEL1");

    Show/hide the label based on the drop-down list selection

    f.Display = event.value = "click to see the options"? Display.Hidden: display.visible;

    })();

    but replace "Label1" with the actual name of the field that you are using for the text of the label.

    This last line is equivalent to the following:

    If (event.value = 'Click to see the options') {}

    f.Display = display.hidden;

    } else {}

    f.Display = display.visible;

    }

    All this could be simplified to the following single statement:

    getField("LABEL1").display = event.value = "click to see the options"? Display.Hidden: display.visible;

    It is better if you select the 'Value selected to validate immediately' option to the drop down list. For the field, it set read-only and set the default value for the text of the label.

  • Show and hide the scroll bar

    Hello!

    How could I show and hide the scroll bar attached to a dynamic text field depending on the size of the text?
    I tried different solutions based on bottomScroll and maxcroll, but nothing works...

    Thank you very much in advance for your help.

    Best regards
    Gerry

    If you use a text field, you can do a simple test:

    If (textInstance.textHeight > textInstance._height) {}
    show the ScrollBar
    }

    --
    Dave-
    Developer leader
    http://www.blurredistinction.com
    Adobe Community Expert
    http://www.Adobe.com/communities/experts/

Maybe you are looking for

  • Is there a 'recent pages' button in the new FF

    I've updated to FF, but came back to the old version "because I couldn't find a 'recent pages' button, which is at the end of the forward/backward buttons..." I use it constantly!Is there an option on 5 FF to select recent pages to see?

  • Not possible to install Win98 SE with recovery CD

    I tried to reinstall Win98 SE with the supplied restore CD. After turning on the laptop while pressing 'C', the following error message appeared message Invalid drive specificationPath not found - C:\TOOLS\TOSCDROM. SYS I copied the TOSCDROM file. SY

  • local web development issue: server and ampps port 80 conflict

    Hi all I want to set up a development environment web very nice for me on my MacBook Air. I want to run apple server and ampps, but both use the same port number 80. Is it possible to create a set up so that the two can run on the same computer? If s

  • a section of a Copy imported audio track and stick to the new track

    I need to copy part of an imported audio file and create a new track of just what I want. It seems to try to record audio track 1 on audio track 2 does not work.

  • Application using Signal Express RTSI

    Hello I am interested in recording of analog signal synchronization (start time, acquisition of the sample, 3 cards PCI-6289 stop time) and possibly their synchronization with 3 to 5 more cards NI PXI-6221, that are connected to the same host PC via