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

Tags: Database

Similar Questions

  • 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/

  • I created show and hide features in InDesign I want to export to interactive PDF format. These functions work when seen in Acrobat on the desktop, but not on iPad/Tablet - why?

    I created show and hide features in InDesign I want to export to interactive PDF format. These functions work when seen in Acrobat on the desktop, but not on iPad/Tablet - why?

    Why? Most likely because the PDF Viewer on the Tablet is too stupid to deal with show/hide functionality.

    You could try PDF Expert of Readdle on qpdf Notes Pro on Android and iOS devices.

    Depending on how the show/hide was created during the export of InDesign, it can work in viewers. Otherwise, you will need to open PDF files in Acrobat and edit features show/hide something more digests of PDF device viewers.

    BTW, you will encounter the same issues with the PDF display components in web browsers.

    I hope this can help.

  • Show and hide content on stage with the action of the button

    Hello...

    I created a button to show and hide certain content on stage. The button works fine, but there is a problem... when I click on the button to display the content and I move to another section of the timeline, hides the content again, and I just want that it to hide when the button is clicked again :-(

    Here is my code:

    Quote:
    Posted by: kglad
    and your a real button or movieclip button? If it's a button movieclip instead of btAcess use _root.btAcess and see if that solves your problem.

    Forget it! you were right, and it's really simple after all...
    just need to add _root variable btAcess: s

    Thanks once again kglad for the patience and most importantly, help ;-)

  • 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

  • Copy of a slide with a 'model' for the buttons to show and hide across multiple slides

    Here's my problem... I'm going through many different products that each have a similar style click on each slide.  The user can choose from 5 different catergories, when you click on one of the 5 buttons it shows the appropriate text box and hides one of the other visible text that can be opened from clicking on any other category.  When all the 5 keys were pressed game re bar appears allowing the user to continue.  It works just like a champion on a slide.  Here's my problem, although I need to duplicate this slide about 200 times.  When I duplicate, the name of the element in the text boxes so any change so my actions advanced making hide / display is no longer working.  Do I really have to create a new tip action for each text box for each slide with a unique name for the element? (I know that I can't have the same text on several slides box item name... at least I don't think I can).  I can do this, but there must be a quicker way?  What Miss me?

    I am using Captivate 5.5

    Very brilliant way to beat the system, I am impressed.  A problem, however, the text box must have a gray background to make the text readable, and for some reason when the variable positions within the text are it is overlooking the sid on the left of the box by a character.  Everything else seems to fit but not that. See slide below and the "Drytime" box to the right illustrates my problem.

  • Illustrator CC 2014 - Script to show and hide sublayers of name before exporting

    Hello

    I'm looking for a way hide and sublayers by name in Illustrator CC 2014 so that I can export each image as an action. I currently have an action for export, but I am unable to display and hide sublayers of name before as I have the export unless I do it manually.

    show and hide sublayers.png

    Step #1: Sublayer "gray 1', the visible value.

    Step #2: Export image.

    Step #3: Primer 'Grey 1' set to hidden.

    Step #4: Primer 'Gery 2' the visible value.

    Step #5: Export image.

    Step #6: sublayer 'Gray 2' set to hidden.

    Etc...

    Can I use a script or is there another way I can do this automatically without having to manually select each sublayer, and then export?

    its not easy at first, but once you get the hang of it, it is not difficult

    in a Word

    -create a variable of visibility for each object that must be changed, or get hidden at some point, 1 grey, grey 2, etc.

    -Gray cover 2, 3 grey, grey 4

    -make a set of data

    -Hide grey 1, gray unhide 2

    -make a set of data

    -Hide gray 2, gray unhide 3

    -make a set of data

    -Hide 3 gray, unhide Grey4

    -make a set of data

    then navigate with the arrows to view each set

  • Show and hide multiple items using wildcards in advanced Actions?

    Is there a way to show or hide multiple items at once by using a wildcard character in advanced Actions?  Ex: Hide all the boxes to click in the presentation that begin with click_ *.

    I'm trying to find a good way to use the same CBT to show me Mode (demo video with audio and no interaction) and the practice Mode (interactive simulation with boxes to click and prompt text box for interactions).

    I saw a few business solutions have the ability to have 1 source file that publishes on multiple formats (demo, simulation, quick guide).  However, they are a little more than 800 $de Captivate.

    Micky

    If I want to create a combination, I capture in all modes search and then copy and paste what I want one of the files? An example, but it's on a Dutch version of my blog, watch movie (power of lightning, hope, that you will always be able to see SWF?):

    http://captivatenederlands.posthaven.com/classic-tutorials

    Lilybiri

    PS as for your original question: no wildcard in advanced actions. You can filter drop-down lists on "click_" and only objects will appear then (in CP6/7) but you will still need a single statement by click box unless you group boxes click on a slide (impossible to group objects sitting on different slides).

  • Show and hide tabs

    I want to use my application with different users (with a different authorization) and
    I have to parent 12 navigation tabs.
    But depending on the user (permission) I want to show or hide the parent tabs.
    Is this possible in Apex?

    I also have a second question:
    I want to make changes in the CSS for the appearance of the tabs in my theme (topic 13). But how do you do that?
    I tried on different ways, but it does not work.

    1. I tried to use inline styles in my template on the page 'two level Tabs '.
    I put the style of style inline = "color: Green;" in the tag DIV with id = "t13PageTabs", in the TR tag but nothing works.

    2nd I tried to make a copy of the original CSS, and then make the changes in the CSS for the classes in the following tag:
    -a: link, a: visited
    -a: active,: hover
    -span. OnC
    -span. Creancesc a: link, span. Creancesc a: visited
    -span. Creancesc a: hover
    After the changes I load the CSS file (with a different name) through Shared
    Components-> Cascading Style Sheets and change the href attribute in the link to the CSS tag
    in the header of the page 'Two level Tabs' but who do not work also.

    My questions are so follow them... Can I change the style of the tab (I mean just the color of the text in the tab)?
    And how do you do that?

    Somebudy can help me...

    Hello

    Question 1: Go to Edit tab and use the conditional display settings.

    Question 2: Go to the page template that you use and modify attributes of the tab Standard.

    See you soon

    Ben

  • Lock and unlock, some fields in a form

    Hi, we need create a form that can be filled by a client, with the exception of a couple of fields that must be read-only. Then, we want to be able to unlock and fill, these fields when we receive the form in return by the customer.

    The process should look like this:

    1. Client fills out the form, with the exception of the fields read-only
    2. Client sends the form to us
    3. Unlock us the fields read-only and fill
    4. Client gets the return form (with the read only once more locked fields)

    I was googling and found indications that it is possible to achieve with javascript and a button. Is there a javascript Wizard out there who can help me?

    Thanks in advance!

    Set the fields read-only (or even under the name hidden) and then use a button (it can be transparent, so that ordinary users won't find it easily), with the following code:

    If the fields are defined in read-only:

    this.getField("Field1").readonly = false;
    this.getField("Field2").readonly = false;
    this.getField("Field3").readonly = false;
    

    etc.

    If the fields are hidden:

    this.getField("Field1").display = display.visible;
    this.getField("Field2").display = display.visible;
    this.getField("Field3").display = display.visible;
    

    etc.

  • OBIEE report showing blank for some fields

    Hello

    I have a problem with OBIEE report only when generating the report in CSV.
    Some fields are displayed empty in CSV, appear correctly in other formats. I doubt that this is because the length of the text field is longer.

    Any help will be appreciated.

    what you see in the report?

  • 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

  • More/less a link to show and hide more text in a report

    Hello world

    A lot of my reports having the description field run nearly 100 to 200 characters.
    So instead of display the description for users, why not display only partial data as first 100 characters and then followed with a link "more...". "to show to the rest and change the link in the «...» The '.
    Clicking less it should display only 100 characters.

    Can someone please shed some light on how to integrate this in a column in the report.

    Thank you
    Teku.

    Hello
    Replace the href onclick as below, and it should work.

    SELECT ...
    '
    '||substr(Long_column,1,100)|| 'more...
    ' LongColumn ...FROM...

    Note:
    javascript: is deleted.
    nCliquez should be replaced by onclick. Had to tweak it to be able to view the code.
    See you soon,.

  • show and hide a text with a qml button

    Hi, I have a button and when onClicked I want to display a label and with a second click it hide again, what is the best way to do this in qml?

    Lable{
      id:lable
      text: "My Text"
      visible: false
    }
    
    Button{
      text: lable.visible? "Hide" : "Show"
      onClicked{
        lable.visible = !lable.visible
      }
    }
    

    something like this should work

  • 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;
    }
    

Maybe you are looking for

  • HP-G7-1368DX supports SATA III?

    HP-G7-1368DX supports SATA III?

  • Thermocouple different calibrations; Same advice

    I have an equipped SMU-1073 of 5 channel thermocouple modules 32 SMU-4353.  The original design intent was to use thermocouples of type J.  We just got a part with installed T type thermocouples.  Is it possible to read the two type T and J of a sing

  • Problems of compensation of a local register variable/shift

    I have an indicator set up as a local variable (Test window) I clearly before starting a new test in the box flat sequence below but when it gets to the engine of the State, all data from previous tests (contained in the shift register) is then poure

  • Want to launch different Vi by clicking next to a Vi

    Hello I'm trying to make a user interface in which there are several VI. I want to do following things. 1. my first page when the user clicks on the exe should be page ID and password to login. 2. after login, a new screen should open to enter inform

  • BlackBerry Smartphones Micro SDHC?

    All cards Micro SDHC will work with my Curve 8310?  I saw an 8 GB card that corresponds to a speed of class 4 (4 MB/sec).  Which will work?  Thank you.