How to constrain input to numbers only on an text input box?How to constrain input to numbers only on an text input box?https://portal.smartbuilder.com/c/message_boards/find_thread?p_l_id=&threadId=4494682024-03-28T08:50:49Z2024-03-28T08:50:49ZRE: How to constrain input to numbers only on an text input box?Navdeep Dhillonhttps://portal.smartbuilder.com/c/message_boards/find_message?p_l_id=&messageId=4495152020-10-26T20:18:54Z2020-10-26T20:16:16ZHi Daljit,<br />Normally you would use a <strong>Number Input</strong> object to collect numerical entries from learners. However, if you don't like the default "0", or you have another reason not to use the Number Input object, you can instead use a <strong>Text Input</strong> object, and an action that removes any non-numeric characters. But you won't get the nice formatting options (<em>e.g.</em>, $1,000). If you want to do that, here's how - <a href="https://www.screencast.com/t/wYaWtYhd">https://www.screencast.com/t/wYaWtYhd</a><br /><br />Regex is extremely powerful for text manipulation, and you can look up all sorts of shortcuts for that. "\W" is one that I use for taking "The quick brown fox is #rabid!!!" and making it web safe, "The_quick_brown_fox_is__rabid___".<br /><br />Hope that helps!Navdeep Dhillon2020-10-26T20:16:16ZHow to constrain input to numbers only on an text input box?D Singhhttps://portal.smartbuilder.com/c/message_boards/find_message?p_l_id=&messageId=4494672020-10-26T17:59:40Z2020-10-26T17:59:40ZIs there any way to restrict user input to numbers only on a text input object?<br /><br />Please show me how to do that.D Singh2020-10-26T17:59:40Z