Home > Default > Disabling user form fields in Jsp..

Disabling user form fields in Jsp..

November 30Hits:0
Advertisement
Hi I wrote a function to disable form fields for a resource.
function disable(element){
    if(element != undefined){
        element.disabled = true;
        element.className="Fieldsdisabled";
        element.value="";
when I call this method like  below , it disables textbox, textarea but not radio button field, Can anyone please help what mistake I am making.
var element1=document.resourceObjectForm.elements["resourceFormData.parentFormData['UD_NY_'City_NAME]"];
                  disable(element1);  { This is a text field which gets disabled}
SimilarlyTextarea, combo box gets disabled.
But when I use it to Disable a radio Button  having two values like X,Y:
                  var element3=document.resourceObjectForm.elements["UD_NY_CITY"];
                  disable(element3); (This is radio button field}
It is not disabling it.
Can anybody tell what is the mistake here?

Answers

Thanks for your reply!!!!!!!!!!
I know about resource object form i am just asking what is the use of user define field in resource object form. How can we use it. Like when we create any user defined field in under User form those fields display on create user form but when we create any user defined field in resource object from those are not displayed in form.
If anyone has used or worked on user defined fields in Resource Object or resource object form; please give me an overview over the same.
Regards
Alabhya Goel

Read other 5 answers

Tags:

Related Articles

  • Disabling user form fields in Jsp..November 30

    Hi I wrote a function to disable form fields for a resource. function disable(element){     if(element != undefined){         element.disabled = true;         element.className="Fieldsdisabled";         element.value=""; when I call th

  • Hiding Label field in JSP dynPageNovember 30

    Hi all, I am having an issue in Hiding/disabling  label field in JSP Dynpage application Works fine: <hbj:label  id="label_Input_US_Taxpayer_ID" text="<%= USTaxpayerID %>" required="FALSE" design="LABEL" la

  • Disabling the Qty field for Input for Sub items in Sales Order and DeliveryOctober 11

    Hi.. I have a requirement, where by we need to disable the qty field vbap-kwmeng for input for sub items of the BOM. I am planning to use the user exit USEREXIT_FIELD_MODIFICATION...in the include MV45AFZZ for sales orders. But i need to disable the

  • BADI/user exit for me22n - disable/grey out field quantity (MEPO1211-MENGE)October 11

    Dear all SAP gurus, When changing PO (ME22N), I need to disable (grey out) the quantity field on item (MEPO1211-MENGE), when all scheduled quantity is already received (EKET-MENGE = EKET-WEMNG). Have tried using LMEIGICJI and Handle_event method in C

  • Automatically populate fields in jsp documents based on other fieldsOctober 11

    hello guys. I have a jsp document that has the following <af:inputText value="#{bindings.SourceDocumentId.inputValue}" label="#{bindings.SourceDocumentId.label}" required="#{bindings.SourceDocumentId.mandatory}" columns=&q

  • In the component overview screen of CO01 I want  to disable all  the field in  screen of table control.I want to make it as output screen only.October 11

    Hi all   In the component overview screen of CO01 I want  to disable all  the field in  screen of table control.I want to make it as output screen only. Thanks & Regards, Rajib.Isn't that just exactly what transaction CO02 does? CO01 is for creating

  • How to disable the text field in File upload element?October 11

    Hi, How can we disable the text field in the "File upload" UI element so that the user won't be able to type the file path there, but he will still be able to browse the file using the Browse button? Regards PraveenHi Praveen, This is not possib

  • How to enable/disable the input fields based on the data entered/user action in the web dynpro abap?October 11

    How to enable/disable the input fields based on the data entered in the web dynpro application abap?  If the user enters data in one input field then only the next input field should be enabled else it should be in disabled state. Please guide.Hi, Tr

  • Disabling single Screen fieldNovember 30

    Hi Friends, Plz help me how to disable single Screen field in Module pool. I have a scenario where One of the field is drop down box,in that options if i select 1 option the next Input/outputfield and Group of radio buttons(2buttons) should be disabl

  • Disabled input date fieldNovember 30

    Dear Techies, i am using BSP with page flow logic. I have a date field, my requirment is i have to mandate the usage of date field only through the calander help which is provided by the input field, it should be disabled by the keyboard entry only f

Copyright (C) 2019 wisumpire.com, All Rights Reserved. webmaster#wisumpire.com 14 q. 1.814 s.