Checkbox = true based on textbox

I am new to Adobe Live Cycle, my background is in SQL and Access.  I have a form in Adobe that is linked using a DSN to an Access dbf and it is working fine.  The end user clicks on a submit button and the data is then in the dbf.  The form is a Checklist that end users complete daily. 
I would like to streamline one part:  If the end user types into the comment txtbox I want the no checkbox to automatically be unchecked and the yes checkbox to be yes instead of having the end user choose yes (default is no).  Could anyone give me specific code? or solution?  (p.s. the company that I am working for wants both a yes checkbox and a no checkbox).  If there is no comment then I want the no checkbox to be checked which is default.
The form example:
     Safety Check            YES               NO                 comment
          machine 1      checkbox        checkbox                - types here (I want automatic feature to have yes =true, no=false)
          machine 2      checkbox        checkbox          
Hope I am explaining this well enough.....thanks

After I posted this message I kept reading different postings and decided to change my checkbox to a radio button to eliminate the posibility of both checkboxes being checked.
However, now I have another problem .  Only the yes radio button is connected to the database - however it is always true (1) even if it is not selected.  ? because they are part of the same radio button group? but I need them to be in the same group to allow for only one selection.
And I wish for the end user to not select yes or no (no being already default & checked) but only start typing in the comment section and then the button would change to yes.

Similar Messages

  • html:checkbox disabling based on a condition

    does anyone know how to disable the <html:checkbox ?? it should be disabled based on some condition
    thanks

    It is very unclear what you want. There is a disabled flag available to html:checkbox. You could do something like:
    <html:checkbox disabled="<%= somebooleanVar %>" ...and so on. What are you trying to do?
    Need Java help? Want to help people who do? Sit down with a cup of Java at the hotjoe forums.
    Sure they're new - come get them started!

  • Changing Checkbox options based on variables

    What I need to create is an area that has 5-8 check-boxes, but the text beside those check boxes will change based an option that is selected in a drop down menu elsewhere in the file.
    The reason I need to do this is due to lack of space and better work flow.
    Can anyone help with this or any other possible way to do it?
    I have used LiveCycle but not much coding.
    Thank you in advance.

    You could change the caption of the checkboxes by using javascript..
    on the CHANGE event of a drop down list, you could add script similar to:
    if (xfa.event.newText == "Yes") // (if yes is selected in the dropdown)
    xfa.resolveNode("CheckBox1.caption.value.#text").value = "Rooster"; // (change the check box caption to 'Rooster')
    else
    if (xfa.event.newText == "Maybe")
    xfa.resolveNode("CheckBox1.caption.value.#text").value = "Broccoli";
    P.S. Make sure you save the form as a dynamic form rather than static!

  • How to set field checkbox values based on another field

    I'm trying to provide the user with the ability to check one box "Check All" which would then set the check boxes for a section to the same value as shown in the example.  Anyone know how I can accomplish this?
    Thank you.
    Example
    General Category A     [  ] Check All
         [  ]  Item 1
         [  ]  Item 2
         [  ]  Item 3
         [  ]  Item 4
    If user selects "Check All", all the Items in the list for "General Category A" are then checked automatically.

    You can create a document level function to check a series of check fiels as long as they all have the same checked value.
    // document level function that can be used for many sections
    function CheckAll(aFields, sChecked) {
    // test to see Check All box for being checked
    // and if checked set to aFields to checked value
    // otherwise clear fields
    if(this.getField(event.target.name).value == 'Off') {
    // field unchecked
    this.resetForm(aFields); // clear the fields
    // end box not checked
    } else {
    // check all box has been checked
    // loop through the fields to check
    for (i = 0; i < aFields.length; i++) {
    // all fields are assumed to have a value of 'Yes' when selected
    var f = this.getField(aFields[i]); // get field for element i
    f.value = sChecked; // set to checked value
    } // end loop to check
    // end checked
    } // end unchecked
    } // end CheckAll function
    // end document level function
    You can then add a mouse up aciton for the check all check box:
    // mouse up action for check all check box
    // define array of check box fields to process
    var aSecFields = new Array('Item 1', 'Item 2', 'Item 3', 'Item 4');
    // call CheckAll function
    // passing the array list of field names and checked value
    CheckAll(aSecFields, 'Yes');
    or you can use 1 line of executable code:
    // mouse up action for check all check box
    // call CheckAll function
    // passing the array list of field names and checked value
    CheckAll(['Item 1', 'Item 2', 'Item 3', 'Item 4'], 'Yes');

  • Bind checked value of dynamically created checkboxes to node attruibutes

    This is the scenario:
    I need to Create n checkboxes(dynamically) based on the n elements present in a node. The values in the node are populated at runtime. i need to bind a boolean attribute in this node to the check boxes that are created.
    Any help would be highly appreciated.
    Regards,
    Immanuel

    Hi,
    Try the following:
    1. Create a node with 0..n cardinality with the following structure
    NodeElement
    Column1
    Column2
    Column3
    CheckBoxattribute(boolean)
    2. In the view, right-click on the root container>Apply Template>Table
    3. Select the NodeElement and set the CheckBoxAttribute UI as Checkbox
    In this way u can create a Table with checkbox that are loaded as many elements in the Node at run-time
    The checkbox value can be set / get using:
    wdContext().nodeNodeElement().getNodeElementAt(<selectedRow>).get/setCheckBoxattribute(true/false);
    Hope this helps you.
    Regards,
    Poojith MV

  • Adf checkbox

    Hi,
    I have popup which has a multi row table with a checkbox and 1 output textbox and 1 input textbox as below
    checkbox <1234> < empty >
    checkbox <2345> < empty >
    Need is when the checkbox(say in the first row) is checked the 1234 needs to be copied to the input text box
    when it is unchecked the input check box needs to be nulled.
    Any sample code please.
    Thanks

    Let me clarify
    When the check box is clicked my valuechangelistener works and invokes the below code ok.
    if(valueFlag.equalIgnoreCase("true")){
    inputTextBinding.setText("1234");
    The change I did in the above code is to read from inputputtext field in place of hardcoded value 1234.
    The field looks like
    <af:inputText value="#{viewScope.QtyTotal}" >
    How do I read this above value so that I can use it to set the inputTextBinding value please?
    Thanks

  • JSF jsValueChangeListener with checkbox

    Did anybody try to create using JavaServerFaces, a checkBox and a textBox, and when the checkBox is unchecked the textbox should disable immediatly?
    I've tried and it works fine in mozilla but in IE the checkbox doesn't disable immediatly, just after a second click on the page. Does anybody know what's wrong ?
    Thanks

    this is my code:
    <t:selectBooleanCheckbox disabled="#{someBean.disabled}" id="checkBoxId" onchange="this.form.submit()" value="#{someBean.checkValue}">
    <t:jsValueChangeListener for="myTextBox" expressionValue="if ($srcElem.checked) { $destElem.disabled=false } else {$destElem.disabled=true}"/>
    </t:selectBooleanCheckbox>
    <t:inputText id="myTextBox"
                   value="#{someBean.textBoxValue}"
                   size="3"
                   maxlength="3"
                   required="true">
    <f:validateLongRange minimum="0"/>
    </t:inputText>
    Can anyone try this scenario and check if it works in IE ?
    Thanks

  • CheckBox in search help restriction dialog.

    Hi Experts,
    I have created one search help with dialog value restrictions. Search help contains 6 fields.
    Out of which three fields has length one character(Data Element XFELD).
    As soon as user press on F4 on particular field, it will display pop-up window with restrictions and displayed 6 fields.
    I would like to show that fields(with Data Element as XFELD) as Check Box in search help restrictions pop-up window.
    Pls help... How can we do this.
    Thanks
    Vinod

    Hi,
    Kindly check the standard search help "F4TESTCHECKBOX".  Copy it and change the dialog type to 'Display with restrictions' . On execution,  you will notice that -
    i) On the restriction screen the checkbox is displayed as textbox .
    ii)  In list display , checkbox is displayed correctly .
    Follow Raymond's suggestion,
    You could define your own selection-screen, and display it in a search-help exit : if step = 'PRESEL', display your screen, modify selected values in table shlp-interface  and force next step as 'SELECT' to bypass standard selection-screen.
    Regards,
    DPM

  • Hide/Show Pages Based On Dropdown Selection

    Hello,
    This one is driving me crazy. In this form (attached) I have 3 checkboxes and based on what is checked, I want to hide the first page and navigate to the 1st checked box. It works for the Web Chat option, but all others do not. Also, on the next button from the Web Chat page, when I click next, I have an alert pop that should only show if Web Chat is the only selection chosen, but it shows no matter how many selections are made from the checkboxes.
    As always, any help is appreciated!

    Hello,
    That took care of the popup issue, but the navigation is still a problem. For some reason choosing any option from the checkboxes and any option from the Type of setup dropdown always brings me to either a blank page or the Web Chat page.
    Thanks for looking into this, hopefully you (or another member) can assist with this issue as well.

  • How to pass checkbox multiple value in URL as parameter?

    Hello,
    I have a checkbox in two page. The checkbox is based on a LOV and user can check more than one value at a time. The return value of the checkbox is like "ID1:ID2".
    I want to call another page with the same checkbox item and want to pass the checked value via the URL.
    This cause problem because checked value are separated with : that not work in URL.
    So, how can I pass checkbox multiple value in parameter via an URL?
    Thanks
    Jean

    Jean,
    Why pass it in a URL instead of just using what's in session state? On your second page, set the Source Type of the check box item to ITEM and enter the name of the check box item on the first page.
    Sergio

  • Checkbox activate/deactivate in alv grid report

    Hi All,
    I am using REUSE_ALV_GRID_DISPLAY fm to display output.In my output i having checkbox column based on values on internal table it will be checked and the checkbox column is editable.
    Now my requirement is if particular checkbox having values it should be in editable mode if not the checkbox should be non editable mode.
    For example the if 2 checkboxs having values that should be in editable mode remaining checkboxs should be in disable mode.

    suppose this is the case
    PARAMETERS:
                P_PRINT  AS CHECKBOX DEFAULT ' ', "PRINT IMMEDIATE
                P_NOSINF AS CHECKBOX DEFAULT 'X', "NO SELECTION INFO
                P_NOCOVE AS CHECKBOX DEFAULT ' ', "NO COVER PAGE
    then suppose u want to enable the next two checkboxes when first is checked then...
    type
    PARAMETERS:
                P_PRINT  AS CHECKBOX DEFAULT ' ', "PRINT IMMEDIATE
    if p_print = 'X'
    parameters:
    P_NOSINF AS CHECKBOX DEFAULT 'X', "NO SELECTION INFO
    P_NOCOVE AS CHECKBOX DEFAULT ' ', "NO COVER PAGE
    endif.
    regards,
    Ankur

  • Checkboxes that keep their value after a refresh

    Hi
    I am trying to work with Checkboxes in an HTML region which will make another region appear or disappear when they are checked or unchecked. As I understand it I need to submit the page to make regions appear or disappear - but when I do this by default the checkbox forgets its value.
    My checkbox is based on the static love: STATIC2:;Y which should make it ticked when the value is 'Y' and unticked when it is 'N'. I have set its default value to Y.
    I have read online about how to make a checkbox remember its value by putting a computation on it that will set the value of the checkbox to 'N' when it is null. Unfortunately when I refresh the page - if the checkbox is ticked then everything is fine (as it was before) - but if it is unticked then I suddenly get two checkboxes - both of which are ticked and one of which has an 'N' after it.
    Does anyone have any idea what I'm doing wrong? It's driving me mad trying to achieve something that that I'd expect to just work without any effort.
    I am using Apex 4.1.1.00.23
    Thanks
    Dan

    user5476823 wrote:
    HiWelcome to the forum: please read the FAQ and forum sticky threads (if you haven't done so already)), and update your forum profile with a real handle instead of "user5476823".
    When you have a problem you'll get a faster, more effective response by including as much relevant information as possible upfront. This should include:
    <li>Full APEX version
    <li>Full DB/version/edition/host OS
    <li>Web server architecture (EPG, OHS or APEX listener/host OS)
    <li>Browser(s) and version(s) used
    <li>Theme
    <li>Template(s)
    <li>Region/item type(s) (making particular distinction as to whether a "report" is a standard report, an interactive report, or in fact an "updateable report" (i.e. a tabular form)
    With APEX we're also fortunate to have a great resource in apex.oracle.com where we can reproduce and share problems. Reproducing things there is the best way to troubleshoot most issues, especially those relating to layout and visual formatting. If you expect a detailed answer then it's appropriate for you to take on a significant part of the effort by getting as far as possible with an example of the problem on apex.oracle.com before asking for assistance with specific issues, which we can then see at first hand.
    I am trying to work with Checkboxes in an HTML region which will make another region appear or disappear when they are checked or unchecked. As I understand it I need to submit the page to make regions appear or disappear - but when I do this by default the checkbox forgets its value.
    My checkbox is based on the static love: STATIC2:;Y which should make it ticked when the value is 'Y' and unticked when it is 'N'. I have set its default value to Y.
    I have read online about how to make a checkbox remember its value by putting a computation on it that will set the value of the checkbox to 'N' when it is null. Unfortunately when I refresh the page - if the checkbox is ticked then everything is fine (as it was before) - but if it is unticked then I suddenly get two checkboxes - both of which are ticked and one of which has an 'N' after it.
    Does anyone have any idea what I'm doing wrong? It's driving me mad trying to achieve something that that I'd expect to just work without any effort.Don't set the checkbox value to "N". Leave the default as null, and check that the value is "Y" or null as necessary.
    APEX checkboxes probably don't work in the way you expect: a checkbox is displayed for each value in the LOV. With the checkbox item LOV Display Extra Values property set to Yes, extra values that are not included in the LOV definition&mdash;like your "N" default&mdash;will be displayed as additional checkboxes.
    See +{message:id=10738376}+ for a similar situation.

  • Expression error using checkbox control

    I'm trying, for the first time, to create an expression that controls a value depending on whether or not a keyed checkbox is on.  This is my code.
    x = comp("overlay grain").layer("frame").transform.position;
    If (effect("Frame Stutter")("Checkbox") == true)
        value = x + wiggle(25,5);
    Else
        value = value + wiggle(25,5);
    When I run this, I get the error:
    After Effects warning: Function If is undefined
    Expression disabled.
    Error occurred at line 3.
    Comp: 'main'
    Layer: 1 ('Date Stamp')
    Property: 'Position'
    I have been racking my brain over what the problem is.  I have used If/Else statements in the past successfully and I know that there is just something very simple that I am missing.  I have also tried using "== 1" instead of "== true", but I got the same result.
    Help please.

    I see a few issues here. if and else should not be capitalized. Compare your checkbox to 1, not true. The result of wiggle already includes the value of the property, so value + wiggle() probably won't give you what you expect.
    Dan

  • After selecting the value from the list box, want to disable checkbox

    hi guru,
    After selecting the value from the list box, want to disable checkbox and custom control textbox(container) in module pool.
    so please help me on this.
    thanx,
    man

    in PBO,
    loop at screen.
      if screen-name = your textbox's name.
        screen-input = 0.
        modify screen.
      endif.
    endloop.

  • Two types of Checkbox

    Hi,
    Could someone please tell me the difference between the following.
    1.Check boxes as an item you can choose as a Display As.
    2.Check boxes constructed using HTMLDB_ITEM.CHECKBOX
    I can get the HTMLDB_ITEM.CHECKBOX to work but am having much trouble finding any information on how to use the item display as check box.
    Cheers
    Ben

    Hello Ben,
    Check boxes as an item can be used in a form, just like any other APEX item - http://download-uk.oracle.com/docs/cd/B32472_01/doc/appdev.300/b32471/bldapp.htm#sthref1031 . You can create static checkbox item, based on a static LOV, or you can create a dynamic checkbox item, based on a query. The returned value of this item is a colon delimited string of all the checked values. The following will give you some more information and examples on that - http://download-uk.oracle.com/docs/cd/B32472_01/doc/appdev.300/b32469/check_box.htm#CHDDFBFH .
    The APEX_ITEM API allows you to dynamically create APEX items as part of a report query.
    Regards,
    Arie.

Maybe you are looking for

  • How can I create a custom sized video in PP cs6?

    How can I create a custom sized video in PP cs6? I have read references to the "desktop" setting but cannot find it. I am trying to find the right settings for a 1080 px x 486 px video (which I need to qualify for hi res on Vimeo).  I need to output

  • Preloader problem - feel like an idiot

    I feel like a total idiot. I can't seem to get my preloader to work. Here's my code. What am I doing wrong? The problem is that myApp.swf loads successfully but the .onEnterFrame function thinks that loader_mc is 1 frame and 0 bytes long.

  • How can i get track of my stolen ipod touch 4?

    por favor necesito ayuda me robaron mi ipod y quisiera saber donde esta... si alguien me puede ayudar por favor!!!

  • Is it Possible to Remove a Library from iTunes 12?

    I am trying to fix a synching issue in which, long story short, iTunes 12, without my knowledge, forced a move of my Books library from My Documents folder to the iTunes Media folder, and now the synching of my books is all f***ed up.  So I would lik

  • After Effects CS3 Won't Open

    Hi,i need help for a little problem, i'll describe it step by step 1.When I open AE CS3, nothing happens, 2.if i click another times, it open after effects but no start-loading happens, and i can't use the option in the tool bar, 3.when i exit it wri