Create a disabled input field in contact-form-7

Create a disabled input field

========================

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');
});

One thought on “Create a disabled input field in contact-form-7”

Leave a Reply

Your email address will not be published. Required fields are marked *