Is it possible to show/hide a result text field only if another Text field is visible and has content?

Hi
Please could someone tell me if it is possible to make a text field visible only if another text field is visible and has content?
I have this which works for the content part, but sometimes the field is hidden, so the script must not apply.
var v1 = getField("Text1").value;
event.target.display = v1 !== ""  ?
display.visible : display.hidden;
What I need is something along the lines of:
var v1 = getField("Text1").value;
event.target.display = (v1 !== "" && v1!=="Hidden") ?
display.visible : display.hidden;
Thanks for any advise.

Thanks for the hints which led me to the right solution. I created a query to check if the trigger for the visibility was there or not, and this works. The script I have used is:
var v1 = getField("Text1").value;
var v2 = getField("Checkbox").value;
var v3 = getField("Text2").value;
event.target.display = (v1=="" || v3=="" && v2=="On" ) ?
display.visible : display.hidden;

Similar Messages

  • Possible to show/hide sections in a table?

    Hello all,
    First post here. I've only started using LiveCycle Designer a few weeks ago, never knowing that it came with my Acrobat. I've been busy converting forms we use in our business into pdf versions that can be filled, and created some with simple scripting etc.  Anyway my most ambitious effort to date is to create a gross payroll calculator in which I would enter the total hours worked for each employee and the gross payroll is calculated. The calculations I have no issue with.
    I am using a hidden "config" subform (thanks to kingphysh for your easy and simple example!) to store the employee names and payrates and the department they work in.
    My main form, the one on which I am entering total time for each employee, consists of a table with a section for each department. Thus I can put all employees in a department in one section of the table and then easily do subtotals by department etc.
    Table1
    Table1.Section1
          Dept. Name | Emp. Name | Pay Rate | Total Hrs | Gross Pay|  <-- this would be one row in the section     
    Table1.Section2
          Dept. Name | Emp. Name | Pay Rate | Total Hrs | Gross Pay|
    Table1.Section3
          Dept. Name | Emp. Name | Pay Rate | Total Hrs | Gross Pay|
    and so on. Each section also has a footer row for subtotals.
    This form will be used at various physical locations and not every location will have all departments. Thus I want the table to show only those sections for which the corresponding departments exist based on a selection (checkbox) that is on the hidden config page.
    Its not so much the actual scripting thats a problem, but where to put the script. Should I use a Table1 event or the checkbox event? I've tried both but neither works as desired. Or should I use an event for the individual rows in the section itself?
    Any pointers and suggestions will be greatly appreciated!
    Harry.

    Niall,
    Many thanks for all your help. With the examples you provided, I have been able to almost finish the form and learned a little bit along the way too.
    There are a couple of things still vexing me though.
    My form's hierarchy is as follows:
    page1 (flowed)
         - wrapper (flowed)
              - form1  (positioned)  <-- sub-form (form on which data is entered and calculation results are displayed_
                   - table1
                        -HEADER
                        -Section1 - bodyrow
                                       - section1 footer
                        -Section2 - bodyrow
                                        - section2 footer
                        -FOOTER
              - config   (positioned) <--  sub-form (normally hidden "config" form which stores employee data - accessed by password
                   - table1
    The sub-form form1 contains a table with six sections. Each section represents one department and has  body rows and a footer row for subtotals.
    the number of body rows in each section can vary with the number of employees in the department.
    I have two issues remaining with the form and it will be done. Hopefully you will be able to point me in the right direction.
    1. Pagination - in the form, I have set page1 to "flowed". wrapper is also flowed. form1 is positioned.
         I would like to be able to set it so that if any section is going to be split, it would go onto the next page.
         The header should be repeated in each page. Each section footer should be with the section, and the Table footer should be on the last page.
    2. Column Subtotals
         I have set the form to be as general purpose as possible. Thus it can take time totals in either decimal or HH:MM format. I am having trouble adding columns of time totals in HH:MM format.
    For example, given 3 time totals (all are in text fields):
    10:35
    15:59
    03:24
    I would thing the best way to do this is to parse the strings and add the minutes and hrs separately and then depending on the total of the minutes, use the floor and mod functions to get the correct total. I just can't get it to add the columns at all.
    This is the code I am using to add the column:
    if (_FD.count gt 0) then   //make sure at least one body row exists in this section
    for i = 1 upto (_FD.count) do
    mins = Sum(Right (FD[i].fdr_tot[i], 2))        // FD is the row and fdr_tot is the cell in the row which is to be included in the calc.
    hrs = Sum(Left (FD[i].fdr_tot[i], (Len (FD[i].fdr_tot[i]) - 3)))
    endfor
    endif
    I've tried using the code below as well to no avail.
    mins = Sum(Right (FD[*].fdr_tot[*], 2))
    hrs = Sum(Left (FD[*].fdr_tot[*], (Len (FD[*].fdr_tot[*]) - 3)))
    Any suggestions will be greatly appreciated.
    Thanks.

  • Is it possible to show/hide dynamically columns in RDLC form?

    We need to show/hide dynamically columns in our Report RDLC form based by the user desire needs.
    We need by the predefined checkboxes to set which columns should be seen and which should be hidden.
    Is it possible in RDLC form to make it "show/hide columns dynamically" with any way?

    Depends on what you mean dynamically, you still need to press the view report button.
    What you can do is right click on the column you want to be able to hide/display in design mode,
    click "Column visibilty", choose "show or hide based on an expression" then in your expression base your true or false on a boolean parameter for each column

  • APEX4: Is it possible to show/hide a field on form based on Radio selection

    Hi,
    On a form, I've a radio group (with two values) and two select list. Based on the selection in radio group, I want to show/hide the select list.
    Like, when the user clicks Radio Group Value - RG_A, SL_A has to be visible, and when user clicks Radio Group Value - RG_G, SL_B has to be visible.
    Is this possible in APEX 4? How can I do it?
    Thanks for the help.
    --Hozy                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    Hi,
    Yes, you can do it using Dynamic Actions.
    See this thread as well. APEX4: Populating fields from database based on the SelectList value
    In Radio Group you will need to identify the button clicked from its ID and / or value. Thats because the Radio Group Item creates as many IDs / Items as there are options P1_ITEM_0, P1_ITEM1_1, etc.
    Regards,

  • A bug in Hide Caption Titlebar Plus (2.4.x) causes browser borders to toggle and window content to jump and no addon setting affects this. Can I do anything to fix this except disable the addon?

    Hide Caption Titlebar causes the window content to be displaced when mousing over certain areas and controls. These areas includes mousing over the left window edge as well as leaving any control on the topmost area (buttons, location bar, search bar or tab).
    When this happens the window content is shifted right and up, approx 10 and 5 pixels, respectively, and a border to be displayed around the full inside of the window area, overwriting existing contents, the border being thicker to the left and bottom, and thinnest to the top. This border disappears after about half a second and the content is shifted back to its original position.
    This bug has followed me since FF4 and only disabling the addon makes the glitch go away.

    http://ww2.cs.fsu.edu/~rosentha/linux/2.6.26.5/docs/DocBook/libata/ch07.html#excatATAbusErr wrote:
    ATA bus error means that data corruption occurred during transmission over ATA bus (SATA or PATA). This type of errors can be indicated by
    ICRC or ABRT error as described in the section called “ATA/ATAPI device error (non-NCQ / non-CHECK CONDITION)”.
    Controller-specific error completion with error information indicating transmission error.
    On some controllers, command timeout. In this case, there may be a mechanism to determine that the timeout is due to transmission error.
    Unknown/random errors, timeouts and all sorts of weirdities.
    As described above, transmission errors can cause wide variety of symptoms ranging from device ICRC error to random device lockup, and, for many cases, there is no way to tell if an error condition is due to transmission error or not; therefore, it's necessary to employ some kind of heuristic when dealing with errors and timeouts. For example, encountering repetitive ABRT errors for known supported command is likely to indicate ATA bus error.
    Once it's determined that ATA bus errors have possibly occurred, lowering ATA bus transmission speed is one of actions which may alleviate the problem.
    I'd also add; make sure you have good backups when ATA errors are frequent

  • Results to be used in another calculation field.

    Dear All,
    I have a report showing average month in unit wise. The result is aggregated for "total" average month. Now I want to use that value, total result value in a formula variable for calculation. i want to create another calculation based on result which i have got in average month field.
    Average Month field is CKF.
    Example:
    Technical id number     AVGMonths                  MONTH
      '9185                                         1
      '9185                                         3
      '9185                                         4
      '9185                                         2                          
    Overall result is                         10
    I need overall result 10 to be displayerd in MONTH field.
    Please help me to overcome from this problem.
    Regards,
    MohammeD.
    Edited by: mohammed marika on Feb 14, 2011 9:48 AM

    Hi,
    It seems it has some limitation when we use SUMCT function with CKF.
    Please check the below thread for the same
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/007ba7a0-bcea-2b10-7e89-cbcb9db98a28?quicklink=index&overridelayout=true
    Try using SUMGT function also.
    Hope it helps you.
    Regards,
    AL
    Edited by: AL1112 on Feb 14, 2011 10:44 AM

  • Is it possible to show/hide a layer in all the files in a book?

    Hi,
    I have 5 catalogs organized in a book, every is at 10 languages, every language is at separate layer. Every book has between 30 and 80 Indesign documents.
    I need to edit and print 4 of those languages and switching manually viability of the layers don't look like a good idea to me because of the possible mistake.
    Is there a way switching layers/languages to happen in same time?
    The names to layers are same in all documents.
    Thank you in advance!

    M Blackburn wrote:
    Synchronize Options does not include layers. I would guess that you would have to use Conditional Text to each layer -- could be a lot of work after the fact. If no one else posts a more helpful response, you may want to ask in the Scripting Forum.
    I haven't tested it, but it might be possible to ignore or hide the layer(s) in the PDF you distribute or print. Worth a try.
    HTH
    Regards,
    Peter
    Peter Gold
    KnowHow ProServices

  • SP2013 Is it possible to show/hide columns based on column selections?

    SharePoint 2013
    I have a lists with a school district selection choice column (refer to as column A). Then I have three other columns with schools based on district. What I would like to do is only show schools in a certain district based on what district
    is selected in column A. Can anyone tell me if this is possible and if so, how can i acheive it?

    It generally takes a little script to get the cascading right;
    http://sharepoint-works.blogspot.ch/2012/02/cascading-dropdown-or-filtered-values.html
    https://www.youtube.com/watch?v=70-hXWY6ARY
    InfoPath is another possibility. Are you using that?
    w: http://www.the-north.com/sharepoint | t: @JMcAllisterCH | YouTube: http://www.youtube.com/user/JamieMcAllisterMVP

  • How to show the same result as I input (PO Material Text)

    I have a question that
    I need to show PO Material Text in the form.
    i use this function as usual....
    CALL FUNCTION 'READ_TEXT'
        EXPORTING
          ID                      = 'BEST'
          LANGUAGE                = 'E'
          NAME                    = T_NAME
          OBJECT                  = 'MATERIAL'
        TABLES
          LINES                   = T_TLINE
        EXCEPTIONS
          ID                      = 1
          LANGUAGE                = 2
          NAME                    = 3
          NOT_FOUND               = 4
          OBJECT                  = 5
          REFERENCE_CHECK         = 6
          WRONG_ACCESS_TO_ARCHIVE = 7
          OTHERS                  = 8.
      IF SY-SUBRC = 0.
        LOOP AT T_TLINE.
          MOVE T_TLINE-TDLINE TO THE_DOC.
          CONCATENATE THE_DOC1 THE_DOC INTO THE_DOC1.
        ENDLOOP.
      ENDIF.
      MY_MTEXT = THE_DOC1.
    the result maybe concatenate all lines into 1 line
    but now, i'd like to show the same line as I input now,
    for example:
    i input the PO Material Text : 
    123
    456
    789
    if i use that function, it should become :
    123 456 789
    but i'd like the result is the same as i input like this.
    123
    456
    789
    so, should I need to use "INCLUDE......"   in ABAP Script Form?
    Pls advise.
    Thx                                           
    how to do that?

    Thx for your advice,
    But I've already use perform...function ...to return the my_mtext. ( but it the single line that i concatenate all the line content..)
    FORM GET_MATERIAL_PO_TEXT_FOR_MOULD USING MY_MATNR
                                MY_EBELP
                        CHANGING MY_MTEXT.
    but my problem is that...the line of PO text varies....how can I know how many variables need to pass the value to program.
    if the value contains 3 lines.. i want to pass this 3 lines and show in the form.
    i'm confuse...how to do that ..?

  • How do I prevent dirty transaction as a result of DetailFlag in show hide

    I have an OATable with show/hide flag, however I noticed that it dirties the transaction when it is being clicked.
    The reason why I know this is when I sort a table field AFTER I expand a show/hide, it sends a warning
    Warning - The table cannot be sorted because it has pending changes which would be lost.
    How do I prevent this from happening?
    Thanks!

    One way to get over this is to use populateAttribute() in setters instead of setAttribute(attribute, value).
    Also there are couple of threads in this regard. Going through them would give you more clues.
    Thanks
    Sumit

  • Show / Hide characteristic in Bex Web

    Hi,
    since we use a fixed Template without the possibility to choose the characterstics / key figures from the
    Navigational Menu the question is if its possible to show / hide a characteristic in Bex Web via a button in the template.
    Thanks for help,
    Marco

    Hi Marco,
           That functionality is not present in the Button. But there is a way to acheive this.
            All you need to do is create two different queries, one showing the characteristics and other query without characteristics(hiding the characteristics).
           Then do the following steps:
    1. Goto Design mode and Place a button For Showing the Characteristics.
    2. Then in cmd type, choose 'Data Provider Specific Command'.
    3. In the Next window, choose 'Assign Query' and select the query that show the characterisitcs.
    4. Then give finish and give the Description as "SHOW CHARACTERISTICS".
    5. Then place another button in for hiding the char.
    6. Perform the 2nd and 3rd steps, but while selecting the query chose the one that hiding the characteristics.
    7. Then give the Description as "HIDE CHARACTERISTICS".
         So, if you click the SHOW button, it will show you the query that displaying all the characteristics and vice versa if you click the HIDE button.
         It will help you to solve the issue. Let us know if any further issues.
         Assign points if it helps you.
    Regards,
    Yokesh.

  • Show/ Hide Tables in SSRS based on Multiple Parameters

    Hi
    Is it possible to show/ hide multiple different tables based on a multivalued parameter?  I have 6 tables and I want 1 or 6 displayed dependent on what is selected from the multivalued parameter.
    When I add the IN operator and select multivalues, I get the following error:
    I have an expression set in the Visibility tab in the tablix to:
    =IIf(Parameters!Name.Value =
    "Name",
    false,
    true)
    and in the filters tab, I have a filter on the name so the data is filtered only by that name so it can display the different categories in the different tablix.
    Can anyone advise on how to achieve it so I can use the multivalued parameter option to display 1 or more tables?
    thanks!

    Hi
    Is it possible to show/ hide multiple different tables based on a multivalued parameter?  I have 6 tables and I want 1 or 6 displayed dependent on what is selected from the multivalued parameter.
    When I add the IN operator and select multivalues, I get the following error:
    I have an expression set in the Visibility tab in the tablix to:
    "Name",
    false,
    true)
    and in the filters tab, I have a filter on the name so the data is filtered only by that name so it can display the different categories in the different tablix.
    Can anyone advise on how to achieve it so I can use the multivalued parameter option to display 1 or more tables?
    thanks!
    =IIf(Parameters!Name.Value =
    Hi,
    Use Join function in the RDL and hide them for whatever values you want to.
    =Join(Parameter!paramname.value,",")
    Thanks,
    FunBI

  • Captivate 8 responsive project with advanced action to show/hide interaction

    I'm finding that responsive projects in captivate 8 don't properly show interactions upon show/hide. Is anyone else having this issue and knows how to fix it?
    I've tried to not group items together but the interaction still doesn't appear.
    I've tried placing the show hide information into an advanced action instead (actually my project requires this) and it doesn't work, nor does it work like in the screenshots below.
    I've tried to duplicate this in a non-responsive project and it works which makes me think this is only related to responsive projects.
    Thoughts? Any ideas would be helpful.  Thanks!

    I believe the problem is still present in Captivate but I've read a post on these forums that went some way to explaining what is happening and a possible workaround. The issue is in the method that Captivate writes HTML5 and the order in which it displays elements on the canvas. I had a quick look to try and locate the post but without any luck. The person who posted it did give instructions on how to resolved the issue 'relatively' simply by modifying the HTML5 code once you had published the files. I did say 'relatively' simple because this solution does require some knowledge of HTML5.
    Sorry that I could not be of much more help and I do hope that my recollection of this possible solution is correct.

  • Dynamically show/hide regions out of the application workflow

    hi,
    is it possible to show/hide regions of a page dynamically with a "select list with submit" item?
    regards

    Hi,
    Do you mean "Conditionally display" items based on the value of a Select List with Submit?
    Andy

  • Show/hide field options are grayed out

    If a drop down value is 1, I want to show field #1. If the drop down value is 2, I want to show fields #1 & 2. If the value is 3, I want to show fields # 1 2 & 3, etc. This appears not to be possible; a show hide rule is already created for value 1 and appears unavailable for a new rule for value 2. Any ideas for a workaround?

    Yes you can do this using the hide show logic. In the case you describe you want to use the if any rule rather than the if all rule. For drop down item one the logic is if any (1, 2 or 3) are selected show item one. For item two the logic is if (2 or 3) are selected show item 2.
    Andrew

Maybe you are looking for

  • Headphone Jack No Longer Working

    About 2 weeks ago, my iPhone's headphone jack completely stopped working. I started to notice it a month ago (after installing the latest iOS builds, but I dont necessarily have any reason to believe that it's a software issue) when it wouldn't play

  • HP Officejet Pro 8000 wireless wont print with iPhone 5s

    This printer billed as Wireless that I purchased in 2011 wont print with IPhone or iPad because it is not on list of Air Print devices So I was told by HP to buy a new one and since it wasnt equipped with HP's "eprint" the app thats out there to make

  • Select only the last 12 months

    Hi all I need to write a query that will select only records from the last 12 months, order them by customer ID, and show one column per month, and a Total column where I need to add monthly Values. The table has the following fields •     YearMonth

  • How to do performance tuning in EXadata X4 environment?

    Hi,  I am pretty new to exadata X4 and we had a database (oltp /load mixed) created and data loaded.  Now the application is testing against this database on exadata. However they claimed the test results were slower than current produciton environme

  • Embed blob object into HTML region

    Hi everyone! I am interested in embedding a .swf file into an HTML region in ApEx. It's real easy when the source is a file or http server. However, could this be done if the source was a blob stored in the database? Below is the code that works for