Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I am trying to email a custom input

<input type="text" name="total" id="total" class="wpcf7-text" readonly="readonly" />

I tried [total] but it does not work. Or isit possible to make a field readonly with WPCF7?

share|improve this question
add comment

1 Answer

up vote 1 down vote accepted

Contact form 7 is one of my favorite plugins , now after I've said that you can either create your own module to add a filed of "readonly" by following this tutorial http://blog.ekynoxe.com/2010/09/06/extending-contact-form-7/

or maybe even digging through Contact Form 7 Modules plugin to see how to add new modules, but a much easier solution would be to create a regular text filed and use JQuery to add the readonly attribute

$('#inputId').attr('readonly', true);

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.