Disabling user form fields in Jsp..

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?

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

Similar Messages

  • How to disable certain form fields from a calculation with a check mark fields.

    How to disable certain form fields from a calculation with a check mark fields.
    In Canada we have to taxes
    I create a form that calculate them to a total
    I need to be able to turn off any of those to taxes to participate to the calculation and their visibile field should become 0
    I was thinking using a checkbox (when checkbox is on (Yes) the tax is calculated, Not ticked (Off) the tax is not calculated and the visible field should show 0 or nothing....
    I really need help on this one — I’m a complete newbie....
    Remark that the second tax is calculated on the sum of what the first tax add (first tax is pan-canadian tax (all provinces).
    The second tax is never use alone (Quebec only (on top of the Canadian one)
    Sometime for outside Canada sell - No tax at all is calculated....
    What should I do?

    I want to tank you to help, really appreciate —>
    This is the code and order... I just trow the checkbox in there (they have, so far, no purpose...)
    The code use is
    var a = this.getField("pricehorstx");
    event.value = Math.round (a.value * 7.25) / 100
    I guess -If the checkBox are check - The tax should be calculate — If “Off” the tax should be not calculated and PriceHST and /or PriceQST should show zero or be empty — The HST is always calculated in Canada, but the QST is added only in Quebec.
    I need to turn both to Zero for international sale.
    Message was edited by: Chacapamac

  • Tabbed User Form Fields

    Hi,
    I modified Tabbed User Form and Assigned it to an ADmin who is under Configurator, with limited capabilities. This admin has to be able to create an organization, so i assigned him Organization Admin capability. However, this assignment also shows up New Directory Junction in the drop down, which i do not need. I tried creating a new capability, but looks like nothing related to org is specified, where i can pick and choose.
    Is there any other way i can make this field "New Directory Junction" disappear only for this adminsitrator.
    Any help is appreciated.
    Thanks,

    Hi,
    What I understand from what you write here is you're trying to develop a "custom LDAP" form rather than a fields iterator. A good starting point to look at will be to check the /sample/ directory located in your idm instance. There are several sample forms namely "Dynamic Tabbed User Form" and "Dynamic Reosurce Form". The latter has a genereic field iterator logic (if the resource is not among the predefined resources it siply iterates schema fields. You can add your own logic in there. Also there are custom forms. There's one "LDAP User Form". All there forms are in XML format you shoud read them in using the lh config. then save in the repository.
    I hope it helps.
    Cheers,
    Kerem ERSOY

  • Submit disabled form field value?

    Is it possible to disable a form field, but still have it be included in the request object on the form handler page?
    For instance, I have a field that is required and the customer wants it disabled so it can't be changed until another checkbox is selected. When the form is submitted, the disabled field value isn't passed. Is there anyway around that, short of changing the customer requirement?
    Thanks,
    -Shadow

    You might try using the property "readOnly"
    It applies to textfields/textareas
    http://msdn.microsoft.com/workshop/author/dhtml/reference/properties/readonly_1.asp?frame=true
    This doesn't disable the component - it can still be selected.
    It just cannot be edited.
    http://www.w3.org/TR/1998/REC-html40-19980424/interact/forms.html#adef-readonly
    The readonly attribute specifies whether the control may be modified by the user.
    When set, the readonly attribute has the following effects on an element:
    Read-only elements receive focus but cannot be modified by the user.
    Read-only elements are included in tabbing navigation.
    Read-only elements may be successful.
    The following elements support the readonly attribute: INPUT and TEXTAREA. Cheers,
    evnafets

  • Custom Attribute in OIM user Form is not populated.

    Hi Friends,
    I am new to this Identity Manager Technology. I really all ur support.
    I am using oracle Identity Manager 9.1.0.2 version with JBoss server. The Target System is Sun One directory.
    1. I added the custom field street in Resource Object--Object Reconciliation Tab for Xellerate User and also for Iplanet Users objects.
    2. In Process definition, for iplanet user provisioning Process and Xellerate Users provisioning process, in Reconciliation Field Mappings. I mapped the street field to the UDF(street) and also for UD_iplanet_Street .
    3. When I run the task schedular for Iplanet User Recon, the string associated with the field in Iplanet is reflecting in resource profile of the user view/Edit. However, it is not populated in OIM User Form Field.
    Can you please help me in resolving the issue. I will provide any further needed information.
    Thanks and Regards,
    Manjula

    Thank you for your prompt reply.
    Yes. I tested it.. I can see the street field in the process form is populated with the string. However, I cannot see the same in the OIM User Profile Form. That Means, When I go to User folder in Admin and User Console, Manage Users and then select the user associated with the street field, the street field for the user is not populating and is empty without any string.
    Please clarify me.
    Thanks and Regards,
    Manjula.

  • Turn Off Form Field Calculations When Printing

    I am using Acrobat 9 Pro, and I will be the first to admit, I'm not all that familiar with creating functions or adding codes.  Through trial and error, I have created a form that allows my clients to fill out certain form fields, and automatically totals up their entire order.  If no values are entered and someone prints the document, the section that calculates the total still prints with a $0.00 value. I do have some clients who prefer to print the form and fill it out manually.  My question is, is there a way to disable the form fields, so that when it prints out, the area that would normally calculate the total, would just print blank?  And is it possible to add a button or check box within the PDF that would allow the form fields to be toggled on and off?
    Or another option, is it possible to have the document NOT print any values that are zero or less?
    Thanks!!!!

    You can do some of that other sutff, but if you're using one of the built-in calculation methods and just want to have the field not show a zero result, you can add the following custom validate JavaScript:
    // Custom Validate script
    if (+event.value === 0) event.value = "";

  • Gaps appear in IE 6 browser window for hidden fields in Create User form

    Hi,
    I need an urgent input on this one.
    I hid an OIM default attribute for users in the 'Create User' form by modifying clear_all_fields.js
    The field is hidden from the 'Create User' page fine!
    But if I open the page from Internet Explorer 6 it shows a gap in the place of the hidden field.
    For Mozilla 3.0.5 the gaps are not appearing.
    I tried removing these gaps by deleting the tags and the field in the clear_all_fields.js
    or, by reducing the dimension of the spacer.gif in GenerateCreateUserForm.jsp.
    But it reflected no change in the form look n feel.
    The requirement is to hide the fields and not remove them.
    Any suggestion as to what may be the way out?

    Thanks for the update Leonard. This would be an extremely useful plugin. I've been looking for it on http://labs.adobe.com/technologies/ under the plug-ins tab but have been unable to find it. It wasn't even there in the Pre-Release Programs. Is it located somewhere else or with a different name? Please let me know.
    Meanwhile, I've been trying to write my own VB script to get the button clicked. Here's what I've come up till now-
    FindText
    HiliteList.Add->CreateWordHilite->SetTextSelect->GetBoundingRect->PointToDevice
    The last function seems to be deprecated. Also there's nothing to connect the text highlighted by findtext with HiLiteList.Add. I guess
    I may have to use the JSO word search method.
    Any advice, as always, would be much appreciated.

  • User Defined Fields Form

    Hi Philipp,
    This is in reference to ur post Dated Jan13,2005. "Opening User Defined Fields Form via API".
    Is it possible for u to give a code snippet. what i'm unable to get is
    - Check if i can get a handle of the UDF-Form in the Mainform Activate-Event
    and
    -disable the close button
    Thanx in anticipation.
    Manu.

    Hi Manu,
    Here is a code snipet where looks for the related UDF form. The FormTypeNum´s value is the same as pVal.FormType property.
    Dim oUDFForm As SAPbouiCOM.Form
    Try
    oUDFForm = con.Forms.GetForm("-" + FormTypeNum.ToString.Trim, con.Forms.Item(FormUID).TypeCount)
    Catch ex As Exception
       con.ActivateMenuItem("6913")
       oUDFForm = con.Forms.GetForm("-" + FormTypeNum.ToString.Trim, con.Forms.Item(FormUID).TypeCount)
    End Try
    The other issue is solved in your other post.
    Regards,
    Ibai Peñ

  • How to make form field read only for users with certain permissions

    We need to make two form fields read only for users with certain permissions. Kindly guide me on how to do this in Infopath. I searched and there is an option to disable to the column, but no option to select user permissions. 
    Please give your suggestion on this. 
    thanks.

    Hi,
    See the link below:
    http://info.akgroup.com/blog-0/bid/69277/InfoPath-Restrict-visibility-to-users-in-a-SharePoint-Group
    Here you can add the fomatting action on the field to disable the field if those users belong to certain Sharepoint group (does not matter the permission levels though). Hope it helps.
    Regards, Kapil ***Please mark answer as Helpful or Answered after consideration***

  • Prevent closure of user defined field forms

    Hi.
    I need to prevent the closure of a user defined fields form while the parent form is opened. I can trap the et_FORM_UNLOAD before event but seems is too late to prevent the closure. Have anyone some idea about it?
    Ciao. Nicola

    Hi Martella,
    You need to do two things to achieve this.
    1. Make sure that when parent form is opened, the user defined field form is always opened at that same time.
    you can do that as follows
    If pVal.FormTypeEx = [Parent form type] And pVal.EventType = et_FORM_ACTIVATE Then
       Set oForm = SBO_Application.Forms.GetForm(-Val(pVal.FormTypeEx), pVal.FormTypeCount)
       If oForm Is Nothing Then
            If applic.Menus.Item("6913").Enabled = True And applic.Menus.Item("6913").Checked = False Then
               applic.Menus.Item("6913").Activate
            End If
       End If
    End If
    2. Disable the close button(X) on the user defined field form as follows:
    If pVal.FormTypeEx = [User defined form type] And pVal.EventType = et_FORM_LOAD And pVal.Before_Action = False Then
         Set oForm = SBO_Application.Forms.GetForm(pVal.FormTypeEx, pVal.FormTypeCount)
         Set oItem = oForm.Items.Item("4") ' Item 4 is close button
          oItem.Enabled = False
    End if
    Hope this helps.
    Satish.

  • How do you create a form that has user permissions per form field for different user?

    I need to create a form that is used by multi people but each user needs to fill out different fields within the form. I need the first user to make selections from a list and save it to send to another (the selection fields then need to be locked). Then the other user checks one of the selections made by the first user and saves the document to send back to the first user. Not sure if this is possible. I would like the first form field selections not to even show as a highlighted field to the other user (like just be more like a text field). I want the document to be able to be used more than once. The list selections will change and need to be sent to the other user at least once a month or more. Has anyone done this?

    There's no built-in way to do that, but it's probably doable using a custom-made script to hide and/or lock the fields.

  • How do I create a form field ONLY template in Acrobat 9 Pro that will let the user enter and print only the form field data on a pre-printed form?

    This template will be used to type in information that will then be printed on an agency's official, barcoded form loaded in a printer (instead of blank paper.)  Only the user-entered info should print on the pre-printed form.  Users will use Adobe Reader to complete their templates; they do not have Acrobat.  Thank you!

    Use the template as non-printable background and add the form fields.

  • How to disable a Entire row in a Matrix in Find Mode (User Form)

    Hi,
    How to disable a Entire row in a Matrix in Find Mode (User Form)
    Regards
    Jambu

    Hi,
       Iam using Bubble event = false in click event but the matrix row
    is allow to edit but we cant save the document in Find Mode That is fine.
    What is my actual requirement is In find mode matrix Row not allow to enter the data .
    For examble In ADD mode i enter the data in Three rows (Item Section - Matrix) and
    save the document. Whwn i open the document in find mode the three row is not allow
    to editable like the same functionality of PO, sales Order, etc ..
    Regards
    Jambu

  • How do I lock a PDF form field after it has been completed by a user?

    We have a problem with privacy on our downloadable Pdf Forms for customers, they are required to complete personal details within the Pdf Form Fields and then must be processed by our account team.
    But we would require customer completed forms to be disabled from any third party or employee tampering with the entered details.
    Once the data has been input into the form provided online and saved and sent-on it needs to be read ONLY from then on!
    Help please, Chris.

    It depends how secure they need to be. You could include a script in the form which sets the fields to be read-only when the form is submitted, but that can easily be bypassed (and may not be respected by third party PDF applications). Search this forum topic for examples, it's been asked many times before.
    If you have Acrobat you can flatten a form, turning the fields into regular page content, but that's not possible in Adobe Reader X. While the flattened page can no longer be edited in Reader, it can still be edited in Acrobat via the touchup tools, so for complete security you would need to apply encryption to the flattened PDF (via a certifying signature or DRM).

  • Want to add a prepopulated User defined field in create user form

    Hi,
    I have an entity adapter which will perform a pre-insert check on the user group of the user logged in to the oim.
    If the logged in user belongs to a group say "IT ADMIN", another validation check will be imposed on the create user action performed by him.
    If not from "IT ADMIN" group then create user action will be handled normally.
    Now the catch is, how would I determine the group name of the user logged in from the adapter code I have written?
    I decided to keep an User defined field "Created by" in the create user form which will be non-editable and auto-prepopulated with the group name of the logged in user. This way I will be able to map the variable field from the User definition drop down list while mapping the adapter variables.
    May you please guide me how I can achieve this?
    Would highly appreciate suggestion/inputs.

    Thanks for all your replies!
    However I am still in dark.
    I tried to retrieve the groupname using tcUSerOperationsIntf. But iit tries to retrieve the group name of the user getting created.
    Please note, the group name I want is not of the user yet to get created, but that of the user creating it i.e., the logged in user.
    My requirement is to have this created_by field in the create user form already prepopulated with the group name of the logged in user.
    So that I can put a check based on this field value in the netity adapter.
    If the group is IT ADMIN then proceed with the validation.
    Else no validation required.
    In short, I want to know,how can I auto-prepopulate a UDF in Create USer form?

Maybe you are looking for

  • How do I get email and text message notifications when my phone is locked?

    How do I get email and text message banner notifications on my iphone when the phone is locked? When I had iOS 6 I could get notifications with sound and banner. Now that I have iOS7 I can't see notificaitons when the phone is locked.

  • Routine code

    Hello ALL ,        iam working in BW but i need to find out  the cause of error because of abap routine can please help me in understanding the code. iam having below routine between 2 ods(Tables) when i first load data from 1st ODS(Table) to second

  • Scrolling and controlling become slower

    When i have a number of tracks and my song is getting bigger in the arange window, the "scrolling and controling of logic" becomes very slow. But my prozessor- and hardware load is still in the minimum also when its in play... Its almost to worse to

  • Comp coloum in BPS Layout

    Hi all, IN BPS layouts, system selecting the comp check boxes by default in some of layouts. Becouse of this user is not able to input value in layout. Points will be awarded. Thanks, Harry

  • Performance problems in Internet Explorer

    Hi, I have the problem that my Application is running much slower in Internet Explorer then in Firefox. For example I have a view on my page and when I go up and down with the arrow keys the row selection slows down in IE. In Firefox it runs fast and