PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Disable options

  1. I would like to disable certain radio or checkbox options, when creating forms. In HTML it is: disabled="disabled".
    For example, in a list of options I would like to disable some but still have them visible on the form.

    Posted 11 years ago on Wednesday June 12, 2013 | Permalink
  2. David Peralty

    You would have to use JQuery to do this, as Gravity Forms doesn't allow for disabled checkbox options currently. A quick Google search found this that might be of help to you: http://stackoverflow.com/questions/2330209/jquery-checkbox-enable-disable

    Posted 11 years ago on Wednesday June 12, 2013 | Permalink
  3. It has to be something simple that a client can use, not JQuery. So if there is
    • option 1
    • option 2
    • option 3

    Once option 2 is sold, I want the client to be able to be able to change it to disabled.

    Can you think of a way to do something like this with Gravity Forms?

    Posted 11 years ago on Wednesday June 12, 2013 | Permalink
  4. Perhaps this might work for you:
    http://gravitywiz.com/better-inventory-with-gravity-forms/

    Posted 11 years ago on Wednesday June 12, 2013 | Permalink
  5. IS there a way to set a class for an individual form option?
    For example, change option 2 to have a CSS class of "disabled"?

    Posted 11 years ago on Wednesday June 12, 2013 | Permalink
  6. David Peralty

    Again, as I said, there is no way to change a single element of a radio list, checkbox or dropdown to include disabled.

    Posted 11 years ago on Wednesday June 12, 2013 | Permalink
  7. But, is there a way to add a CSS class to a single element? Then I would change the color to light grey in CSS.

    Posted 11 years ago on Wednesday June 12, 2013 | Permalink
  8. David Peralty

    Again, this would require a developers touch each time, and would not be controllable from Gravity Forms' admin, and it would require some CSS3 hacks to even pull off using selectors and knowing which item it is in a list (because you could only apply a CSS class to the parent element, not to the individual checkbox item)

    Posted 11 years ago on Wednesday June 12, 2013 | Permalink