Conditionally show a field

I would like to show a field based on the value of a variable user with just a bit of JavaScript. A copy of the field would appear on each slide of the question in a quiz. The field contains a reference to the issue. So, if my var user = 1, the field will automatically appear on each slide where it exists. If my user var is not equal to 1, the field remains hidden.

I don't seem to be able to associate actions with a standard field object if anyone has a suggestion, describing how I could go to the realization of this behavior?

Must I have a use for a fast action on every page? If this is the case, then each page should have its own copy personalized of the tip action to refers to each unique name field in the quiz. It is my current hypothesis because I have not found a way to make the generic actions so logical in the tip action applies to an object based on a generic reference to something like 'my' or 'this '.

Thank you

Pete

I think that I have answered it for me.

Yes, when I mentioned a text field, I was talking to a text caption in "Captivate talk." In my case, I want a unique piece of information stored with each question in a quiz. This piece of information will be the reference for the study of the issue. It will be visible only when a user variable has been set to the value of '1' by a call from javascript. This call is triggered by a "backdoor" on the title page. When a simple password request this transparent button double-click. If the correct password is supplied, the user var is set to 1.

The answer is to place a copy of the field on every quiz page and use a shared action triggered by the event type for each slide to see the normally hidden field.

Tags: Adobe Captivate

Similar Questions

  • I installed a sniper art called win game it shows yellow field and gives Pure virtual function error

    I installed a sniper art called win game it shows yellow field and gives Pure virtual function error.

    Hello

    · What is the full error message that you receive with error code if any?

    I suggest you to refer to the manual of game for more information contact the Publisher of the game for support. There may be a specific game update that solves this problem because it seems to be linked to a C++ runtime error in the game.

  • Show/hide fields based on T/F control - only showing or hiding, not both.

    Hi Forum,

    I'm looking to show/hide fields address based on a T/F control (or a single entry check box).

    My online form has a number of business address fields, a T/F control and a number of postal address fields. I want the mailing address fields to hidden when a user clicks on the box 'As Above' (and demonstrated once again if they click this box once more).

    I used the sample code (https://docs.oracle.com/cloud/latest/process_gs/CPRCW/GUID-F3BD3386-F333-45C6-AA56-C77136D169E5.htm) as a starting point for my Web form rule and it works as expected the first time that a user clicks area T/F (i.e. He's hiding the post fields) but it does not work the second time they until it clicks (where I assumed that fields would still be visible).

    The T/F box has the following options:

    true = as above

    false = No

    And my web rule looks like this:

    If (AsAbove.value = true) {}

    PostalAddress.visible = true;

    PostalState.visible = true;

    PostalPostCode.visible = true;

    } else {}

    PostalAddress.visible = false;

    PostalState.visible = false;

    PostalPostCode.visible = false;

    }


    I tried the same thing (with similar results) using a Checkbox control with a single option (according to the example code)

    If (PostalAddressCheckbox [0] .value == 'As Above') {}

    PostalAddress.visible = true;

    PostalState.visible = true;

    PostalPostCode.visible = true;

    } else {}

    PostalAddress.visible = false;

    PostalState.visible = false;

    PostalPostCode.visible = false;

    }

    As verified does not seem to be supported, is there another way to accomplish what I'm after, or I missed something somewhere simple (and y at - it documentation on the T/F control)?

    See you soon,.

    James.

    Hello

    Web Forms address these true-false as the boxes and, as such, in the form of tables.

    You can see if you try to print the TrueFalse value. You should get something like java object lang @XXXXXX

    Try to put the code as follows (in bold and underlined):

    If (AsAbove[0].value = true """""") {}

    PostalAddress.visible = true;

    PostalState.visible = true;

    PostalPostCode.visible = true;

    } else {}

    PostalAddress.visible = false;

    PostalState.visible = false;

    PostalPostCode.visible = false;

    }

    This should do the trick

    See you soon

    José

  • Hide/show a field

    I'm puzzled. I created a box, and I "Mouse Up" to show a hidden field. But when I uncheck the box, the field is still visible. I'm very novice and could use some advise. Thank you!

    Using a checkbox to show/hide fields can be done, but don't not using a mouse event like that it will be a permanent change.  Instead, you can use two buttons, one to hide a specific field and the other to show.  Alternatively, you can use a checkbox and script a bit to work.  C1 is the name of my box and text 2 is the area I want to show or hide. I also gave my box an export value of 2 just arbitrarily.  By placing the script in the field calculate Text2, it will determine if the checbox is verified through tests to see if it has a value of 2, it will have only if verified.  If it isn't then the field is hidden if it is not, then field is visible.  It's a start.

  • Hide / show text field

    Hi, I created the text box as hiring date: which is the column in the database.
    I would like to show the hiring date if the empno exists in the database, otherwise do not show.
    How display the date of hiring only when the empno is exists in the database.

    Please help fix.

    Thank you

    Hello

    Is this report, tabular, normal form or another region type?
    If it is normal, because it's simple game field is conditionally EMPNO element is not null.

    And always mention your Apex version

    Kind regards
    Jari

  • Show/hide fields based on the user's selection

    I know little of Javascript, but my first attempts to integrate it in Acrobat are bothersome. I have created a simple form where the user via a check box the number of people that he or she must register, then the form shows that several fields to complete. I tried to make it work with a single field, before I add more.

    In this example, I'm trying just to get the second hidden registered field if the user checks only 1 person to register. (I already know that I have issues when it comes to hide several fields).

    If (event.target.value == "0") {}

    this.getField("Registrant2").display = display.hide;

    }

    Given that I do not know what is the value of exports, try this:

    If (event.target.value! == 'Off') {}

    this.getField("Registrant2").display = display.hidden;

    }

    You can add an else clause so that the field is displayed when the check box is not selected:

    If (event.target.value! == 'Off') {}

    this.getField("Registrant2").display = display.hidden;

    } else {}

    this.getField("Registrant2").display = display.visible;

    }

    If this does ' t work, you don't maybe not the correct domain name. Verify that the console (Ctrl + J) to see all JavaScript errors are reported.

  • How to hide/show a field based on the data from more than 1 field?

    Hello.

    I'm trying to hide/show a based on the data of field2 and field3, Field1

    in fact using dynamic measurements I can only hide/show Field1 Field2-based, but I need a combination, for example:

    If field1 = 'A' and field2 = 'B', then see the field3, other hide field3

    y at - it an easy way to do it.

    I use Application Express 4.2.4.00.08

    Thanks in advance

    Dynamic action

    On the changes

    jQuery selector: #P1_ITEM_1, #P1_ITEM_2

    Condition: JavaScript

    $v ('P1_ITEM_1') == 'A' & $v ('P1_ITEM_2') == 'B '.

    Real Action: show item 3

    Action of false: hide item 3

  • Hide/show the fields based on textbox

    I wonder if there is a way to hide certain fields based on the question of if a user enters a value in a text box and then reappear if the value in the text box is removed and the field becomes white.

    I have two scenarios where I would this happen

    1. I have a "Non-registered" check box and a text field 'blood pressure '. If the user check mark the box "Not registered", the field of blood pressure is hidden (I managed this already). If the user unclicks the box, the field of blood pressure again (even once, I did already). Otherwise, if the user enters a value in the 'pressure' I would 'Unregistered' area to disappear. I got this as well with this code: (placed in the form of javascript Action, mouse upward, event)

    this.getField("Not_Recorded").display = event.target.value = "Off"? Display.visible: display.hidden;

    I don't know if it's the appropriate script that I use, but he did not hide the field "unregistered". The problem is, I would 'not registered' to hide if a value is entered in the field of blood pressure and reappear if this value is then removed (i.e., the user changes his mind or made a mistake and wants to not click saved instead). I don't know if it's feasible or just way too complicated for me to do.

    2. in the second scenario, I have 2 text fields where the user must enter a value for weight in pounds or kilograms. There is a text box for a value of lbs and a text box for a value in kg. If the user enters a value for books, I'd like to field for kgs be hidden, but still, if they delete this value so that the lbs field becomes empty, I would field for kgs reappear.

    is this feasible or is there another way I might be able to do this?

    For the first, I would not hide the check box for the reason you give. In addition to hide the text field, it must reset it so that any value that the user may have entered is not retained when it is hidden.

    If you really want to show/hide the check box depending on whether there is an entry in the text field, you can use the validation script customized for the text field:

    var f is getField ("unregistered");.

    If (! event.value) {}

    f.Display = display.visible;

    } else {}

    f.Value = "Off";

    f.Display = display.hidden;

    }

    For this script start working, you change the value in the text field.

    For the second problem, what I do, is to have a single text field and two boxes to tick to indicate lbs or kg. If you want to stay with the configuration you have, you can clear the other text field with a custom validation script:

    Script for weight_lbs custom validate field

    If (event.value) getField("weight_kgs").value = "";

    Do the same for the other text field, but change the domain name in the script. This will allow only one field to be filled at the same time and do not bother with the masking.

  • Show/hide field on all pages problem

    I try to use a script to show/hide document level menu (via a drop-down list) field on a 6 page document.

    If my domain is named "P1.field" on page 1, P2.field on page 2... How can etc, I do for States to field by doing the same?

    Right now my state of field changes on page 1 only.

    Just do it to all fields... Either in a loop or one by one. You can use something like this, for example:

    for (var i = 1; i)<=6;>

    this.getField("P"+i+".field").display = display.hidden;

  • ADF: conditionally disable a field in a table - but not the entire file

    Hello people!

    I want to implent the following:

    Suppose I have a table showing all employees. There is a flag that indicates whether or not the employee is a Manager.
    If the flag is Yes, "Salary" field (and only in this area) should run in read-only (or disabled). In other words, this scenario is that, if an employee is a Manager, no one can change his salary (too bad...).

    I tried the isAttributeUpdatable, but this will make the whole of the noneditable file.
    I tried EL in turn it off and the read-only column attribute (something like #{bindings.managerFlag.inputValue == '1'?) "true": "false"}), but it did not work at all. "

    Do you have any suggestions?

    Thank you very much in advance!

    >
    (something like #{bindings.managerFlag.inputValue == '1'?) "true": "false"} "
    >

    Try #{bindings.managerFlag.inputValue == '1'}

  • ADF LOV-&gt; UI: main table showing the fields ID and not the search values

    Hello
    I am very new to the development of the ADF and will have a simple question that I can't solve.

    Using Oracle JDeveloper 11.1.2.0.0 I create my views and objects of entity without incident. I have an entity object that has several "search values" (these are all optional references to foreign keys to tables 'children'). Objects and relations are perfectly mapped the ADF.

    In the views of child object I created the list UI tips
    -Type: Combo box with list values
    -the "selected" column is the "description" of the research

    in the editable display object, I traced the fields 'id' to use the predefined LOVs.

    This works as expected in the user interface, I created with an ADF table can be updated.

    However (here's the noob question), the "id" is displayed in the search on the table column. When I click the menu drop-down I can see the description, etc, but for a professional user when they look at the table, they see an unfriendly identification number.

    How can I get the part of the LOV display to show the description, while remaining linked to the ID of the parent entity.

    for example, it shows
    Country             LOV1        LOV2     LOV3
    United States     15           18           2
    while I want to display:
    Country             LOV1            LOV2       LOV3
    United States     Washington  Seattle     Rain
    If this has been answered several times or walk through there, sorry for the redundant question, I simply can't find a solution!

    Hello

    There are several ways to do this, you simply need an additional outputText next to the lov component field to display the value of the description.

    If you search the forum or adf blocks, you'll find several implementations.

    And here's one: http://andrejusb.blogspot.com/2010/06/lov-description-text-with-groovy.html

    Gabriel.

  • show/hide fields with percentages

    I'm trying to find a script to show/hide a field as a percentage that is located in one of the fields. The script that I usually use to base numbers is:

    var r1 = this.getField ("V1");
    var r2 = this.getField ("V2");

    R1. Hidden = true;
    R2. Hidden = true;

    If (event.value < = "100")
    {
    event.willCommit = true;
    {

    R1. Hidden = false;
    }
    }

    If (event.value > = "101")

    {

    event.willCommit = true;

    {

    R2. Hidden = false;

    }

    }

    So I need basically the same thing again but I need to be field appears if "38.00%" or above is entered. If anything lower then it is entered, I need 2 field is displayed... I can't make it work once the decimals are here.

    Thank you in advance for your help!

    The percentage format is just for display and rounds the value of the current field, the value of the actual field is the decimal number created by the division or entered by the user.

    100% is entered as 1.00 but if the result of a calculation, it could be 99, 5 - 1.4. If you want to compare the calculated value, you may need to round the value of the fields for the same number of decimal places that display area. You should be aware that using the Math.round of JavaScript method may cause an error with numbers rounding floating-point. You can use the util.printf method in Acrobat JavaScript to properly round a field value.

    I also wouldn't quotes on numeric constants.

    var r1 = this.getField ("V1");
    var r2 = this.getField ("V2");
    R1. Hidden = true;
    R2. Hidden = true;

    If (util.printf ("% 1 .2f", event.value))<= 1.00)="">
    R1. Hidden = false;
    }

    If (util.printf ("% 1 .2f", event.value) > = 1.01) {}
    R2. Hidden = false;
    }

  • Hide/show several fields via the Radio button

    Hi all

    I use the script below on an option button to hide and display a field on a form. I also want to use the same button to control another field named 'instructions for lbl_dynamic' The Acrobat forms book I use as a guide does not address the hiding and showing of several fields at the same time. My attempts to add the second field have failed. How can I change the script to control two fields instead of one?

    Thanks in advance for any ideas on that.

    var lst_dynamicFld = this.getField ("lst_dynamic")

    If (event.target.value == 'Yes') {}

    lst_dynamicFld.hidden = false

    }

    else {}

    lst_dynamicFld.hidden = true

    }

    'hidden' is obsolete, which means that in the next version of

    Acrobat/Reader, your script could no longer works if you use it.

  • PANTONE - show search field

    When I type a specific value of pantone, the search field shows something completely different. For example, I typed 2597C and here is what I get. Any ideas as to why this is happening? Thank you!

    Picture 8.png

    The image of the example that you posted blue PANTONE 072 C might have been caused by '7' at the end of your 2597, if you have not entered enough numbers fast. I just played around with this for a bit, and I had blue PANTONE 072 C pop up several times during the strike in 2597. If you wait too long between numbers, the search field will start everything simply by looking at your last key strike. Type '7' displays blue PANTONE 072 C, as it is the first swatch in library of covering that starts with the number 7.

    As Tom mentioned, you just type 2597 in find PANTONE 2597 C in the library of Solid Coated, (it's the only color with 2597 value in this library).

  • Condition in the field of money?

    Hi experts,
    can we put a condition in a form field that says:

    <? sum (current - group () / total_pl_usd)? >

    I have a domain like this.
    I can insert any anomalies in the text as:


    <? sum (current - group ((element = 'full_load')) / total_pl_usd)? >
    It did not work.
    I have two adjacent columns:

    In the first column, I need the sum to display if the current group is "full_load", in the next column, I need the sum to display if item = "half_load."

    How can I handle this?

    You must use this way, but you have to put the correct name.

    
    
    

Maybe you are looking for