Title: Count Characters
Last modified: July 5, 2019

---

# Count Characters

 *  Resolved [wayneoz](https://wordpress.org/support/users/wayneoz/)
 * (@wayneoz)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/count-characters-2/)
 * How can you count the number of characters entered in a text box?

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [codepeople](https://wordpress.org/support/users/codepeople/)
 * (@codepeople)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/count-characters-2/#post-11702354)
 * Hello [@wayneoz](https://wordpress.org/support/users/wayneoz/)
 * Yes, that’s possible and very simple. Assuming the text box is the fieldname1
   field, the equation associated to the calculated field would be:
 *     ```
       (new String(fieldname1)).length
       ```
   
 * and that’s all.
    Best regards.
 *  Thread Starter [wayneoz](https://wordpress.org/support/users/wayneoz/)
 * (@wayneoz)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/count-characters-2/#post-11702621)
 * Awesome ! Thank you
 * I nearly had it right. I was missing (new string(
 * I only had (fieldname1).length
 *  Plugin Author [codepeople](https://wordpress.org/support/users/codepeople/)
 * (@codepeople)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/count-characters-2/#post-11702630)
 * Hello [@wayneoz](https://wordpress.org/support/users/wayneoz/)
 * It has been a pleasure.
 * Best regards.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Count Characters’ is closed to new replies.

 * ![](https://ps.w.org/calculated-fields-form/assets/icon-256x256.jpg?rev=1734377)
 * [Calculated Fields Form](https://wordpress.org/plugins/calculated-fields-form/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/calculated-fields-form/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/calculated-fields-form/)
 * [Active Topics](https://wordpress.org/support/plugin/calculated-fields-form/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/calculated-fields-form/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/calculated-fields-form/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [codepeople](https://wordpress.org/support/users/codepeople/)
 * Last activity: [6 years, 10 months ago](https://wordpress.org/support/topic/count-characters-2/#post-11702630)
 * Status: resolved