WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

closed as off-topic by birgire, kaiser Jul 28 '14 at 14:29

This question appears to be off-topic. The users who voted to close gave this specific reason:

If this question can be reworded to fit the rules in the help center, please edit the question.

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

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