Check box only visible when data is entered in two other fields

My form has a table in which one column's cells are check boxes. I would like the check boxes to be only visible when both the quantity and unit price cells are filled out.
If I use the following script to hide the checkbox, it becomes my Amount??? which is the column right next to it.
taxable.presence = "hidden";
I am putting the script in the initialize event of the table.

The initialize event only fires once the form is opend, not afterwards when the fields values are changed.
You need another event such as layoutReady.
this.presence = !Quantity.isNull && !UnitPrice.isNull ? "visible" : "hidden";

Similar Messages

  • Interactive form, selection of check boxes, only want option to click one

    I have an interactive form set up in Indesign CS6 and have muliple check boxes, I have them set to only appear when clicked, however our client would like it so that when one is clicked it won't let you click the others, so bascially is there are 10 check boxes, only allow you to click 1.
    Kind regards
    Mark

    I've never used ID's new form features, so  I don't know if yo can set that property for a checkbox directly in ID, but you should be able to to do this in Acrobat. As I recall, all the check boxes need to have the same control name.
    That said, the select-one-only behavior is usually associated with Radio Buttons, not checkboxes.

  • Check box showing double when PDF opened in Preview

    I'm setting up a simple check box functionality on a PDF my company sends out. I noticed the check boxes look strange when the PDF is opened up in Preview on Mac. Not sure about PC as we don't have one here. It appears to look fine in Acrobat but I believe a good portion of our clients will use Preview. What you see in the image below is the result when I make a check box and change the color to blue green. The black check mark over it comes out of nowhere. My temporary work-around is to make the check mark art invisible so just that crappy black line shows up instead, although I hate the way it looks.
    Any help is much appreciated, thanks!

    You should always include a link to the FREE Adobe Reader with advice that best results will be seen using it when you distribute a PDF.
    Of course you cannot control what others will use, but if you expect them to use Preview you need to dumb down the design accordingly.

  • Check Box functionally lost when visiblity is turned off then back on

    Please pardon my attempt to ask a coherent question for I am new to Oracle Forms!
    I have created a canvas using the layout wizard against an Oracle table. I needed to provide the means to select mulitple records for DELETION; so, I created a check box item beside the database items to allow the ability to select records to delete. I also allow the user to query this table in query mode against a couple of columns to help isolate records to be deleted. So far, I have gotten the expected functionality from the check box on the initial query of this form.
    Now, heres my problem!
    When I try to reduce the query result while in "ENTER_QUERY" (F7) mode, I intentionally make my check box item invisible. The thought being "I should not allow users opportunity select records for deletion while in the process of querying the table to fetch the records you will be deleting from!" Once I press F8 to execute the my query, I issue the following statements in my KEY-EXEQRY trigger:
    set_item_property( 'EFIS_EMAIL_QUEUE.SELECTTODELETE', VISIBLE, PROPERTY_TRUE );
    set_item_property( 'EFIS_EMAIL_QUEUE.SELECTTODELETE', ENABLED, PROPERTY_TRUE );
    My results are displayed along with the check box to select records for deletion!
    At thsi point, the functionally of the check box no longer works!
    I get a forms error "(FRM-40200) Field is protected against update."
    I look in the Property Palette under the Physical section and the Visible attribute is set to "Yes"!
    Can someone tell me why turning the visible attribute "OFF*" and then back "*ON*" caused the lost functionity?*
    What must I do to get this functionally back without abandoning this design premise?+
    Is there some other attribute settings I must reset in addition to the two set_item_property issued above?+
    Thanks in advance!
    Les

    Add to your code following statement
    set_item_property( 'EFIS_EMAIL_QUEUE.SELECTTODELETE', UPDATE_ALLOWED, PROPERTY_TRUE );
    and hopefully that should take care of your problem.

  • What is it called when a field box only generates when another field box has text entered?

    Hi:
    I am using LiveCycle Designer 8.0 and am in the process of creating a form.  I want to create a field that only will generate if a previous field has text in it.  Kinda like: if this is entered, then this will happen.  Any thoughts?

    Hi,
    There is a lot of potential for creating dynamic forms with LC. The help file in LC and the guides on the Adobe web site give a lot of direction.
    In your first field you can write javascript against an event, in this case the exit event is probably best:
    if (this.rawValue == "" || this.rawValue == null) // this is a test if the first field is empty
         textField2.presence = "invisible";
    else
         textField2.presence = "visible";
    When testing you use double "=="; when assigning values you use a single "=". TextField2 is there, just hidden from the user.
    Good luck,
    Niall

  • Check box hidden/visible

    Hi there...
    I have been reading a lot of posts about enabling/disabling check box and so far I have not found what I need to do.  It is a very simple action and I just can't figure out what to do:
    I have a check box and a text box.
    Initially, the text box is hidden (style"visibility"hiddent").
    UNTIL When the check box is checked, text box should appear to be filled in.
    Otherwise, text box stays hidden.
    I used the style attribute because "Disabling" the text box didn't work.  One can still type in something even if the check box was not filled in.
    I was wondering if this could happen on the client side?
    Please advise.
    Thanks,
    Karla

    This might help for a textarea
    http://www.w3schools.com/TAGS/att_textarea_readonly.asp
    For an input
    http://www.w3schools.com/TAGS/att_input_readonly.asp
    readonly is the attribute you are looking for I believe.
    Byron Mann
    [email protected]
    [email protected]
    Software Architect
    hosting.com | hostmysite.com
    http://www.hostmysite.com/?utm_source=bb

  • Creating a webpart that is only visible when an image link is clicked

    Hi, 
    Is it possible to make Webpart in Sharepoint 2010 only appear when a link or image is clicked?
    i have 5 image buttons on my site page and for one of them, when it is clicked, the user will be directed to the Contents webpart i have created. This webpart should only be visible when the image linked to it is clicked, otherwise it should be hidden. Is
    this possible?
    Any assistance is greatly appreciated.
    Thanks & Regards, Aarti

    That's easy using jquery. Refer to the following posts
    http://social.technet.microsoft.com/forums/sharepoint/en-US/c437ecc4-c757-483f-8175-f92860d184be/hideshow-webpart-data-on-buttonclick-using-jquery
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/219b388e-0979-46b4-9a46-f7e6449738b8/hide-and-show-a-list-view-webpart-by-clicking-on-a-link-in-the-same-webpart-page-in-sharepoint-2010?forum=sharepointgeneralprevious
    --Cheers

  • Add a custom check box only for Cont Acct Cat '02'

    Hello All,
    I have added a custom check box to the Contract Account Screen. Everything seems to be working fine except:
    I need the checkbox to be visible only for a particular category i.e. '02'. I have even tried the customizing transactions in CAWM where we can actually hide the elements but thats not working too. Can anybody please help me on this.
    Any kind of inputs will be much appreciated and rewarded.
    Please help.
    Regards,
    Rakesh

    Rakesh,
    Go to SPRO --->Financial Accounting ---> CARP ---> Basic Functions ---> Contract Accounts ---> Field Modifications ---> Configure Field Attributes for Contract Account Category
    Here u can define different contract account categories,then with field grouping tab (which is  on upper left corner ) , u can define view for different fields present.
    Hope this will help u..
    Regards,
    Shruti Singh

  • Was using flags in the split view applying flags to images regardless of selection.  Flag would appear under cursor.  Suddenly they now are only visible when and in the large window.  How do I get this capability back.  It is very useful.

    I have been using flags conveniently when using the split view flagfs would appear under the cursor in the filmstrip view.  Now they only are visible when a single image is selected and not in the film strip.  This very convenient feature has suddenly and unexplanedly been lost.  How do I get it back?
    Dick Koos

    How are your metadata settings? For me the flags are still showing. Perhaps you have disabled the flags for the Browser view. Edit your Metadata Presets for the Browser:
    Enable "Show Metadata" for the Browser and Viewer, and then click "Edit" and eanble the flag for all Metadata views.
    For the Browser you need to edit the "Grid View" settings, expanded and Basic:
    Regards
    Léonie

  • "Make this recurring" check box not visible on Mobile

    I have created and successfully used a Donation button for my 501c(3) business.It works great in browsers on laptop and desktop computers.However, the "Make this recurring" check box is not visible on IPhone, IPod, IPad, Android Pad, or Android phone. How can I enable recurring payments on mobile phones?The URL on these devices starts: https : // mobile . paypal . com / us / cgi-bin / webscr ? cmd=_express-checkout-mobile ... Thanks in advance

    Louisey,
    Welcome to the forums!!
    a few questions first...
    a, did your site work in MobileMe initially before you purchased your domain name?
    b, does it still work if you type in your MobileMe URL rather than the purchased domain name?

  • My search bar is only visible when in full screen

    How can I get it back when not in full screen?
    It's also not letting me move the screen away from the top of my computer screen.

    With DVD player open, have you check the menu bar > Window > Show/Hide Controller?

  • Need Help: I need a check box to auto fill a set value in separate text field.

    Hi, this is my first time with inserting scripts into a PDF Form.
    We have a form that requires the user to check a box regarding medical conditions they have (i.e. Asthma, Diabetes, Hypertension).  Later in the form, they have to type out the same condition into a text box. (I know stupid to double document, but it is required).  Is there a script that will auto fill the text box when they check the box?  For example, if they check asthma, the text box on a later page in the PDF will say "Asthma, controlled."  Is this possible?
    In addition, if they don't click Asthma, and do click Diabetes, could it add Diabetes to the first text box, but if they check both, it would add Asthma to box 1 and Diabetes to box 2?
    Any help would be GREATLY appreciated.
    I'm using Acrobat 9
    Thanks!

    Hi, I'm staring at the code trying to make it work for my needs, which are similar to Austin's.
    I have a 16-page form with 2,988 checkboxes in the entire document (a little over 200 in each page besides the first and last page). The last page contains a textbox labled Summary, and it should provide a summary of all the items checked in the document. Theoretically only one page will be populated at a time, so there will be no more than 200 checkboxes checked in the entire document.
    Is it possible to use the same code? And do I just put the code under the text in the script that reads:
    form1.SummaryPage.SummaryText::calculate - (JavaScript, client)
    The JS I am trying to get to work is the following from a post above.
    // Custom Calculate script
    (function () {
        var i, v, s = "";
        // Loop through the 2988 check boxes
        for (i = 1; i < 2989; i += 1) {
            // Get the value of the current checkbox
            v = getField("checkbox " + i).valueAsString;
            // Concatenate check box value to string if not deselected
            if (v !== "Off") s+= v + "\r";
        // Set this field value
        event.value = s;

  • Adding a check box to my page clears the value in a hidden field on page 0

    Hello, I hope that someone can assist me. I have a page that has multiple submit buttons on it. When I click a submit button the page refreshes to render the new content. I have a hidden field, and its region is set to one on page 0. Without any check boxes on my page, I can set a value in the hidden field, and it remains there even if I click on any submit buttons. If I put a check box on the page and then press a submit button, the value is cleared in the hidden element which is not desired. I did notice that in this case with the check box, if I refresh the browser the hidden field value is not cleared. Perhaps the page is being rendered differently after the submit because of the checkbox. Does anyone have any ideas of what is happening?

    That doesn't sound right. Adding a checkbox shouldn't have that effect. Please try to reproduce this on htmldb.oracle.com so we can take a look or post a screenshot of your relevant page components.

  • Check box or radio button to control image opacity and text field. javascript

    This is a little over head and skill set so I am reaching out to you fine people.
    I am using Adobe acrobat pro x
    I have radio buttons now but I can switch to check box if needed.
    What I need the Java script to do is...
    If Yes is checked then a text field labeled comments appears and an image labeled box changes the opacity to 100%.
    If No is checked then it does the opposite. Text field disappears and image goes to 0% opacity.

    This is the Adobe Reader forum.  You are more likely to receive a helpful answer if you ask in the appropriate Acrobat forum (e.g. Acrobat SDK).

  • Mail Dock icon only shows when Inbox has new mail, not other folders.

    Hi
    I've got Rules set up for Mail to move new mail to various folders on receipt, depending on the nature of the emails.
    However the Mail icon in the Dock only indicates when new messages are in the Inbox, not other new emails which might be in other folders waiting to be read.
    Is there some way to fix this so that it notifies me of all new emails?
    Any help would be greatly appreciated.
    Thanks
    Richard

    Are you running leopard?
    Under preferences on my mail (version 3.1.1 i think) then the 'general' tab there is an option "dock unread count" which you can set to inbox/none or all mailboxes.
    I don't remember this being an option under Tiger but it may be worth looking for if you're not on Leopard.
    Hope this helps

Maybe you are looking for

  • Iphone4s - iMessage, Call &amp; battery issues

    I cannont receive text or picture messages via imesssage every once in a while, it never appears to be an issue when i receive from OTHER phones on other networks. I am able to send the messages though. and this issue is not consistent. it happens ev

  • How to create a sequence in oracle forms6i

    Oracle forms 6i Hai All I am working in leave application entry so i need to create a sequence for giving a unique number for each entry Pls tell me the steps how to created and how to call the sequence from database Thanks in Advance Srikkanth.m

  • IBook G4 800MHz, Hard Drive dissapears

    Hello, I've been searching on these discussions boards for a while now but can't find any clues to what's going on. I just got my hands on an iBook G4 800Mhz who's owner explained how the Hard Drive just "died" one day and when he took it in to be lo

  • Help with a simple task

    Hi, I'm quite new to AS so this is actually quite simple but is something I've yet to figure out. My flash movie comprises of several sections, and all these can be accessed from the main menu. Right now, what I'm doing is to preload all the sections

  • Applecare privacy

    Just bought my first 24" iMac for personal use. My company has used macs and iMacs for the past 17 years and we have had little to no reason to ever use Applecare. I get a little paranoid though and wonder about what happens if I have some type of pr