show/hide a field (table) by using a button.

I have a table set to hidden and want to display it using a button and hide it using the same key. If the table is not visible I don't want to be printe. Any suggestions?

Thank you

-Very well, it looks that it does not keep the flow of the form...

Another work around you can use this work for you would be the following:

1. keep this code in the button click event

If (Table1.presence == 'hidden') {}

Table1.presence = "visible";

} else {}

Table1.presence = 'hidden ';

}

2. in your hierarchy, click the table that you want to hide when printing, go to the case of pre-printing and put this line (prePrint is before printing)

This.Presence = 'hidden ';

3. now, in the event of postPrint, you can put the following line to replace the visible table (postPrint is after printing)

This.Presence = "visible";

Do not forget that if the Table is hidden when printing, the table appears in the postPrint.

So if you want to avoid this problem, you can have a hidden text field that keeps track of how you should view the table after printing.

If you do this, you can change the 'visible' to TextField1.rawValue value

You can put the value of the text using the click event of the button field, when changing the value of the presence of the table changes the value of the text and field

I hope this will help you!

Tags: Adobe LiveCycle

Similar Questions

  • Show/hide form fields

    Thanks in advance for your help. I work with a form that contains calculated fields. The calculated field is formatted for currency, so it contains the "$0.00" in the field automatically. Customers can also print the form and fill it out by hand, so the "$0.00" is a nuisance. Is it possible that I can hide the calculated field, unless the user has actually enters data fields to be calculated? Any advice would be appreciated. Thank you.

    The United States of the monetary symbol does not authorize the removal of the display of zero with a string NULL. So you can either set the fields do not use the currency symbol or dynamically change field with JavaScript format.

    For the validation script, use the following code:

    validation code custom;

    var cCurrency = ""; Disable the currency symbol;

    If (event.value! = 0) {}

    Event.Value = event.value;

    currency symbol set at USD

    cCurrency = ' $';

    } else {}

    value zero set value of field to null

    Event.Value = "";

    }

    Set the format with or without currency symbol field.

    AFNumber_Format (2, 0, 0, "", cCurrency, true);

    Code of end of validation custom;

    The number of decimal places is supposed to be 2.

    The form will need to be cleared or perform a calculation for calculated fields will be updated and the validation script will be executed before we see the results of this change.

  • JavaScript in a text field to show/hide a field calculated

    Thanks for your help. Here's the situation. I created a form with text, number fields (currency) fields and calculated fields. Fields display calculated the monetary symbol (even when there is nothing to calculate) and this is a problem for our users who want to just print the form and fill it out by hand (because the monetary symbols get in the way.). So I wanted to write a script would make it calculated fields hidden unless there is actually something is entered in the first text field (EmpID). That's what I came with (TotalCompensationRow1 is a calculated field.):

    var TotalCompensationRow1Fld = this.getField ("TotalCompensationRow1")

    If {(event.value)
    TotalCompensationRow1Fld. display = display.hidden
    }

    else {}
    TotalCompensationRow1Fld. display = display.visible
    }

    Somehow, I think I make it much more difficult that it should be. Thanks again for your help.

    Another approach would be to change the formatting of the displayed field. When using a percentage or a monetary symbol, can not suppress the display of the "0.00"or "0.00%". " But if one use the number format with no currency symbol, you can remove the display "0.00".

    Validation of currency format:

    var nDec = 2; set the number of decimal places; number & percent;

    var sepStyle = 0; style of thousands separator; number & percent;

    var negStyle = 0; negative style; number only;

    var currStyle =""; always null; number only;

    var strCurrency = ""; currency symbol; number only;

    var strCurrencyCurrency = ' $'; currency symbol; number with the currency symbol;

    var bCurrencyPrepend = false; prefix of currency; number only;

    var bPercentPrepend = false; percentage of prefix; percent only;

    Console.println (Event.value);

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

    Event.Value = "";

    AFNumber_Format (nDec, sepStyle, negStyle, currStyle, strCurrency, bCurrencyPrepend);

    } else {}

    bCurrencyPrepend = true;

    AFNumber_Format (nDec, sepStyle, negStyle, currStyle, strCurrencyCurrency, bCurrencyPrepend);

    }

    Validation of the percentage format:

    nDec var = 1; set the number of decimal places; number & percent;
    var sepStyle = 0; style of thousands separator; number & percent;
    var negStyle = 0; negative style; number only;
    var currStyle =""; always null; number only;
    var strCurrency = ""; currency symbol; number only;

    var strCurrencyCurrency = ' $'; currency symbol / / number with currency symbol;
    var bCurrencyPrepend = false; prefix of currency; number only;
    var bPercentPrepend = false; percentage of prefix; percent only;
    If (event.value == 0 | event.value == "") {}
    Event.Value = "";
    AFNumber_Format (nDec, sepStyle, negStyle, currStyle, strCurrency, bCurrencyPrepend);
    } else {}
    AFPercent_Format (nDec, sepStyle, bPercentPrepend);
    }

  • Show/hide HTML area with click of a button

    Hello

    is it possible to show or hide an HTML region if o want to use a button to hide or show the region?

    Can anyone explain it to me?

    Thx for all

    René

    Hi René,.

    You should be able to create a new button on your page, and you can define the Action of this button to "defined by the dynamic Action.

    Then when you are in page editing mode, you can create a "dynamic Action" declaratively without writing javascript.

    Follow the steps, something like:

    Action: click

    Selection type: button

    Real Action: (or hide)

    Assigned items: region

    Did you give the dynamic action a go?

    Amanda.

  • 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;
    }
    
  • How show/hide a field?

    I'm trying to understand how toggle a field called "Aircraft" as hidden or shown, according to the text entered in another field called 'Trip '. If the value of 'Trip' is empty, I need air ' "hidden - this field is a calculated field based on the data entered elsewhere. Also, if the person changes the entry in the 'Trip' to something else that a white - I need to hide/show to switch to show - and if they delete the entry to switch back. In other words, people often change their minds and I need the "Airfare" field to account for that.

    Hope it makes sense.

    Thank you.

    It's pretty simple to do manually with a bit of javascript, for example-

    It should work OK.

  • ? Selections of list box to show/hide form fields

    OK, so I want to use a list box to control the fields on form on my page are visible or hidden. I have no problem creating the list and adding items to the list, but were not able to understand what I need to connect each selection in the relevant script form field I want that he controls.

    So, basically, I want to know what javascript is required in order to allow the end user to select one or more items of the listbox and have these fields become visible on the page. How can I do this?

    Had a look at your code and you complete the loop before running your tests. If moldy either inside the loop for. statements I have modified your code (reformatted into it a bit so it is easier to read) and it included here.

    Paul

  • Show/hide text field

    Hello

    I have the Group of option buttons, five choices, and by choosing No. 5, I want a text field become visible.

    Someone at - it an idea how to make this happen?

    Kirstine

    You will write the code on the change event of the RadioButtonList method (look in the hierarchy) where radio buttons are grouped. The group object will hold the value currently set for the RadioButtonList method. You can test to see if the group is set to 5 while you bring up your field. Make sure that each RadioButton has a unique value when it is turned on. Something like this:

    If (this.rawValue == 5) {}

    FieldName.Presence = "visible".

    } else {}

    FieldName.Presence = 'invisible '.

    }

    Paul

  • How to set current row in the table after use the button tab on inputText

    Hi all
    My first post.., I am beginner in ADF and I'll try to explain my problem.

    For now we use ADF 11 g (11.1.1.4), in a jsff page I have a table with a column of inputText.
    On the the inputText valueChangeListener, I invoke a method in a bean viewScope that call an EJB method, make some services to the EJB on the modified line. After that, I update the VO and the table (because other values in the row have been changed) and reset the focus on the inputText even modified by the user with javaScript, because the focus was lost after updating.
    So far, everything works fine.

    When I use the arrow keys to change the selected line in the table, this is excellent work (focus is always in the inputText next or previous), but if the user tries the key tab allows you to change the current line, the inputText on the line that has the focus, but the current row in the table is not changed (I think that is normal).

    My question: How can I change the current line after the tab key in this case?

    I don't know if it is really clear, not easy to explain, do not hesitate to ask for more details.
    Thanks in advance.

    Hello

    My question: How can I change the current line after the tab key in this case?

    Use a client event to listen to the keyboard entry and intercept the tab. Use af:serverListener to call the server to set the rowKey on the table and deliver a PPR for the table to repaint

    See example 11 on http://www.oracle.com/technetwork/developer-tools/adf/learnmore/index-101235.html#CodeCornerSamples

    to learn more on how to use the client listener and the receiving server

    Frank

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

  • The use of password for show/hide forms - anyway to keep the setting "does not print?

    I have a George_Johnson script that allows me to enter a password to show/hide the fields selected (keys actually).  It works perfectly, but when I enter the password and buttons appear again, setting general/Common Properties amounts to 'visible' instead of ' visible but does not print ', and the buttons appear when I print the document.  I thought I could change these lines and print buttons...

    case 'password': / / your password goes here

    getField("x").readonly = readonly;

    getField("x").display = readonly? Display.Hidden: display.visible

    App.Alert ("level 1 support is now" + readonly_desc + "d", 3);

    break;

    .. .to change the 3rd line to read as follows: getField("x").display = readonly? display.hidden: display.visible but does not print  (or _but_doesn't_print;)

    but then I started to make syntax errors in the 4th line.  I don't know about Java, but I thought I might get lucky.  I get hot?  What is the "3" that needs to change?  Or is that I started quite wrong?

    Thanks for reading,

    Zac

    You can't guess correctly that the value can be and expect it to work... You should consult the documentation.

    In this case, what you're looking for is "display.noPrint".

  • Captivate: Using Javascript to show/hide captions text

    Hello

    I want to show/hide a legend of text using javascript. I can't find the way to do it with advanced actions. I don't know if it's because it belongs to a question slide in a pool. Anyone know if this is possible and how this can be done?

    There is nothing wrong with your English - no need to apologize :-)

    I just tested it. Seems to work for me to create a tip action that will show my custom legend if I set a variable of personalized tour. Rather than xplain, I have attached a word with some screen shots doc and an example of file CPTX. File is Captivate 5, but even should work in 5.5

    Steve

  • Using fields show/hide with drop-down lists

    The following code stores and displays the data in a field of view based on what the user selects and it works fine, but I'm not sure how to incorporate additional content in this context.

    Form1. #subform [0]. indPaymentOptions::change - (JavaScript, client)

    Switch - test for the "selected" text, if so, display "display" text

    switch (this.boundItem (xfa.event.newText)) {}

    case "donation/Contribution:

    var display = "Restricted use, usually the student fundraisers. May be a political entity neither does not endorse a political goal. Raised funds donations require a copy of the filing. < span style =------"color: #FF0000;" make-style: italic; ------"> must be attributed to Unassigned funds and senior officer of the authority." </span > ';

    XmlToShow = XmlStart + screen + XmlEnd;

    xfa.resolveNode ("form1. #subform. Display_Field_Pay_Types'). value.exData.loadXML (XmlToShow, true);

    taxReportable.rawValue = 'Y ';

    AccountCodesDynamic.rawValue = "001285;

    break;

    case "Membership":

    var display = 'membership sponsored University must be directly related to the responsibilities of the proposed Member University. Get institutional investors rather that individual memberships to allow the participation of several or another employed. Membership must use a UCSC address for administrative audit. « ;

    XmlToShow = XmlStart + screen + XmlEnd;

    xfa.resolveNode ("form1. #subform. Display_Field_Pay_Types'). value.exData.loadXML (XmlToShow, true);

    taxReportable.rawValue = 'Y ';

    AccountCodesDynamic.rawValue = "001200, \n001210;

    break;

    by default:

    VendPaymentOptions.rawValue = "Please select an option from the drop-down menu"Select type"above."

    taxReportable.rawValue = "";

    break;

    }

    I'm going to show a hidden field, once one of the items in drop-down list is selected with an if statement then. I tried to put the code below in the code above, but it does not work. I am familiar with livescript event management system, so I'm not too sure where the if then statement must be submitted. Should it be set in the * click the section? Or the initialze section? If someone could shine some light on what to do here it would be great.

    If (xfa.resolveNode("form1.#subform.indPaymentOptions").rawValue == 1) {}

    xfa.resolveNode("form1.#subform.textfield1").presence = "visible";

    }

    else {}

    xfa.resolveNode("form1.#subform.textfield1").presence = 'hidden ';

    }

    My example display only text. When you view the drop down from the window of the object, click the link tab. If specify the item values is checked, then boundItem will return what is in the value column during the passage of what is in the text column. If you have added an additional element in the list without adding an item of value, maybe that's your problem. In my example, if you check the box, it will be 1, 2, 3 in the value column. If you then in the code, you have added the this.boundItem part, case sections will have to be changed from 'TextField1' to '1' and the same for the 2 and 3.

  • Use a check box for hide/show (toggle) another field

    I have a form I created in Adobe Acrobat X.  The form will be used ultimately interface of data entry on iPads.  I need to keep the very simple form, but there are a lot of technical information, that users may need help filling out the forms.  I wish I could have a button, checkbox, or another object allows the user to view additional information.

    I played to establish links to documents is attached, using the article tool and finally try to use a checkbox control to control the property visible and hidden in a text field.  Admittedly, I'm a horrible programmer so I need assistance to swallow.

    My box is called: GMR1_1_Details_Select

    The text field is called: GMR1_1_Details

    I have tried this and that with JavaScript in the Actions tab and tab calculate and fail.

    Can anyone solve this puzzle for me?  I want this code in my form:

    so when the checkbox named "GMR1_1_Details_Select" is checked, my text box field ("GMR1_1_Details") is visible.  If the user disables the box, it might be hidden.  By default, the text box must be hidden and the box must be unchecked.

    If GMR1_1_Details_Select = yes

    Then GMR1_1_Details = visible

    on the other

    GMR1_1_Details = hidden

    I tried the codes similar to:

    If (event.target.value! = "On") This.GetField ("GMR1_1_Details"). Display = display.hidden;

    and any other code that is similar to:

    Var GMR1_1 = this.getField ("GMR1_1_Details");

    If(GMR1_1==="Yes");

    {

    1. This.GetField ("Text10"). Display = display.hidden;

    }

    on the other

    {

    1. This.GetField ("Text10"). Display = display.visible;

    }

    In both cases I get nothing.  I realized that I have at least 2 problems:

    (1) I don't know how to write code and,

    (2) I don't know where to put it.

    Please and thank you

    OK, I read your original question in more detail and there are other approaches that work. The additional amount of information you're talking about, at the top end? A paragraph of text, a page, several pages?

    A simple popup dialog box code is as simple as:

    Script mouse upward to a button

    App.Alert ({CMSG: "it's the first line.\r\rThis is the third line, which follows two returns cart.", cType: 0, nIcon: 3 '' '});

    Rather than an action to read the article, use an action of type "Go to a page view" If you want to use this approach.

    I would use a button for those two things, using the MouseUp event.

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

Maybe you are looking for

  • Problem

    I have iOS 10.0.1 on HPI 6s I can't aces app store. How to fix this?

  • The missing menu bar icons

    I had to do a reload of Yosemite and found now that my menu bar on tight now lack the icons that I've had it. I still have the time and the wifi icon but none of the others. How can I fix this? With the help of an iMac. Hughie

  • Automatic detection of G257HLBIDX of Acer problems...

    Hello I had the G257HLBIDX monitor mount there. I love very strong monitor. But... The problem I have is that whenever I restart my computer, the monitor will start to turn channels to find my computer. D sub-> DVI-> HDMI until she reached the connec

  • Design WLC? -1 master to multiple WLC passant

    OK I'll try to be quick... Currently, we have 1 WLC controller 4402-50 (in our "non-critical" data center in the office).  This WLC control all points of access to 9 sites, all connected to the office (WLC) through links of qmoe from 10 to 50 MB. We

  • VMware vcenter converter standalone 6 fails to 98%

    Trying to convert a Dell physical server (2012) to a virtual machine using version 6 converter and it gets to 98% and fails with FAILED: could not find the system volume, reconfiguration is not possible.It does not delete the virtual machine after fa