Form disabled textarea

I have created a form on a page and I have added some javascript to the page.
This script will change all the textareas from a row, where column x contains Yes, to disabled(user will in this case not be able to make changes for this record).
The script will do: document.getElementById(record1).disabled = true;
When I click on my submit button I always receive the error:
Error in mru internal routine: ORA-20001: Error in MRU: row= 1, ORA-01403: no data found, update "IT_KPI"."KPI_VALUE" set "ID" = :b1
Does anybody knows how to solve this or has an other way to get the same functionality?

I believe that in my form the arrays are stored in 'f0x'
I have picked some html code from one column to make it clear:
<tr><td headers="Measurement">Expenses X</td>
<td headers="DATA_TYPE_VALUE">
<label for="f02_0001" class="hideMe508">DATA_TYPE_VALUE</label>
<input type="TEXT" name="f02" size="15" maxlength="2000" value="10" id="f02_0001" /></td>
<td headers="LOCKED">
<label for="f03_0001" class="hideMe508">LOCKED</label>
<input type="TEXT" name="f03" size="15" maxlength="2000" value="Y" id="f03_0001" /></td>
<td headers="Period">Jan 2005
<input type="hidden" name="f01" value="42" />
<input type="HIDDEN" name="fcs" VALUE="0BA996D5E38FA131153D4945B0B7BAA0"></td>
</tr>
So when I run my JS the textarea of f02_0001 will be disabled,
the user will still see the textarea but he will not be able to make changes in this textarea.
I am not that kind of expert, but if the item f02_0001 is displayed, why should it not be present in the array?
And what is the trick to send the item anyway?

Similar Messages

  • JavaScript: Disabling textarea in report column cell  depending on flag

    Hi,
    I got an updateable report with the following behavior:
    - Depending on the value of column "PFT_PCODE" (1 or 2) the column gets a yellow or red background color.
    - If the value of column "PFT_PCODE" is 1 the next column (for remarks) gets a grey background color.
    - Some flags get values set.
    With the kind help of Andy (ATD) I got that running nicely. See also:
    Javascript - Referencing report column value and
    JavaScript: Disabling textarea in report column cell
    Now I want to add an additional feature:
    - If a flag ('P11_SPERR_FLAG') has the value '1' then the column (remarks) (var j) should be disabled.
    I tried the following (see additional code between asterisks) but it's not working. I feel a little stupid since I thought that shoud be an easy fix.
    Anyone has an idea what's wrong with the additional code? I find debugging quite difficult in JavaScript...
    ////////////////// PAGE HTM HEADER //////////////
    function hilite(f1) {
    var ft1 = document.getElementById('P11_FEHLERTYP1_FLAG');
    ft1.value = '0';
    var ft2 = document.getElementById('P11_FEHLERTYP2_FLAG');
    ft2.value = '0';
    *var sperrflag = document.getElementById('P11_SPERR_FLAG');*
    var h = 0;
    if (document.getElementById(f1)) {
         h = document.getElementById(f1);
         var t = h.parentNode;
         while (t.tagName != 'TABLE') {
              t = t.parentNode;
         var rows = t.rows;
         var k;
         var i;
         var j;
         var c;
         var headers = t.getElementsByTagName("TH");
         for (k = 0; k < headers.length; k++) {
              if (headers[k].id == f1) {
                   c = k;
         for (k = 1; k < rows.length; k++) {
              i = rows[k].cells[c];
              j = rows[k].cells[c+1].getElementsByTagName("TEXTAREA")[0];
              *if (sperrflag.value == '1') {*
    *               j.disabled = 'true';*
              if (i.innerHTML == '2') {
                   i.style.backgroundColor = 'yellow';
                   i.style.color = 'white';
                   i.style.fontWeight = 'bold';
                   i.style.fontSize = '18px';
                   ft2.value = '1';
              if (i.innerHTML == '1') {
                   i.style.backgroundColor = 'red';
                   i.style.color = 'white';
                   i.style.fontWeight = 'bold';
                   i.style.fontSize = '18px';
                   j.style.backgroundColor = 'grey';
                   ft1.value = '1';
                   //j.disabled = 'true'; //This would work.
    ////////////////// REGION FOOTER //////////////
    <script type="text/javascript">
    hilite('PFT_PCODE');
    </script>Thank you,
    Roger

    I found the solution, it had nothing to do with JavaScript:
    Item P11_SPERR_FLAG was of type Diplay as Text / Doesn't save state.
    Without saving state the JavaScript wouldn't work.
    Sorry to bother,
    Roger

  • Use checkbox to disable TextArea

    Hi guys, I am having problem with disabling textarea using checkbox.
    These are the components I have:
    - One checkbox (name it cb1)
    - Two Textarea (to be enabled when the checkbox is checked; named as TA1 and TA2)
    I declare these in the init:
    TA1.setDisabled(true);
    TA2.setDisabled(true);In the prerender:
    if(cb1.isChecked())
         TA1.setDisabled(false);
         TA2.setDisabled(false);
    else
         TA1.setDisabled(true);
         TA2.setDisabled(true);
    }I've put the cb1 to Auto-Submit on Change
    But the above codes don't work. The textareas remain disabled. What is wrong with my codes?
    Btw, if I were to use radio buttons, how can I do it?
    TIA

    Hmm... I've solved this problem. But I have another problem... How can I use javascript to set the textarea disable property to false when first loaded? I tried to use:
    <script>
    <![CDATA[
    document.getElementById('form1:TA1').disabled=true;
    ]]>
    </script>But this doesn't work. The textbox is still enabled.
    Message was edited by:
    Nimbu5

  • Disable Textarea resize in firefox - not website owner

    How do I stop Firefox from resizing Textarea? I'm not the website owner and deal with a lot of websites with these form so editing the HTML is not an option.
    Is there a setting in about:config or an add-on to disable this for some/all websites?

    See:
    *https://developer.mozilla.org/en/CSS/resize
    Add code to the userContent.css file.
    *http://kb.mozillazine.org/userContent.css
    The customization files userChrome.css (interface) and userContent.css (websites) are located in the chrome folder in the user profile folder.
    *http://kb.mozillazine.org/Editing_configuration
    *https://developer.mozilla.org/en/CSS/@-moz-document
    <pre><nowiki>textarea.example {
    resize: none; /* disables resizability */
    } </nowiki></pre>
    <pre><nowiki>@-moz-document domain(support.mozilla.org) {
    textarea.example {
    resize: none; /* disables resizability */
    } </nowiki></pre>

  • How to make a fieldelements in a form , disabled.

    We have multiple field elements within formcontainers in a form.
    I want to disable all the field elements within the form to be disabled on click of a button.
    I tried.
    sap.ui.core().getElementById("FormID").setenabled(false);  This didnt work.
    neither sap.ui.core().getElementById("FormContainerID").setenabled(false);
    Kindly let me know how can we disable the elements through either form or formContainer.

    You have made a typo, instead of 'core()' use 'getCore()'.
    However, a better approach would be to bind a model property to the control's enabled property, and set that model property on the click of your button.
    all controls that will have their enabled property bound to this model property will reflect the change, and it saves you from writing dozens of lines of xxx.setEnabled(false)

  • JavaScript: Disabling textarea in report column cell

    Hi,
    Andi (ATD) helped me with formatting report columns, coloring them depending on a value. See:
    Javascript - Referencing report column value
    Now I want to add a feature:
    If the value is '1' then disable the textarea in the next column, otherwise not. The function is:
    function hilite(f1)
    var h = document.getElementById(f1);
    var t = h.parentNode;
    while (t.tagName != 'TABLE')
      t = t.parentNode;
    var rows = t.rows;
    var k;
    var i;
    var j;
    var c;
    var headers = t.getElementsByTagName("TH");
    // var textarea = t.getElementsByTagName("textarea");
    for (k = 0; k < headers.length; k++)
      if (headers[k].id == f1)
        c = k;
    for (k = 1; k < rows.length; k++)
      i = rows[k].cells[c];
      j = rows[k].cells[c+1];
      if (i.innerHTML == '2')
        i.style.backgroundColor = 'yellow';
        i.style.color = 'white';
        i.style.fontWeight = 'bold';
        i.style.fontSize = '18px';
      if (i.innerHTML == '1')
        i.style.backgroundColor = 'red';
        i.style.color = 'white';
        i.style.fontWeight = 'bold';
        i.style.fontSize = '18px';
    //  j.style.backgroundColor = 'green';   // testing purpose; colors background green but not textarea
        j.style.visibility = 'hidden';               // works fine but ugly
    //  j.disabled = 'true';                        // nothing happens
    //  j.firstChild.disabled = 'true';           // does not work
    //  j.textarea.disabled = 'true';           // does not work
    }See the 'j' object: I can make the whole cell disappear but it looks ugly. Examining it with firebug I was thinking I must use sth. like firstChild or textarea, but it does not work. I find it still quite tricky to manipulate tables in Apex...
    Could someone help with this?
    Thanks a lot,
    Roger

    Hi Roger,
    You're sort of nearly there!
    The next cell to the right of the one you are testing will contain a TEXTAREA object. Your j variable can get to this using something like:
    j = rows[k].cells[c+1].getElementsByTagName("TEXTAREA")[0];The issue with using the visibility method that you have used will then disappear as you've applied it to the whole TD object, so all borders will go - applying this to the new j will only hide the textarea object instead.
    Andy

  • Adobe interactive form : Disabled menu item

    Hi experts,
    we recenlty satred working in Adobe iteractive form in SAP. and we are facing folllowing issues
    1)submenu item is disable (submenu item from "Layout" and "Table" is not enable)
    any solution?

    Hi Sandy,
    Thanks for Replying
    yes i am in display mode but same thing happens when i am in edit mode..
    sorry i can not go in edit mode right now as another developer is working on it.
    SAP Net weaver version - 7.31 with EHP 6.0
    ALD version :  ES2 9.0
    See below Screenshot from other adobe form
    Message was edited by: Zubin ..

  • Customers form: Disabling Clear button in DFF block

    I need to disable the CLEAR button on the DFF block which opens up in Receivables Customer form. Please let me know is it possible to do it, using Form personalization or CUSTOM.pll. Please let me know how to do it.

    It's not possible with the personalization, you have to do with custom.pll.
    Srini C

  • Form disabling command

    Hello, how can a "command" that was appended to a Form be removed or at least disabled?
    I can disable it "manually" with a boolean variable that is checked on the command listener function but I wanted to actually disable the button or remove it for some time.
    Thanks.

    use Form's removeCommand method

  • Oracle Forms-- Disabling Custom Code

    Hello.
    When disabling custom code in Oracle Forms (EBS R12, using Help -> Diagnostics -> Custom Code -> Off), are calls to CUSTOM.pll the only thing that is disabled, or are there other things that are "Custom Code" too?
    Thanks in advance.

    explains most of the logic behind the customizations in the below Note:
    Customization in Oracle Applications [ID 743490.1]

  • Report with TextArea field v PopUp Form with TextArea Item CRLF Question

    I have a report which has a column in it which contains lines terminted with CRLF i.e chr(10||chr(13).
    When this column is displayed as a textarea type it presents the data correctly i.e
    Signal received to CONTINUE command section SLT_PRT.xml sequence 1
    Signal received to CONTINUE command section SLT_PRT.xml sequence 2
    Signal received to CONTINUE command section SLT_PRT.xml sequence 3
    Signal received to CONTINUE command section SLT_PRT.xml sequence 4
    When i take the same data and pass it into a html area with a textarea field in it - it displays it incorrectly ie
    Signal received to CONTINUE command section SLT_PRT.xml sequence 1Signal received to CONTINUE command section SLT_PRT.xml sequence 2Signal received to CONTINUE command section SLT_PRT.xml sequence 3Signal received to CONTINUE command section LT_PRT.xml sequence 4
    Also % signs dont show up correctly.
    What might be the problem is it encoding?
    Simon
    Edited by: SimonT2 on Nov 11, 2009 2:48 PM
    Edited by: SimonT2 on Nov 11, 2009 3:43 PM

    No that didnt work now i get:-
    <BR><BR>Signal received to CONTINUE command section ALL_TNB_PRT.xml sequence 1<BR><BR>Signal received to CONTINUE command section ALL_TNB_PRT.xml sequence 2<BR><BR>Signal received to CONTINUE command section ALL_TNB_PRT.xml sequence 3<BR><BR>Signal received to CONTINUE command section ALL_TNB_PRT.xml sequence 4<BR><BR>Signal received to CONTINUE command section ALL_TNB_PRT.xml sequence 5<BR><BR>Signal received to CONTINUE command section ALL_TNB_PRT.xml sequence 6<BR><BR>Signal received to CONTINUE command section ALL_TNB_PRT.xml sequence 7<BR><BR>Signal received to CONTINUE command section ALL_TNB_PRT.xml sequence 8<BR><BR>Signal received to CONTINUE command section ALL_TNB_PRT.xml sequence 9<BR><BR>Signal received to CONTINUE command section ALL_TNB_PRT.xml sequence 10<BR><BR>Signal received to CONTINUE command section ALL_TNB_PRT.xml sequence 11<BR><BR>Signal received to CONTINUE command section ALL_TNB_PRT.xml sequence 12<BR><BR>Signal received to CONTINUE command section ALL_TNB_PRT.xml sequence 13<BR><BR>100Edited by: SimonT2 on Nov 11, 2009 8:51 PM
    Edited by: SimonT2 on Nov 11, 2009 8:51 PM

  • Apex 3.2 Textarea disable but scrollbar enable

    Hello,
    There is a requirement in my project for disabling textarea of apex field but enabling scrollbar for that field.
    Please let me know how to do it?
    Pramila

    Use the <tt>readonly</tt> attribute. Set the HTML Form Element Attributes property for the textarea to
    readonly="readonly"(Please update your forum profile with a better handle than "814338".)

  • How to disable the form after i click a link in WAD

    Hi All,
    I have a WAD template where there are a lot of hyperlinks and buttons present to enable the control to go to same or different templates. What I want to achieve is once i click on a hyperlink, the whole form should get disabled so that I may not be able to click on any other link until the control goes to a different page. I tried using document.form.disabled = true which though gives the look and feel of the form as disabled after click of the link but still doesn't stop me to click other links.
    I also tried document.form.getElementById("Id").disabled = true for the links but still the same thing happens.
    The above commands work fine if i use them outside WAD, but don't seem to work in WAD.
    Any thoughts?
    Gaurav Jasoria

    Hi Friends,
    This is really urgent.Can you please suggest me a way out.
    Regards,
    Gaurav Jasoria

  • How do you disable a textarea using jquery in SharePoint 2010

    How do I write a script to disable a comment field called Space Available Comments?
    I tried using the following scripts and none of theme work.  I am still able to delete or type in texts in the textarea.
    $("textarea[title*='Space']").attr("disabled","disabled");
    $("textarea[name*='ctl10']").prop("disabled","disabled");
    $('textarea').attr('readonly','true');
    $('textarea[id="long id number here']").attr("disabled","false");
    Thank you very much.
    Here is source:
    <tr>
    <td nowrap="true" valign="top" width="190px" class="ms-formlabel"><h3 class="ms-standardheader">
    <nobr>Space Available Comments</nobr>
    </h3></td>
    <td valign="top" class="ms-formbody">
    <!-- FieldName="Space Available Comments"
    FieldInternalName="Space_x0020_Available_x0020_Comm"
    FieldType="SPFieldNote"
    -->
    <span dir="none">
    <span dir="ltr">
    <textarea name="ctl00$m$g_f9da713c_cff1_48d5_9943_08f4ac2b35b9$ctl00$ctl05$ctl10$ctl00$ctl00$ctl04$ctl00$ctl00$TextField" rows="6" cols="20" id="ctl00_m_g_f9da713c_cff1_48d5_9943_08f4ac2b35b9_ctl00_ctl05_ctl10_ctl00_ctl00_ctl04_ctl00_ctl00_TextField" title="Space Available Comments" class="ms-long" dir="none">&lt;DIV class=ms-rtestate-field&gt;Space Available Comments field value.&lt;/DIV&gt;</textarea>
    <input name="ctl00$m$g_f9da713c_cff1_48d5_9943_08f4ac2b35b9$ctl00$ctl05$ctl10$ctl00$ctl00$ctl04$ctl00$ctl00$TextField_spSave" type="HIDDEN" id="ctl00_m_g_f9da713c_cff1_48d5_9943_08f4ac2b35b9_ctl00_ctl05_ctl10_ctl00_ctl00_ctl04_ctl00_ctl00_TextField_spSave" />
    </span>
    </td>
    </tr>

    I tried both of your solutions above. It would not disabled.  Your solutions "should" work. But, I don't get it why it does not work. I even tried several other variations of scripts to target the textarea including the solution
    below from Robin. See his answers below.
    Do you think that it might have help you more to see the problem if I had provided the script below <input name...> between </span> and </td>? 
    I don't want to confuse you. But, the ultimate purpose is when a user selected the Space Available? to a "YES" option, the Space Avaiable Comments textarea should be disabled. My script to disable the radio button is working. I just need to find
    a solution how to disable the textarea and I running out of ideas. Please help if you can.
    Here is the script:
    <script type="text/javascript">// <![CDATA[
    if (browseris.ie5up && (browseris.win32 || browseris.win64bit) && !IsAccessibilityFeatureEnabled()){RTE_ConvertTextAreaToRichEdit("ctl00_m_g_f9da713c_cff1_48d5_9943_08f4ac2b35b9_ctl00_ctl05_ctl10_ctl00_ctl00_ctl04_ctl00_ctl00_TextField", true, false, "", "1033", null, true, null, null, null,"Compatible", "\u002fpmb_eTracking_Tool",null,null,null,null);}else{document.write("&#160;<br /><span class=\"ms-formdescription\"><a href='javascript:HelpWindowKey(\"nsrichtext\")'>Click for help about adding basic HTML formatting.</a></span>&#160;<br />");};//]]>
    </script></span>
    Thank you very much for your immediate response.

  • Disable SAVE-AS functionality in Adobe Form

    Hi all,
    There is a requirement from the client that we need to disable to SAVE-AS functionality.
    Is there any way in which we can achieve this?
    Regards,
    Kunjal

    Kunjal,
    You may check these threads:-
    Hide the Save button in tool bar in pdf form
    Disable Save Button in the Interactive PDF form
    Chintan

Maybe you are looking for

  • Sony HDR-HC7 and FCP 6.0.1

    I have been having trouble capturing any 1080i footage. This is a new camera that I was recommended (since I was having trouble with the Canon HV20) and going through EASY SETUP I can't seem to capture. SD comes through fine but anything I do in the

  • JFrame background image

    Hi all , i need to put a background image into a JFrame, currently i am seeting a label with an icon and adding it to the jframe but it pusshes all my other components across. how do i get it to be displayed behind the other components? final JFrame

  • Macbook Pro keeps disabling iphone 3G. why?

    Everytime i try to sync my iPhone into my Macbook Pro, a box appears that says "Because a USB device was drawing too much power from your computer, one or more of your USB devices have been disabled." And i tried it when my laptop is on full battery

  • How do I produce the highest quality DVD from MOV exported from iMovie

    What is the best method in iDVD11 for burning to DVD, an imported HD 720p or HD 1080p MOV file exported from iMovie11? I have successfully exported a 5.5GB (66min) HD 720p MOV file from iMovie. I then used iDVD to import this MOV file and burn it to

  • [svn] 4673: Adding preview images to the theme directories.

    Revision: 4673 Author: [email protected] Date: 2009-01-26 12:46:51 -0800 (Mon, 26 Jan 2009) Log Message: Adding preview images to the theme directories. QE Notes: None Doc Notes: None Bugs: SDK-17735, SDK-16429 Reviewer: None Ticket Links: http://bug