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.

Similar Messages

  • Why my JSP page can't get the value of a hidden field

    Hi, I got an interesting question here.
    I use req.getParameter() method to get a hidden field in Servlet, it works just fine.
    However, when I use the JSP to catch the value of that hidden field, JSP just can't, but if I change the type from hidden to text, it works fine again.
    the code is as follows:
    there are two jsp pages:game.jsp and GameMonitor.jsp.
    In game page:
    ============================================================
    <FORM action=GameMonitor.jsp method=post
    webbot-action="--WEBBOT-SELF--">Display the names of all the players currently
    connected to the server       <INPUT tabIndex=1 type=submit value=Lookup name=B1>
    <INPUT TYPE=hidden,value=1 name=p1>
    <P></P></FORM>
    ===========================================================
    I want GameMonitor.jsp to catch the value of hidden field "p1" by calling request.getParameter()
    the code catching it in the GameMonitor.jsp is:
    ============================================================
    String option = request.getParameter("p1");
              out.println("option=["+option+"]");
              try{
                   if(option.equals("1")){
    ===========================================================
    supurisingly, the result is option=[], which means it didn't catch the value of the p1 submitted by POST method.
    Does anybody here can tell what's wrong in the code?

    Thank you so much, I also found this error, which makes JSP not able to catch the hidden field, however, if I change it to text type, even the comma exists, it still works. pretty interesting!
    >
    <INPUT TYPE=hidden,value=1 name=p1>Modify the above lline and write like this....
    <INPUT TYPE="hidden" name="p1" value="1">
    And ensure that you're submitting the form data.
    Though nothing much has been changed, just try whether
    these help!!!
    fun_one

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

  • Setting the value of a hidden field in a Visual Web jsf page

    Hey All,
    I am new to jsf and need some help with the following. I have written a method in the java portion of the jsf page that will get the selection(s) from a listbox and return them as a string. I need to assign the value of that string to a hidden field in the jsp portion of the page, so that I can pass the string as a parameter to a servlet. I have tried the following code in the "button_action", in the java portion of the jsf page, to assign the value of the string, returned from method, to the hidden field:
    hiddenField.setValue(string);
    This is not working. Any and all help on this matter is greatly appreciated.
    Thanks in advance.

    Here is the tag for the hidden field when the "hidden field" component is added from the pallette, I addded the "value" and "id". The name of the class is ReportStandard, which extends the AbstractPageBean.
    <webuijsf:hiddenField binding="#{ReportStandard.utilSelHF}" id="utilSelHF" value="#{ReportStandard.utilParams}"/>This is how I am calling the hidden field in the servlet:
    utils = request.getParameter("form1:utilSelHF_field");Here is the code for the button_action:
    public String runReport_button_action() {
           this.utilParams = get_utilSelection();
           return "sRptrslts";
    }

  • How to clear the values present in SAP memory.

    Hi,
    i am building a module pool program in that  im using subscreen which is designed as 'selection-screen 0500 as subscreen.'
      when we validate the selection screen elements, if it come acrosses any error condition it disables every field in theselection-screen enabling the error field(error value is still present). this works fine here.
      but i  need to clear the values present in that field.to retain the values im using memory ids.
    solution required immediately.
    Thanks,
    Nagaraju.

    Hi,
    Use FREE MEMORY.
    FREE MEMORY deletes the entire ABAP memory including all the data that was exported with EXPORT TO MEMORY ID key.
    If helpful pl reward.
    Cheers...

  • Since updating to Firefox 3.6.15, I can no longer print coupons from SmartSource. The error message is that Java is not detected. The check box is longer showing in the Options/Content of this version of Firefox, so I can not enable it.

    # Question
    Since updating to Firefox 3.6.15, I can no longer print coupons from SmartSource. The error message is that Java is not detected. The check box is longer showing in the Options/Content of this version of Firefox, so I can not enable it.

    Same PC as I used to post the question. When I go to the "plug in check" page, it shows I am up to date and it is not disabled.
    Java(TM) Platform SE 6 U24
    Next Generation Java Plug-in 1.6.0_24 for Mozilla browsers 1.6.0.24

  • Is there a way to automatically align and make same size of check boxes/ radio-buttons like in the image below?

    I create PDF forms on daily basis for multiple people around but still, I create a table in Word and then manually convert it to PDF. I'm using Acrobat X and then I manually create radio buttons or check boxes in each cell of the table so aligning those buttons or check-boxes in the same line is a problem. I know there would be some solution to this but can anyone guide me to that? Also, making the same size of the radio-buttons of check boxes likewise ? ? ?
    Please see the image above and advise how to align them in the same line and how to make them same size using Acrobat X?
    Your help appreciated.

    You should create these fields using the Place Multiple Fields command, so that they are aligned properly and all the same size. Read about it here:
    http://help.adobe.com/en_US/acrobat/X/pro/using/WS8C2DDC1C-C174-4ad1-893F-B14A1C0289B4.htm l
    Read how to align and distribute fields here:
    http://help.adobe.com/en_US/acrobat/X/pro/using/WS6D2D2BFC-6F69-4a8b-BDE6-8043D7EE240D.htm l

  • How can I take check box in particular cell of the table in smartforms??

    Hi experts,
       pls tell me how can I take check box in particular cell of the table in smartforms??
    It is not interactive form.
    I hv taken small windows as check boxes.but i think it is not a proper solution....give me another solution...

    Hi,
    first create text for a particular cell.
    In that we have a  text editor  in that text editor we have symbols in include menu.
    whatever the symboll u want to put to ur cell . just assign it.
    please check it. if it helpful reward points.
    regards,
    satish.

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

  • I need to get the value of a text field that is located in another page JSP

    I need to get the value of a text field that is located in another page JSP. How do I do that?

    Well you see, I have a page at angelfire.com, which
    does not support JSP. I want to call a script located
    at mycgisever and then, when pressing a link on the
    former page, the JSP page is loaded, and the script
    get the value from the text field on the OTHER page.
    Is this possible?I know nothing about cgi. But that should not prevent me from understanding what can and cannot be done, assuming cgi is sort of comparable with jsps.
    I'm unable to understand your description clearly. Try to explain it better. Give precise steps that you intend to follow and I should be able to help you further.
    So you have a page1.
    You hit submit from page1.
    That goes to the cgiserver.
    From the cgiserver, programmatically load up the jsp.
    search this for the text field.
    Display it on your page2.
    Is that what you are trying to do?
    BTW, won't be able to help you with cgi scripting at all. Can help with Java and Jsp.

  • I want to clear the values for the controls

    Hi all,
            After Adding Process, i want to clear the values for the controls in the form.
    Any one help me.

    If you use 2005, you can use the Formdata Event and catch the FORM_DATA_ADD event... In there you can clear the data

  • How to Refresh The Page When The Value of selectinputData Changes

    Hi;
    I have a select input date component and I want to refresh the page when the value of selectinputdate changes. What is the way to do it?
    Also what is the way to do the same thing with choosedate component?
    Thank you very much...

    Hi Turhan,
    You may want to read about the Partial Page Refresh (PPR) capabilities in ADF Faces. You can make the selectInputDate's partialSubmit property "true" and then cause the specific components you wish refreshed have their partialTriggers property set to the ID of the selectInputDate.
    Hope this helps,
    John

  • Adding a check box to OTL Time Card Page in Time Card Matrix

    Hi,
    My requirement is: A check box should be placed on each timecard row on the left hand side
    I used hxczzhxclayt0082.ldt to make some changes to the Time Card matrix
    Can I add a check box using the same .ldt file
    Please Help
    Its Urgent

    Hi Meher,
    Thank You for your reply
    I did some research in Metalink
    I found a White Paper for OTL Time Card Configuration in Metalink
    White Paper says: Attribute components in the timecard layout can be modified via the configuration LDTs
    I tried to add a text box using LDT configuration, It works
    But I need a syntax of How to create a check box
    Please Help
    Thank You
    Santosh

  • Adding a check box control for each row of data in a DataModel

    Hi all,
    I need to add a checkbox control for each row of data on a DataModel object.
    I have a "commandButton" at the bottom of DataModel, and whenever someone checks some of the rows on that list of rows,
    I need to get the selected dataModel(fragment of the list) in my backing bean.
    How do I achieve this functionality in JSF?
    Thanks,
    Meghasyam.

    Hi all,
    I need to add a checkbox control for each row of data
    on a DataModel object.
    I have a "commandButton" at the bottom of DataModel,
    and whenever someone checks some of the rows on that
    list of rows,
    I need to get the selected dataModel(fragment of the
    list) in my backing bean.
    How do I achieve this functionality in JSF?
    Thanks,
    Meghasyam.You'll want to have a wrapper class as suggested above, which has a "selected" boolean in it. Then use the "binding" attribute of the h:selectBooleanCheckbox component to bind the checkbox to that property... Make the property public and specify the properties exact name in the binding... bindings do not append "get" to the EL.
    Here is an example of what your table might look like... This code would display the list of names with a checkbox to the left of each name... When the check box is selected, the "selected" property of that wrapper class is set to true or false as needed. Then when the form is submitted, and you are inside your actionListener or action method call, you can look through your collection of wrapper classes asking each one if it was selected or not... Then do whatever you want with them... In this example, replace "myBackingBean" with the name of your backing bean, and "names" with the name of the method in your backing bean which returns the collection of wrapper classes... create a flag "public boolean selected" or similar in your wrapper class..
    <h:dataTable id="namestable"
    value="#{myBackingBean.names}"
    var="aName">
    <h:column>
    <h:selectBooleanCheckbox binding="#{aName.selected}"/>
    <h:outputText value="#{aName.nameText}"/>
    </h:column>
    </h:dataTable>
    Let me know if that isn't clear enough and I'll see if I can find a better way to explain it...
    -Garrett

  • Adding a check box in MM01 transcation screen i am not abe see the checkbox

    HI experts,
    I added some checkbox's in mm01 transcation and configured the screen program and number in OMT3B the problem is i am not able see the checkbox's but i can see the labels for the check box in the screen when i am executing the mm02 transcation.
    urgent requirement.

    Hi Santosh,
    When you are importing from data dictionary , please try the following
    (1)in screen painter once you click the import from dictionary
    (a) select the field you want as checkbox
    (b) you can see if you scroll sideways an option like
         Radiobutton/checkbox etc for the same field
    (c) Choose the checkbox option
    (d) use the "Tick" on the table control
    (e) Drag and drop to your screen
    (2) Activate your screen
    (3) Run the transaction again
    Please let me know if it solves the problem
    Regards
    Byju

Maybe you are looking for

  • How to classify iphone 4 and 4S

    Is there any different on outlook between iphone 4 and 4S?

  • Unable to unlock bootloader.

    I have an Xperia tablet Z, I've checked the service menu and confirmed that the bootloader unlock allowed value is "Yes". I've requested and received the unlock key, and following the instructions on http://unlockbootloader.sonymobile.com/instruction

  • When will the Note 4 get the Lollipop update?

    I am excited about getting the lollipop update but when will we get it for the Note 4??  I hear in January then I hear late 2015.

  • How to start BI

    <Moderator Message: Please read the rules of engagement before posting> hi friends, i am new to this business intelligence, please tell me how to start. if any guides/materials with you, please forward the same. <points offer removed by moderator> th

  • Is there a problem with iOS 7.0 .4?

    I have three iPads one iPad running 7.0 .4 and 3 running 7.0 .3. Airplay does not work on the one running 7.0.4, it works on the other 3.  Is there a problem with airplay on 7.0 .4? I am using an Apple TV two running 5.2. Thanks for your help.