Log In
Status:
waiting
|
Disconnect
|
Logout
For documentation about how to setup custom validation, look here: <a href="https://developers.facebook.com/docs/plugins/registration/advanced/"> https://developers.facebook.com/docs/plugins/registration/advanced/ </a> <br><br> <fb:registration redirect-uri="https://www.fbrell.com/oauth/response/" fields='[ {"name":"name"}, {"name":"foo","description":"Type foo","type":"text"}, {"name":"bar","description":"Type bar","type":"text"}, {"name":"facebooker","description":"Pick Paul","type":"select","options": {"coder":"Paul","pm":"Austin","partners":"Cat"}}, {"name":"check","description":"Check this","type":"checkbox"}, {"name":"date","description":"Dec 16 2010","type":"date"}, {"name":"city","description":"Calgary","type":"typeahead","categories": ["city"]}]' onvalidate="validate"></fb:registration> <script> window.validate = function(form) { var errors = {}; if (form.foo !== "foo") { errors.foo = "You didn't type foo"; } if (form.bar !== "bar") { errors.bar = "You didn't type bar"; } if (form.facebooker !== "coder") { errors.facebooker = "Pick the geeky one"; } if (!form.check) { errors.check = "Check the little box"; } if (form.date !== '12/16/2010') { errors.date = "That isn't the launch date"; } if (form.city.id !== '111983945494775') { errors.city = "That isn't Calgary, Alberta"; } return errors; } </script>
Examples
Website
Website
Canvas
Page Tab
Run Code
Clear