Contact Form 7
Create a disabled input field (2 posts)

  1. JigMedia
    Posted 5 years ago #

    I am trying to create a disabled input field using Contact Form 7.
    Can this be done?

    Thanks very much for your help.


  2. Takayuki Miyoshi
    Plugin Author

    Posted 5 years ago #

    You can do it by using jQuery. For instance, suppose you have a text field with id 'your-text' in your form as:

    [text your-text id:your-text]

    Then, add this jQuery snippet into some proper place:

    jQuery(function($) {
    	$('#your-text').attr('disabled', 'disabled');

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Contact Form 7
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic