Hide the button if the Conditions are met

I have a form that has 3 drop drop-down options 1, 2 and 3 in them.  I want to hide a button if '1' is selected any of the 3 boxes of drop-down list.  But the problem is I want what he re appear if the user changes his mind and wants to select 2 or 3.  So at any point and time I want the visible button if "1" is selected.  But I want it visible if none of the boxes have "1" or are empty.

Thanks in advance for taking the time to help.

Hello

The script itself works. Not sure what prevents it from giving you the results you need without seeing (that is, it has to do with something other than the structure of the script itself).

Check the following:

  • Set the values as numbers on all drop-down lists: 1,2,3 in the binding of the object palette tab
  • Make sure that the reference syntax is correct - if the drop-down lists reside in a different subform or other line in a table, you will need to make changes.
  • Make sure you have chosen formCalc on all drop-down lists
  • Make sure that you place the scripts on the Exit event - must be out event, change event no.
  • Make sure other scripts are not interfere - maybe, there are scripts attempts you have forgotten to remove
  • Use the "Check syntax of Script" button in the Script Editor
  • Check the newspaper for clues to guide you.

It is the best help I can offer without seeing the form.

Good luck

Stephen

Tags: Adobe LiveCycle

Similar Questions

  • Hide the button until all Conditions are met?

    Please help!  I am creating a forklift safety training module. There are 12 buttons on the first slide (see screenshot 1); However, only 11 are visible at the beginning of the slide.  The 12th button is a "continue" button that appears only after all the content slides (slides 2-12) were considered by the learner.  I used a conditional action to hide the button (something I learned from @Lilybiri) until all the conditions are met.


    The problem:

    The "Continue" button does not always appear once the content slides have been read.  I found I can do appear to ebb in each slide content, show the slides a few seconds more before returning to the main slide- which seems certain conditions which tells Captivate to display the button "continue".  Of course, I don't want the learners to face to the challenge of trying to understand why they cannot continue. I just want to visit the pages relating to each key to all conditions met.


    Screenshot 1: the initial screen (actions related to the change of color of button below)

    forklift_screenshot1.jpg


    Screenshot 2: chronology of the page main interaction

    forklift_screenshot2.png


    Screenshot 3: conditional Action to display the button CONTINUE (created as a decision 2nd out of action of 'Transport').

    My expectation was that OnEnter, slide would be recognized as read and count for the condition that all 11 pages of content would be considered before that appear the continue"" button.  I set the time to s 3.0 (see screenshot above) on all content slides.  No transition, no effect.

    forklift_screenshot3.png


    Screenshot 4: each slide content is returned to the slide main interactivity by an OnSuccess: jump to the command of the slide.  Nothing special here.  I tried to reduce all the content slides to 1.5 s nothing works.

    forklift_screenshot4.png


    Screenshot 5: an example of the page interaction BEFORE all the content slides were read and before 'CONTINUE' button appears (ignore the footer buttons; it was just me to experiment with styles of button).

    forklift_screenshot5.png


    That's a lot, I know.  I wanted to cover the entire base.  I would appreciate your thoughts and your expertise.  Thank you in advance!


    Michael

    How about what is probably very close to what you have already made... (After double checking all of your shares advanced for bugs)

    Each main menu button sets the variable 'consulted' 1, hides the active button, show visited button, then jump to the content. Alternatively, you can put the action on the close button for each slide as you did.

    Then in your main menu, you will have the conditional action on enter that verifies that each variable 'seen' is 1. If it is true, then it will show your button continue.

    I use this method with almost all of the modules that are non-linear. I use it to display a button quiz start, tab summary etc...

    To check your programming that I'm down in a text caption that has all the variables, you will have to look and make sure that they change to 1 as it should. As soon as something does not change probably you have found your problem. Also make sure that none of your actions changed to continue if you have accidentally deleted an object or something similar.

    Also BTW: If you want to increment a variable, you use the action "expression" rather than "assignment." If you keep just assign 1 to a variable, all that you will ever get is 1. example: If the variable = 7 and you assign 1 then now variable = 1.  If you use the variable expression variable = + 1 then you will be able to increment. Also be careful if a user visits an article more than once because it increments the new variable unless you have a control to see if the content has been seen before, and then past increment. Otherwise they could visit the same section 11 times and then have the button continue become visible.

  • "All the conditions are met" - not exactly?

    Hello again! I'm experimenting a little, set up a mock up of the slightly more complicated project of Captivate to help some of my practice of co-workers with Captivate. I am under a problem but with one of my examples:

    I put a map of the world and six text entry areas to invite a user to name the continents (except Antarctica). I attributed to each box TE an associated variable where it is placed, that is the entrance area of text on Europe is associated with linked a variable titled 'in Europe. I want the slide does not advance until all mailboxes of YOU are properly labelling of each continent.

    Currently, for each main entry text box, rather than by a single shipment, a peak action occurs which assigns the associative variables with a literal name. For example, for action advanced in North America, marked NA_Check, it has an action to display a caption saying 'okay' and assign the NorthAmerica variable with a literal: "North America".

    An advanced global action runs when a user is trying to push a "Continue" button that checks the State of the variables. The conditional action because its properties 'if' that all the conditions are met with Asia = 'Asia', Africa = 'Africa', etc. of all human beings "AND". I assumed that with all of them being 'AND' they must all be true for this check properly. However, I have separate legends for the success or failure, and for some reason all I have to do is to get two correct and I can go forward as if I was 100% correct.

    I thought that maybe it had to do with the variables being assigned prematurely, so I made an action on enter which assigns each variable with "0" so that the entry in the text box would be the only way to make the correct variables. This doesn't seem to work. Any thoughts? Why only do two of the 6 conditions for success when I list all necessary?

    I'm not sure. Maybe a bug in the code of Captivate?

    I think I might rather assign some values to variables and do some calculations, and proceed only if the result is equal to a specific value.

    But that's just me... Rick

  • How to hide the results of the formulas until the conditions are met

    Hello, I have (SUM (A6÷2 × 1, 0)) × (data sheet-1 Services': Table 1::AH6) the problem is that I don't update A6 until needed so all down my sheet I have these red triangle. I know they will disappear when the data is entered into A6 but I would like for them to hide until then. Can someone help me please? Thank you

    also and last question today, I promise you.

    I have a table that has text in I have another table that I want to bring text on is there a formula that if I say it looks like the cell of table 1 and it will bring the text (name) to table two?

    Thanks again for all quin t help and thanks to you who make me on the right track for the issue of the menu popup I got earlier

  • Conditional liquid do not print when the conditions are met.

    I build a simple menu in British Colombia and for the purpose of this project, I'm going to be exposing this menu without using Module of menu in British Colombia. I use the following code:

    {% If globals.user.isLoggedIn contains 'true' %}}

    < id = "my-account-link" li > < a href = ' / my account "> < i class ="fa fa-diamond"> < / i > < span class ="-animate "> my account </span > < /a > < /li >

    < id li = "settings-link" > < a href = "/ my account-#settings" > < class i 'fa fa-sliders' = > < / i > < span class = "-animate" > my settings </span > < /a > < /li > ""

    < id = 'link-support' li > < a href = "/ my account/help" > < i class = "fa-fa-question-circle" > < / i > < span class = "-animate" > support </span > < /a > < /li >

    < id li = "logout link" > < a href = "/ LogOutProcess.aspx" > < class i 'fa-fa-sign-out' = > < / i > < span class = "-animate ' > Log Out < / span > < /a > < /li >" "

    {% other %}

    < id li = "connection-link" > < a href = "/ login" > < i class = "fa fa-sign-in" > < / i > < span class = "-animate" > Login / / Sign Up </span > < /a > < /li >

    {% endif %}

    I have used before with other snippets of code and this liquid condition print very well. For some reason, when I test the newspaper, the State still shows the wrong code even when I look through the JSON printed in the console object and the object user loggedin contains the value Boolean 'true '. Sort of at a loss as to why it is not printing when the user connects. Really want to use liquid on it and do not have to revert to the version JS of the hiding items.

    Thanks in advance to all! Best wishes!

    Well, I feel stupid, I was following the copy and the tutorials BC and pasted. Realized that I had to use operators such as "is" appropriate and «!» = ». I fixed it now

  • check the table to see if all the conditions are met.

    Hello

    I want to see if all my items in my table have hit an area on the stage and got a bit doing wrong.

    the following code works:

    If (ball1.hitTestObject (Box) & & ball2.hitTestObject (box) & & ball3.hitTestObject (box)) {}

    trace ("Completed");

    }

    However, my goal is to have these movieClips stored in a table and would still like to call the hitTestFunction and AFTER THAT each item has hit the area to trigger an action, like that I could just add however items I want and keep the same line of code. Obviously if I set the table in a loop and assign [i], it's just going to join this element and the trigger, and I "m thinking that each property on the table could work it is just a matter of implementing a function to capture the right information. I hope this makes sense, and I appreciate your help.

    Try this. Loop breaks when it is not hit - so a single object success will leave false hit test.

    var ballsArray:Array = [ball1, ball2, ball3];
    
    function checkHits():void {
        var isAllHit:Boolean = false;
        for each(var ball:Sprite in ballsArray) {
            isAllHit = ball.hitTestObject(box);
            if (!isAllHit) {
                break;
            }
        }
        trace("all hit?", isAllHit);
    }
    
  • show/hide the button with the icon enabled when the condition is met

    Hello

    I created a B button with an icon of a sign of the green check mark.
    It must appear next to another A button when a condition is met.

    How can I better get this working B key, without using something else than the APEX.

    The condition is that some data has been inserted by clicking A button or simply exist in the database table.

    I tried conditional display of point with conditiontype "PL/SQL Expression.
    but could not make it work.

    TNX to tide me over.

    Cara

    Hello

    If you use the condition EXISTS (SQL query returns at least one row)?

    This could give idea how
    http://Apex-SMB.blogspot.com/2009/05/How-to-determine-if-user-can-view-apex.html

    BR, Jari

    Published by: jarola 18 November 2009 16:07

    Oh,.
    I paste the wrong link and can not find more good.
    Well anyway in this link is also example to condition EXISTS

    To meet this requirement I can add a condition (SQL Exists) to the Report 2 region on Page 2:
    

    It takes something similar and your table selection

  • Hide the conditions of the IR

    Hi all

    I'm building an IR and me using line highlighter to highlight a few lines. This is my default report.
    Is it possible to hide the conditions (which is displayed above the report).

    I cut, but I was told to hide it completely. I have not found this option.


    I use 10g DB and Apex version 4.1

    Thank you in advance,
    Daniel.

    Daniel wrote:
    Hi, VC.

    Another highlight, I just need the menu actions for download purposes.

    Thus, it will block that too?

    Menu Actions will be available, but you have IR research field? don't forget when you search it will add a filter that are not visible to the end user to delete.

    Here's what you get

    http://Apex.Oracle.com/pls/Apex/f?p=46417:4

    Test/test connection

    Try searching for 'plugin', the filter is applied, but you won't see it

  • How to hide the Breadcrumb area level TAB of the model Page 2

    Hello

    I use the theme 16 and Page template 2 level tab.
    I'm not using Breadcrum, but default region of breadcrumb appears on the level 2 tab.

    Is it possible, I should hide the breadcrumb area.

    Thank you
    Deepak

    Hello

    I think you need to change the page template.

    Original copy for backup.

    Then edit the page template and remove those lines

    
    
    #REGION_POSITION_01#
    
    
    

    BR, Jari

  • The electricity in the Notification area meter does not work in my XP laptop.

    Original title: XP battery meter does not work.

    KIM I have Windows XP Professional 64-bit on my laptop. The battery meter in the notification area will not work. It shows that it is connected. I changed the profile of laptop computer power and nothing. The laptop came with Windows 7 Home Premium. Please do not ask me why I went to XP to 7, because who does not help me. How can I fix the battery meter? It worked until I installed my graphics driver, I don't understand why it does not work now.

    Thank you
    Mike
    HP G62-225DX 4 GB Ram 2.3 GHz Dual Core Pentium 4. 250 GB HARD DRIVE.
    XP Pro 64

    Hi, Mike

    Thanks for posting in the Microsoft Community.

    I'm sorry to hear that you have problem with the Power meter on your Windows XP computer. I would like to know more information, so that we can help you better.

    1 - is this problem started after the installation of Windows XP?

    2. do you get any error code or error message while starting?

    Let us try the following methods; I'm sure this will help you to solve the problem.

    Method 1:

    Run the fixit in the following Microsoft FixIt.

    The problems of power consumption and extend the life of laptop battery:

    http://support.Microsoft.com/mats/windows_battery_power_settings

    Method 2:

    Try the steps in the following Microsoft article.

    How to display and use the icon "Power Meter" in the area of notification in Windows XP:

    http://support.Microsoft.com/kb/909606

    Please reply with the status of the issue, so that we can better help you.

  • Hide the affected area of a TextField

    In previous versions of Flash, I could put a dynamic TextField of a button without the affected area of the textfield interfering with the button area. In Flash 9, it behaves as if the TextField is another button. Is it possible to turn off the visibility of the area reached for the textfield, so the dynamic TextField behaves as if it was inside the key (without me having to put it there)?

    In WPF, it is a property called 'isHitTestVisible. I believe that the Flash hitTest concept is not related to the way the built in Flash button behaves, but there must be a way to control this. Does anyone know a way to disable the dynamic TextField interfering with the button when it is on it?

    Thank you.

    Nathan

    I found the solution:
    myText.mouseEnabled = false;

    I didn't know there were several methods inherited from the parent classes. The one I wanted was on the InteractiveObject class.

    Still, it would be nice if I could have entered non-exclusive mouse, however.

  • How to hide the remaining area bar reading is hidden?

    Hello

    I use 7 Captivate and one of my module design requires me to display the playback bar on specific training slides. I put my PlayBar to NOT show on overlay because that would cover the lower part of the screen shot of the application, so now the PlayBar is displayed outside the canvas area and does not interfere with anything on the screen. The problem is that on the siides where the PlayBar is hidden (assign cpcmdShowPlaybar = 0), there is a band of colorful at the bottom of the screen (where the playback bar would have been had visibility been lit), I don't want to have.

    How do I get there?

    Thank you

    Sean

    No way to change the resolution of the project at halfway, that is what you want: reduce the height when there is no playback bar. Would look funny too. Try to make the bottom border, which is what we will see when the PlayBar is hidden, in the same color as the background of your slides. I wanted to propose the PlayBar in overlay, but you don't want that.

  • Refresh the binding once certain conditions are met

    Hi people,

    I have a cfselect that is linked to an entry. Type a few characters in the triggers entry select it update its contents (which she gets a JSON string).

    Works very well. But I want more! I want that the event occurs only after 3 or more characters are entered in the entry. I could use {filter@none} in the impasse, but then I must refresh somehow bind it programmatically.

    I did some fairly exhaustive Googling, without any satisfactory results. Maybe it's a stupid question or a very weird...

    Any ideas?

    < input type = "text" name = 'filter' id = "filter" >

    < name cfselect = "seladdress" id = "seladdress".
    bind = "URL:index.cfm? Event = addresses. "{List & surname={filter@keyup}".
    display = 'NAME '.
    value = "ID".
    bindOnLoad = "false".
    >

    Yes, it's me you answer me.

    You can do this through this:
    http://cfsilence.com/blog/client/index.cfm/2007/10/22/refreshing-A-bound-CFSelect

    Then you use cfajaxproxy, which connects directly to your CFC. Since I want all requests, even AJAX, through my framework (model glue) I will not use this way.

    See another solution to:
    http://www.trilobiet.nl/blog/index.cfm/Coldfusioncustomtags

  • Date and form validation if java is disabled and obligation to hide the text areas to start

    Hi, currently my web page has a form on it where it select where there is a date entry and a speaker, and two text boxes where only is visible depending on the results of the verification of availability.

    Here is an example of the part of the shape of my page.

    Screen+shot+2011-04-06+at+5.32.32+PM.pngScreen shot 2011-04-06 at 5.32.54 PM.pngmy form with spry validation. no date or selected speaker.

    I have a few questions.

    First of all:

    When my page loads first the speaker's text non-reserved area is visible and the speaker is reserved textarea is hidden.  I guess that's because loading my page it refers to my database and nothing is so the speaker is non-reserved textarea is visible and the speaker is the placeholder text is hidden.

    How to get two text boxes to hide on start to the top of the page?  Here is my php code to the beginning of the model.

    ==============

    <? php require_once('.. / Connections/conEmjMarketing.php');? >

    <? PHP

    If (! function_exists ("GetSQLValueString")) {}

    function GetSQLValueString ($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")

    {

    If (via PHP_VERSION < 6) {}

    $theValue = get_magic_quotes_gpc()? stripslashes ($TheValue): $theValue;

    }


    $theValue = function_exists ("mysql_real_escape_string")? mysql_real_escape_string ($TheValue): mysql_escape_string ($theValue);


    Switch ($theType) {}

    case 'text ':

    $theValue = ($theValue! = "")? « " ». $theValue. "" "": "NULL";

    break;

    case "long":

    case "int":

    $theValue = ($theValue! = "")? intval ($TheValue): 'NULL ';

    break;

    case "double":

    $theValue = ($theValue! = "")? doubleVal ($TheValue): 'NULL ';

    break;

    case "date":

    $theValue = ($theValue! = "")? « " ». $theValue. "" "": "NULL";

    break;

    case "set":

    $theValue = ($theValue! = "")? $theDefinedValue: $theNotDefinedValue;

    break;

    }

    Return $theValue;

    }

    }



    @mysql_select_db ($database_conEmjMarketing, $conEmjMarketing);

    $query_rsCurrEvents = "SELECT speakerRequested, event, place, datebooked, startTime, endTime OF booking ORDER BY datebooked ASC";

    $rsCurrEvents = mysql_query ($query_rsCurrEvents, $conEmjMarketing) or die (mysql_error ());

    $row_rsCurrEvents = mysql_fetch_assoc ($rsCurrEvents);

    $totalRows_rsCurrEvents = mysql_num_rows ($rsCurrEvents);

    $query_rsCurrEvents = "SELECT speakerRequested, event, place, datebooked, startTime, endTime OF booking ORDER BY datebooked ASC";

    $rsCurrEvents = mysql_query ($query_rsCurrEvents, $conEmjMarketing) or die (mysql_error ());

    $row_rsCurrEvents = mysql_fetch_assoc ($rsCurrEvents);

    $totalRows_rsCurrEvents = mysql_num_rows ($rsCurrEvents);

    $query_rsCurrEvents = "SELECT speakerRequested, event, place, datebooked, startTime, endTime OF booking ORDER BY datebooked ASC";

    $rsCurrEvents = mysql_query ($query_rsCurrEvents, $conEmjMarketing) or die (mysql_error ());

    $row_rsCurrEvents = mysql_fetch_assoc ($rsCurrEvents);

    $totalRows_rsCurrEvents = mysql_num_rows ($rsCurrEvents);



    @mysql_select_db ($database_conEmjMarketing, $conEmjMarketing);

    $query_rsSpeakers = "SELECT speaker speaker speaker ORDER BY ASC";

    $rsSpeakers = mysql_query ($query_rsSpeakers, $conEmjMarketing) or die (mysql_error ());

    $row_rsSpeakers = mysql_fetch_assoc ($rsSpeakers);

    $totalRows_rsSpeakers = mysql_num_rows ($rsSpeakers);


    $colname_rsAvailability = "-1";

    If (isset($_POST['speakerRequested'])) {}

    $colname_rsAvailability = $_POST ['speakerRequested'];

    }

    $colname2_rsAvailability = "-1";

    If (isset($_POST['datebooked'])) {}

    $colname2_rsAvailability = $_POST ['datebooked'];

    }

    @mysql_select_db ($database_conEmjMarketing, $conEmjMarketing);

    $query_rsAvailability = sprintf ("" SELECT speakerRequested, datebooked FROM reservations WHERE speakerRequested as AND bookings.datebooked %s = %s ", GetSQLValueString ('%'.") $colname_rsAvailability. ('%', 'text'), GetSQLValueString ($colname2_rsAvailability, 'date'));

    $rsAvailability = mysql_query ($query_rsAvailability, $conEmjMarketing) or die (mysql_error ());

    $row_rsAvailability = mysql_fetch_assoc ($rsAvailability);

    $totalRows_rsAvailability = mysql_num_rows ($rsAvailability);

    ======================

    The second question:

    My form works very well with spry validation.  Validation of date format for the date text box work, validation for the speaker select jobs.  My question is how to validate that the date is a valid date and speaker selection box is not empty if java is disabled?

    Where do I put this code? How do I call? How can I show that the field is in error?

    Thank you winrol

    If you return to the solution I created for the date, you will see that the error messages are displayed by elseif clauses. You must do the same for the message of the speaker.

        Please select a Speaker.    Please select a Speaker.
    
        Please select a Speaker.
    
    
  • Copy the cell values if the criteria are met, without spaces

    I wish I had a kind of summary sheet which lists all values from another sheet if they match a condition. But I want them to put on the 'Summary' sheet without a bunch of empty spaces.

    For example.   So happy = 5, put 'Food' on the summary sheet.

    It is an arbitrary example

    Name Food Happy
    Harry Apples 5
    David Candy 3
    Lola Tacos 5
    Danny Chips 2
    Suzie Steak 4
    Mark dirt 1
    Mike Sushi 5

    I want something like that

    Food .....

    Apples

    Tacos
    Sushi

    NOT

    Food ....
    Apples
    Tacos
    Sushi

    You can do this by building a column that is incremented index (which can be hidden) and then by doing a search on this index, something like this:

    The formula in D2, filled to the bottom, is:

    = IF ("C2 <>5," ", MAX(D$1:D1) + 1")

    The formula in A2 of the table summary, filled to the bottom, is:

    = INDEX(Data::B,MATCH(ROW()−1,Data::D,0)))

    SG

Maybe you are looking for