Check box selection based on name inside a field

I have a fillable PDF form
the form has 2 check box selections.  M  or F   (male or female)
i can get a field to populate with M or F or Male or Female but how can I get a check box to select M or F based on
what comes into a field ?

You can use the text-field's custom validation script to edit the check-box, for example:
if (event.value=="Male") this.getField("CheckBoxMale").checkThisBox(0, true);
else if (event.value=="Female") this.getField("CheckBoxFemale").checkThisBox(0, true);

Similar Messages

  • Check box selection

    Hi
    I have a problem with check box selection.I query from the database and based on the output from the query i prepopulate the check box with a tick mark.But when the user goes again and deselects one of the check box that was ticked and submits the form , it also includes the unchecked box.the following is the code I have.
    <%
    if (itemStr == 00 ){
    %>
    <td align="center">
    <input type="checkbox" name="build">
    </td>
    <% }
    else{ %>
    <td align="center">
    <input type="checkbox" name="build1" checked >
    </td>
    Then in my form I do
    String[] ar = request.getParameterValues("build1");
    how do i ensure if the user unselects from build1 , it doesnt add that item.
    Help Needed
    Arn

    Notice that this line
    request.getParameterValues("build1");
    is getting the value of the check box. The "checked" attribute is not the value, just the attribute.
    Oddly enough, I just wrote some code to do this today.
    First, add this little javascript method to your page.
    <SCRIPT language="JavaScript"> <!--  //Hide contents from older browsers
    function setHiddenTagFromCheckbox(checkbox, element) {
      if(checkbox.checked) {
        element.value="yes";  
      else {
        element.value="no";  
    // End hiding the contents -->
    </SCRIPT> 2) Add a hidden input field for each checkbox field.
    <input type="HIDDEN" name="prin2signhidden" value = "no">3) Add an onclick handler for the check box
    <input type=checkbox name="prin2sign" onclick="setHiddenTagFromCheckbox(document.formname.prin2sign, document.formname.prin2signhidden)">In your servlet check the value of prin2signhidden instead of the checkbox input.
    The forum is doing odd things to this source code. Any place you see a > you should actually have a "greater than" sign.

  • Passing column values to another tab if check box selected in that row

    Hi
    I have the following requirement.
    I have a table that gets populated by a web service. Have added one more field to it which is a check box. Th requirement is that I need to pass the values of column (say id) from each row which has it's check box selected, as input parameters to a web service in another tab.
    example: table has fileds id, name, address,checkbox. If there are 5 rows and the user select 1 and 2 then I need the ids of 1 and 2 to be passed to another tab.
    Is this possible  ........
    Thanks

    Hi
    I just don't want to make multiple selection but pass the values of a column from the selected rows to another tab to be used as input parameters to a web service.
    I want to know how to pass the values(of one filed) of the selected rows across tabs/switches.
    Thanks

  • I have a new MacBook Pro with OS10.8.2 and cannot get Contacts to print a list of addresses with pictures showing.  There is a check box selecting "picture" which has been checked - but no picture.  This worked fine on OS10.7.5.  Problem??

    I have a new MacBook Pro with OS10.8.2 and cannot get Contacts to print a list of addresses with pictures showing.  There is a check box selecting "picture" which has been checked - but no picture.  This worked fine on OS10.7.5.  Problem??

    First, back up all data immediately, as your boot drive might be failing.
    There are a few other possible causes of generalized slow performance that you can rule out easily.
    Reset the System Management Controller.
    If you have many image or video files on the Desktop with preview icons, move them to another folder.
    If applicable, uncheck all boxes in the iCloud preference pane.
    Disconnect all non-essential wired peripherals and remove aftermarket expansion cards, if any.
    Check your keychains in Keychain Access for excessively duplicated items.
    If you have more than one user account, you must be logged in as an administrator to carry out this step.
    Launch the Console application in the same way you launched Activity Monitor. Make sure the title of the Console window is All Messages. If it isn't, select All Messages from the SYSTEM LOG QUERIES menu on the left. If you don't see that menu, select
    View ▹ Show Log List
    from the menu bar.
    Select the 50 or so most recent entries in the log. Copy them to the Clipboard (command-C). Paste into a reply to this message (command-V). You're looking for entries at the end of the log, not at the beginning.
    When posting a log extract, be selective. Don't post more than is requested.
    Please do not indiscriminately dump thousands of lines from the log into this discussion.
    Important: Some personal information, such as your name, may appear in the log. Anonymize before posting. That should be easy to do if your extract is not too long.

  • Check Box Selection Questions

    Is it possible to make a selection with a check box, and then have it select a predetermined selection from a drop down menu?
    e.g. If I select "Los Angeles" from a series of office locations in my check boxes, can it automatically select an address from a drop down selection for that Los Angeles Office?
    Thanks for any help in advance
    Aaron

    Notice that this line
    request.getParameterValues("build1");
    is getting the value of the check box. The "checked" attribute is not the value, just the attribute.
    Oddly enough, I just wrote some code to do this today.
    First, add this little javascript method to your page.
    <SCRIPT language="JavaScript"> <!--  //Hide contents from older browsers
    function setHiddenTagFromCheckbox(checkbox, element) {
      if(checkbox.checked) {
        element.value="yes";  
      else {
        element.value="no";  
    // End hiding the contents -->
    </SCRIPT> 2) Add a hidden input field for each checkbox field.
    <input type="HIDDEN" name="prin2signhidden" value = "no">3) Add an onclick handler for the check box
    <input type=checkbox name="prin2sign" onclick="setHiddenTagFromCheckbox(document.formname.prin2sign, document.formname.prin2signhidden)">In your servlet check the value of prin2signhidden instead of the checkbox input.
    The forum is doing odd things to this source code. Any place you see a > you should actually have a "greater than" sign.

  • Help with creating a form, I want to add a check box to enable me to unlock certain fields and deselect the block again

    Help with creating a form, I want to add a check box to enable me to unlock certain fields and deselect the block again

    Look to the right under "More Like This". Your issue has been discussed many many times. The error you are seeing is because you do not have enough free "contiguous" space on your hard drive. Read the other threads that address this issue to find how to solve the issue.
    Or, put "The disk cannot be partitioned because some files cannot be moved" into the search box at the upper right of this page.

  • Need to change the LOV field based on checked box selection in OAF page

    Dear ALL,
    I have a requirement as below:
    I have a custom OAF page having a lov  field which is mandatory, a check box and a two text fields.
    So based on LOV value selection i am defaulting two text field value automatically.
    So my requirement is when user selects the check box automatically the LOV field should be non mandatory and user can insert in values to the lov field and text field and submit it.
    SO basically based on check box field selection i need to make the lov field in such a way it should accept all the values what user enters instead of check the query added in VO behind the LOV.
    Please suggest me some pointers to achieve this requirement.
    Thanks
    Deb

    hi,
    in PFR use:
    if ("checkevent".equals(pageContext.getParameter(EVENT_PARAM))) 
                     HashMap hashMap = new HashMap();
                     String checkboxval=pageContext.getParameter("item2");
                  hashMap.put("checkboxval",checkboxval);
                    pageContext.setForwardURLToCurrentPage(hashMap ,
                    true, // retain the AM
                    OAWebBeanConstants.ADD_BREAD_CRUMB_NO,
                    OAWebBeanConstants.IGNORE_MESSAGES);
    and in PR use:
    if((pageContext.getParameter("checkboxval'))!=null)
    OAMessageLovInputBean lovInputBean=(OAMessageLovInputBean)webBean.findIndexedChildRecursive("item3");
          lovInputBean.setRequired("false");
    try it
    Regards
    Mahesh

  • Populate drop-down lists based on check box selections

    Hi. I'm creating a Service Work Order form. At the top, there are several check boxes for the various services we provide, under that , more text fields, drop downs and checkboxes to elaborate on those services, and then at the bottom, fields for pricing.
    I'd like the top half of the form to drive the pricing info that is available or that auto-populates at the bottom.
    Ideally, I'd like to make the pricing specific based on 3 things:
    the service checkbox
    the client
    and the details on that service
    For example:
    If Client XYZ wants Service A that includes subservice B
    $123 should show up on the bottom half in the field for that service
    If Client ABC wants Service B that includes subservice C
    $456 should show up on the bottom half in the field for that service
    Does that make sense?
    I've been unable to get code to work in either the calculate and pre-Open options
    I first tried calculate and used this code (which was just a guess on my part)
    if (CheckBox1 == 1) and if (CheckBox9 == 1) then
    $.rawValue = 50
    elseif
    (CheckBox2 == 1) and if (CheckBox9 == 1) then
    $.rawValue = 50
    elseif
    (CheckBox5 == 1) and if (CheckBox9 == 1) then
    $.rawValue = 55
    elseif
    (CheckBox6 == 1) and if (CheckBox9 == 1) then
    $.rawValue = 55
    elseif
    (CheckBox7 == 1) and if (CheckBox9 == 1) then
    $.rawValue = 50
    elseif
    (CheckBox8 == 1) and if (CheckBox9 == 1) then
    $.rawValue = 50
    else
    $.rawValue = 0
    endif
    That didn't do anything but give me an error about "and"
    So I tried putting code in pre-Open:
    // clear the dropdown displayed value and items
    this.rawValue = null;
    this.clearItems();
    // repopulate the items based on the checkboxes
    if(offshore.rawValue == 1)
        this.addItem("$40.00", "offshore_001");
        this.addItem("$45.00", "offshore_002");
        this.addItem("$50.00", "offshore_003");
    if(inland.rawValue == 1)
        this.addItem("$40.00", "inland_001");
        this.addItem("$45.00", "inland_002");
        this.addItem("$50.00", "inland_003");
    I got no error but nothing populated and the drop-down was, in effect, disabled.
    Any help would be appreciated.
    Thanks!

    Gavin,
    This sounds like an issue that is not related to JHeadstart. To simplify the test case, you could create a simple drag-and-drop ADF application without JHeadstart and see if the same problem occurs there.
    Your suggestion that it is related to the where clause seems likely. Please find out what kind of object USER_ENV is, and how it is initialized. Maybe this initialization is skipped when bouncing the application.
    What happens if you perform the query in SQL*Plus, without doing anything about the USER_ENV?
    Maybe you should ask the Oracle Applications discussion forum...
    kind regards,
    Sandra Muller
    JHeadstart Team
    Oracle Consulting

  • How do  we check the check box items based on the databse fields.

    Hi All,
    I have a requirement like as mentioned below#
    1. I have a combox box whcih i will be populated from database.
    2. I have created two check box as "Stategric " and "Non Stategric".
    3. Now when i select the combox box condition i need to select the check box items.
    4. But the problem is i wil be knowing weather it is a stategric or Non stategirc based on the database column.
    5. How do i need to map the database point of view and correlacte with javascript pont of view.
    6. Do we need to write any Application process to achieve this task and who we can do that.
    Thanks,
    Anoo..

    Hi VC,
    As per my understanding the code should be placed between --.
    Based on this i have placed the code
    function setCheckbox(pThis, pItem){
    alert('inside');
        var l_code = '';
        // Get checkbox name
        rName = document.getElementsById('P1_ENG_BAU').firstChild.name;
    alert("The value is"+rName);
        // Fire AJAX
        var get = new htmldb_Get(null,html_GetElement('pFlowId').value,'APPLICATION_PROCESS=CHECKBOX_LIST',0);
        get.add('F120_COMPANY',pThis.value);
        gReturn = get.get('XML');
        if (gReturn) {
          var values = gReturn.getElementsByTagName('value');
          var messages = gReturn.getElementsByTagName('message');
          // Build the checkbox
          for (i=0; i<values.length; i++) {
            var rValue = values.firstChild.nodeValue;
    var rMessage = messages[i].firstChild.nodeValue;
    l_code+='<input id='+P1_ENG_BAU+'_'+i+' type=checkbox value='+rValue+' name='+rName+'>';
    l_code+='<label for='+P1_ENG_BAU+'_'+i+'>'+rMessage+'</label>
    document.getElementsById('P1_ENG_BAU').innerHTML = l_code;
    Correct me if iam understanding is wrong.
    Thanks,
    Anoo..
    Edited by: Anoo on May 31, 2012 11:04 AM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Help requested: How to pass the (check box) selected rows data to other scr

    Hi friends, Here is a situation where I have to pick only those records data which i select by checking the check boxes and carry on to next screen where I have to display them and do some processing on such selected rows of data. Can any one suggest me how to code this. Thanks in advance.

    Hi Subbarao,
    One way is to check if the field is selected by checking if the field value = 'X'.
    If it is a table control we will have to loop and find out which all records are selected..it is notable that the check box field will mostly be of single character and contain 'X' if it is checked and space if not checked
    Based on the structure where the check box is held we may have to implement various logic to retrieve whether the field is checked or not....for instance we can move data to another internal table for which the checkbox is checked and can retrieve it from the next screen
    Pls check,revert and reward if helpful
    Regards
    Byju

  • Acrobat 9 want to change check box selection to a Tick or a X

    I have created a pdf form (from word)
    I used the "form field recognition"
    Everything went ok but the check boxes when selected
    only left a black square dot.
    I would like a X or a Tick. I have read the help file below.
    but nathing I try will get it to work, I must be missing somthing.
    realy need help( step by step) preferably.
    TIA Tony
    ========================
    Set a status
    Select the comment in the Comments list, click the Set Status button , and choose an option.
    The review status appears in the comment along with the name of who set the review status. If another reviewer sets the review status for that comment, both reviewers names and review statuses appear in the Comments list.
    To view a comments history of changes, right-click the note icon, markup, or title bar of a pop-up note, and then choose Properties. Click the Review History tab.
    Flag comments with a check mark
    In the Comments list, click the check box next to a comment so that the check mark icon appears.
    ==============================

    FWIW, the help text you posted does not apply to check box form fields, but rather Comments.
    What you need to do is change the Check Box Style, which can be set to Check, Circle, Cross, Diamond, Square, or Star.
    To do so manually, open the DPF, select "Forms > Add or Edit Fields", select one or more of the check boxes, right-click and select Properties, go to the Options tab, and select the style you want from the Check Box Style drop-down.
    George

  • How to Auto-populate TextField in Acrobat x with a value determined by user check box selection?

    I have a group of 3 Check Boxes for user to select their Work Shift:  The check boxes are set up to be mutually exclusive (same name: "EMP_Shift", different Export Values: Day, Evening, Night).
    Form Field properties name:      EMP_Shift (for all 3 check boxes)
    Acrobat edit panel field names:  EMP_Shift#0, EMPShift#1, EMPShift#2
    Export Values:                         Day, Evening, Night (chose these only because they are descriptive)
    I need to Auto-populate a Text Field named EMP_WorkShift with "Day" if EMP_Shift#0 is selected, "Evening" if EMPShift#1 is selected, or "Night" if EMPShift#2 is selected.
    Is there a script I can use to accomplish this in Acrobat Pro X.

    The simplest is to set up the text field to be calculated using the following custom Calculate script:
    // Get the value of the check box
    var v = getField("EMP_Shift").value;
    // Set this field value
    event.value = v !== "Off" ? v : "";
    You'd normally set the text field to be read-only, but if you want the user to be able to edit the text field, you can instead use the following script in the Mouse Up event of each check box:
    // Get the value of the check box
    var v = event.target.value;
    // Set the value of the text field
    getField("EMP_Workshift").value = v !== "Off" ? v : "";

  • Hundreds of fields to be populated on the basis of various check box selection

    Hi,
    I have a requirement I have to display 593 fields on the basis of user's checkbox selection. There are 8 checkboxes and multiple checkbox combinations which is not mentioned. I need to consider all possible selection and populate values accordingly. If user selects any 2 or 3 or 7 checkboxes, I need to display the inner join of (respective tables)of  all the selected checkboxes. please suggest me the best possible way that will take least amount of time. Do i need to populated all 593 fields multiple times as per the user selection? please help

    Hi..
    You need to create structures only during the Run time.
    Based upon the check box, we need to create a dynamic internal table or structures at run time.
    Runtime Type Services (RTTS) - ABAP Development - SCN Wiki
    SAP Cafe Corner!: Advanced ABAP Programming
    Please check these link. Still if you have any issues. Please let me know.
    SKR

  • Check box selection in IP WEB

    Hello everyone
    I am in IP with WEB front end.
    Have an analysis item which I need to run a planning function on that chages a charateristic field which is a status. The user needs to be able to select a subset of rows on which the planning function will be executed.
    Ideally a check box on the row would allow the user to select multiple lines and then execute the planning function changing the status.
    Can someone point me in the right direction?
    Thanks

    Your only option to enable functions to run on selected rows is to find some way to filter the query on those rows. If you cannot find any way to do that you can do a workaround which I have done recently:
    1 - Get a dummy key-figure
    2 - Instruct your users to fill that key figure with the value "1" for the lines they want to process.
    3 - The function (must be a FOX ou Exit) will validade if the user has filled the keyfigure with the value 1 and process that line. If the user didn't fill the keyfigure the function does nothing on that line.
    I know this isn't a perfect solution but it was the best way I could think of. If someone finds a better way I'll be interested too!

  • Check box Select All

    Hi all,
    I have created a Report with
    select EMP_no,
    EMP_name,
    Sal,
    apex_item.checkbox(2,EMP_no) CHK
    from emp
    Order by 1
    where I want have the Select All check box on th etop of the CHK Column for that i used
    <input type="checkbox" onclick="$f_CheckFirstColumn(this)" /> as Heading of the Column
    so when i clicked on Heading Column Chk BOX all chk box in that column selected but if UN chk on one of the Chk box in the Report the TOp heading CHk box has to Be unchk but its happenig wats the Solution for that?
    Regards
    798545
    Edited by: 798545 on Oct 1, 2010 6:35 AM
    Edited by: 798545 on Oct 1, 2010 6:35 AM

    Hi all,
    I have created a Report with
    select EMP_no,
    EMP_name,
    Sal,
    apex_item.checkbox(2,EMP_no) CHK
    from emp
    Order by 1
    where I want have the Select All check box on th etop of the CHK Column for that i used
    <input type="checkbox" onclick="$f_CheckFirstColumn(this)" /> as Heading of the Column
    so when i clicked on Heading Column Chk BOX all chk box in that column selected but if UN chk on one of the Chk box in the Report the TOp heading CHk box has to Be unchk but its happenig wats the Solution for that?
    Regards
    798545
    Edited by: 798545 on Oct 1, 2010 8:28 AM

Maybe you are looking for

  • Total is not getting displayed in the ALV output.

    Hi, Total is not getting displayed in the ALV output. I m using :REUSE_ALV_BLOCK_LIST_APPEND & REUSE_ALV_BLOCK_LIST_DISPLAY Are  there any issues with it as the same settings are working fine with REUSE_ALV_LIST_DISPLAY source code: DATA: layout TYPE

  • How can I copy my mail folder from my macbook to sync it to my mac air?

    I have a Macbook (black) and a Macair (silver). I use the black one daily, but want to use the silver one when I travel (dead light, etc). I am struggling to figure out how to update the email folder from the black on to the silver. In the past I hav

  • How to load a java file into Oracle?

    Hello, I have some problem in loading a java file into Oracle 8i. I used "loadjava -user <userName/Password> -resolve <javaClassName>" command. JAVA Version used JDK 1.5 When calling this class file from a trigger gives this error ORA-29541: class AN

  • Make frame freeze problem

    Two problems I have.... 1st problem...when I make frame freeze, the filters disappear. How do I keep those clips with filters stay look same. Some clips are fine...no problem. But other clips when freeze, filters gone. 2nd problem...I decide to use Q

  • Update to 7.7 or 8.0 doesn't show up in available upgrades

    Hi all As far as i like to upgrade my four S370 Websecurity appliances running on version 7.5.2-303 to Version 8.0 i couldn't see any available upgrades on the list. Before that, I could do/see every update on version 7.5.xy but no further images fro