Title: Enforcing Element Input
Last modified: April 20, 2026

---

# Enforcing Element Input

 *  Resolved [stumur](https://wordpress.org/support/users/stumur/)
 * (@stumur)
 * [1 month, 2 weeks ago](https://wordpress.org/support/topic/enforcing-element-input/)
 * Hey Ali,
   Sorry for the bother. EG: If I select a “NUMBERS” element for a ‘postcode’
   capture on a form, can I make it so that ONLY NUMBERS can be entered? I thought
   that was the logical reason to select ‘numbers’ for that box purpose.. if it 
   isn’t limited to only numerical input, I may as well use ‘one line text’ or any
   other box to capture it. I have looked everywhere but I don’t see that option
   of control for the numbers element? Also – is there an option to remove the right-
   side arrow up/down counter from that Numbers box?And also, can any red error 
   messages be made to appear at the time of input error by the User, or can they
   only appear when they hit the SUBMIT button?Thank you, Stu
    -  This topic was modified 1 month, 2 weeks ago by [stumur](https://wordpress.org/support/users/stumur/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fenforcing-element-input%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [Ali Khallad](https://wordpress.org/support/users/alikhallad/)
 * (@alikhallad)
 * [1 month, 2 weeks ago](https://wordpress.org/support/topic/enforcing-element-input/#post-18886320)
 * Hi Stu,
 * Not at the moment. The Number field does validate numeric input, but it doesn’t
   currently have a built-in option to lock typing to numbers only as the user types,
   remove the browser’s up/down arrows, or show red validation messages live before
   submit.
 * If you want stricter input control for something like a postcode, the better 
   option for now would usually be a **One Line Text** field with a custom input
   mask instead of the Number field.
 *  Thread Starter [stumur](https://wordpress.org/support/users/stumur/)
 * (@stumur)
 * [1 month, 2 weeks ago](https://wordpress.org/support/topic/enforcing-element-input/#post-18886323)
 * Thank you mate.. I got it sorted with php and JS.. good enough for now.
   Thank
   you.

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

You must be [logged in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fenforcing-element-input%2F%3Foutput_format%3Dmd&locale=en_US)
to reply to this topic.

 * ![](https://ps.w.org/mega-forms/assets/icon.svg?rev=2445007)
 * [Mega Forms – Drag & Drop Form Builder with Multi-Step & Conditional Logic](https://wordpress.org/plugins/mega-forms/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/mega-forms/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/mega-forms/)
 * [Active Topics](https://wordpress.org/support/plugin/mega-forms/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/mega-forms/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/mega-forms/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [stumur](https://wordpress.org/support/users/stumur/)
 * Last activity: [1 month, 2 weeks ago](https://wordpress.org/support/topic/enforcing-element-input/#post-18886323)
 * Status: resolved