{"id":26,"date":"2009-04-22T09:35:17","date_gmt":"2009-04-22T17:35:17","guid":{"rendered":"http:\/\/kai.mactane.org\/blog\/2009\/04\/22\/making-a-field-required-doesnt-make-it-truthful\/"},"modified":"2009-04-22T09:35:17","modified_gmt":"2009-04-22T17:35:17","slug":"making-a-field-required-doesnt-make-it-truthful","status":"publish","type":"post","link":"https:\/\/kagan.mactane.org\/blog\/2009\/04\/22\/making-a-field-required-doesnt-make-it-truthful\/","title":{"rendered":"Making a Field Required Doesn&#8217;t Make It Truthful"},"content":{"rendered":"<p>Today&#8217;s lesson for people who make fields &#8220;required&#8221; on their web forms:<\/p>\n<div class=\"notice\">\n\tYou can make it &#8220;required&#8221;, but you can&#8217;t force people to tell you the truth.\n<\/div>\n<p>I recently filled out a form for a service that will eventually ship a book to me. I understand why they needed my street address, my credit card information, and so on&#8230; but my phone number? I&#8217;ve gotten quite accustomed to typing &#8220;you don&#8217;t need this&#8221; into phone number fields on web forms, because it&#8217;s the truth. The company I&#8217;m dealing with, 9 times out of 10, <em>doesn&#8217;t<\/em> need my phone number.<\/p>\n<p>In this case, I suspect they wanted it in case they had to contact me regarding any shipping problems, so instead of my usual, I typed in &#8220;email me instead&#8221;. The nice thing is, the form actually accepted that. Sometimes, they demand to have actual numbers in them. Would you believe my phone number is 123-456-7890?<\/p>\n<p>As long ago as the fall of 2005, <a href=\"\/essays\/web-dev.php#s9\">I wrote that personal information was a hot commodity<\/a>, and that users were becoming aware of it. If you run a site that has forms that require certain information, you might want to check through the data you&#8217;ve been receiving. I suspect that an astonishing number of your users have the same phone number as I do&#8230; and were born on New Year&#8217;s Day of some year or other.<\/p>\n<p>Then again, I&#8217;m awfully nice about using such &#8220;obviously fake&#8221; data. I wouldn&#8217;t be surprised if some useres, when faced with a form that demands a phone number, just <a href=\"http:\/\/catb.org\/~esr\/jargon\/html\/P\/plokta.html\">press lots of keys<\/a> until they&#8217;ve got enough numbers.<\/p>\n<p>Two questions, then, for those whose databases have numbers like 123-456-7890 in them:<\/p>\n<ol>\n<li>Obviously, you can&#8217;t trust any phone number in the 123 area code. How much of the rest of your information can you trust?<\/li>\n<li>Given that at least some of the data you&#8217;re getting is untrustworthy, what purpose is being served by requiring such data at all?<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>Today&#8217;s lesson for people who make fields &#8220;required&#8221; on their web forms: You can make it &#8220;required&#8221;, but you can&#8217;t force people to tell you the truth. I recently filled out a form for a service that will eventually ship a book to me. I understand why they needed my street address, my credit card [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[26,8,9],"_links":{"self":[{"href":"https:\/\/kagan.mactane.org\/blog\/wp-json\/wp\/v2\/posts\/26"}],"collection":[{"href":"https:\/\/kagan.mactane.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kagan.mactane.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kagan.mactane.org\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/kagan.mactane.org\/blog\/wp-json\/wp\/v2\/comments?post=26"}],"version-history":[{"count":0,"href":"https:\/\/kagan.mactane.org\/blog\/wp-json\/wp\/v2\/posts\/26\/revisions"}],"wp:attachment":[{"href":"https:\/\/kagan.mactane.org\/blog\/wp-json\/wp\/v2\/media?parent=26"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kagan.mactane.org\/blog\/wp-json\/wp\/v2\/categories?post=26"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kagan.mactane.org\/blog\/wp-json\/wp\/v2\/tags?post=26"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}