+ Reply to Thread
Results 1 to 7 of 7

Thread: "grey out" check box
      
   

  1. #1
    Porkmeister is offline Sergeant
    Join Date
    Feb 2008
    Posts
    35

    Default "grey out" check box

    Hi all,
    Does anyone know how to "grey out" a checkbox (or any other form element) in BV?
    Have tried all "events" and can make the checkbox disappear but not grey out.
    Thanks
    Ross

    www.custominterior.dk

  2. #2
    Join Date
    Feb 2006
    Location
    Earth
    Posts
    8,719

    Default Re: "grey out" check box

    Not sure hat you mean? If your getting the yellow'ish background? this is Googles auto fill.

  3. #3
    Porkmeister is offline Sergeant
    Join Date
    Feb 2008
    Posts
    35

    Default Re: "grey out" check box

    Thanks for the reply Chris. I am trying to make a form where if a checkbox is checked then it "greys out" another checkbox to make it unusable. So far I have used "onclick" and "hide" but then I have to insert a reset button to get the hidden checkbox back again. Have also tried "onclick", "javascript function" but can't seem to get the desired result.
    Grateful for your help
    Ross

  4. #4
    Join Date
    Feb 2006
    Location
    Earth
    Posts
    8,719

    Default Re: "grey out" check box

    Hi, this is done with radio button & not sure if it can be done with tick boxes?
    But place 2 or 3 radio buttons on your form & then click on one radio button & in the group field give it a name like group1, then do the same with the others, giving them the same name. Now because you have given them the same group name it will allow you to only select 1 button of this groups name. If you want another option on the form with a select function, just call the next group of buttons by another group name IE:"group2"

  5. #5
    Porkmeister is offline Sergeant
    Join Date
    Feb 2008
    Posts
    35

    Default Re: "grey out" check box

    Thank you Chris. Had to change the format of the form to incorporate the radio buttons. It's not the ideal solution but it works a treat. Thankyou for that. In "add events", can one insert other javascript functions or is there just those 6 functions available?

    Regs

    Ross

  6. #6
    Watdaflip's Avatar
    Watdaflip is offline Major General
    Join Date
    Sep 2005
    Location
    Cincinnati, Ohio
    Posts
    2,119

    Default Re: "grey out" check box

    You would need to add a javascript function to grey out the box (to grey out the box it needs to add the "disabled" attribute to the elements html).

    Try doing a google search for "dynamicly disable checkbox javascript" or something like that, there might be some existing javascript code to do it.

    Register/Login Script
    Do you use a Password Protected Directory? Need a way to allow users to make their own account, try my .htaccess Login Script

  7. #7
    Porkmeister is offline Sergeant
    Join Date
    Feb 2008
    Posts
    35

    Default Re: "grey out" check box

    Thanks for your help. Even if I can't find it then the other option works fine for now.

    Regs

    Ross

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49