Results 1 to 2 of 2

Thread: Need a function to disable a widget on a form/screen

  1. #1
    Join Date
    Oct 2014
    Thanked 0 Times in 0 Posts

    Default Need a function to disable a widget on a form/screen

    I haven't any real javascript experience, but I need to create a function that will disable an element on a screen based on the value of another element on the screen. Here are the specifics:

    Screen ID (or Document name) : A%CCD107B2
    ID of the widget to be disabled/enabled : OrderEntryUpload1
    ID of the element to be checked : D_1_77

    Here's what I'd like to accomplish:

    if screen is A%CCD107B2
    if value of D_1_77 is equal to 'I'
    enable OrderEntryUpload1
    disable OrderEntryUpload1

    Can somebody help me out? I'm sure this is javascript 101 but I need this before I can become competent in js. I'll continue to research this on my own, but any assistance wil be appreciated.

    Thanx in advance.

  2. #2
    Join Date
    Jul 2008
    Derbyshire, UK
    Thanked 599 Times in 575 Posts
    Blog Entries


    There isn't really enough info for anyone to offer help with. For example, what are the elements? Which ones require user interaction and in what way? Are they all form fields and what types? Are you wanting to validate entered values on form submit or "live" (onkeyup? onmouseout?). Or maybe the element to check being loaded dynamically? Are you just wanting to check for its presence in the page before acting upon it with pre-populated form values elsewhere?

    There is a lot to ascertain before we can give constructive help.

    If you'd like specific help, please provide an URL to your page and describe in more detail how you want the process to work and elements/fields to behave.

    Offering a suggestion in the unknown, my initial thought would be to Google something like "disable form field based on value of another form field".
    Focus on Function Web Design
    Fast Edit (A flat file, PHP web page editor & CMS. Small, FREE, no database!) | Fast Edit BE (Snippet Manager) (Web content editor for multiple editable regions!) | Fast Apps

Similar Threads

  1. DHTML Window widget fixed position on screen.
    By green in forum Dynamic Drive scripts help
    Replies: 0
    Last Post: 11-04-2011, 03:44 PM
  2. Disable Ctrl Print Screen on Website
    By beakmbeakm in forum HTML
    Replies: 82
    Last Post: 02-03-2011, 02:58 PM
  3. Disable right click on DHTML Window widget(v1.03)
    By ronw in forum Dynamic Drive scripts help
    Replies: 3
    Last Post: 10-17-2007, 05:06 AM
  4. How Do I Disable the 'COPY' Function?
    By t.osberger in forum HTML
    Replies: 3
    Last Post: 03-24-2006, 03:12 AM
  5. Replies: 12
    Last Post: 10-09-2005, 08:26 PM


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts