{"action":"created","issue":{"url":"https://api.github.com/repos/mzur/kirby-uniform/issues/53","labels_url":"https://api.github.com/repos/mzur/kirby-uniform/issues/53/labels{/name}","comments_url":"https://api.github.com/repos/mzur/kirby-uniform/issues/53/comments","events_url":"https://api.github.com/repos/mzur/kirby-uniform/issues/53/events","html_url":"https://github.com/mzur/kirby-uniform/issues/53","id":90530332,"number":53,"title":"will not accept email address","user":{"login":"johnevanofski","id":3067506,"avatar_url":"https://avatars.githubusercontent.com/u/3067506?v=3","gravatar_id":"","url":"https://api.github.com/users/johnevanofski","html_url":"https://github.com/johnevanofski","followers_url":"https://api.github.com/users/johnevanofski/followers","following_url":"https://api.github.com/users/johnevanofski/following{/other_user}","gists_url":"https://api.github.com/users/johnevanofski/gists{/gist_id}","starred_url":"https://api.github.com/users/johnevanofski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johnevanofski/subscriptions","organizations_url":"https://api.github.com/users/johnevanofski/orgs","repos_url":"https://api.github.com/users/johnevanofski/repos","events_url":"https://api.github.com/users/johnevanofski/events{/privacy}","received_events_url":"https://api.github.com/users/johnevanofski/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-06-24T01:01:09Z","updated_at":"2015-06-26T17:52:36Z","closed_at":null,"body":"hey there,\r\n\r\nI'm having a major problem, I thought it might be an issue with running locally but it's doing it on my staging site too. \r\n\r\nI set up everything in the controller folder\r\n\r\n```php\r\n<?php\r\n\r\nreturn function($site, $pages, $page) {\r\n\r\n$form = uniform('contact-form', \r\n\tarray(\r\n\t\t'required' => array(\r\n\t\t\t'_from' => 'email'\r\n\t\t\t),\r\n\t\t'actions' => array(\r\n\t\t\t'_action' => 'email',\r\n\t\t\t'to' => 'john.evanofski@gmail.com',\r\n\t\t\t'sender' => 'contact@johnevanofski.net',\r\n\t\t\t'subject' => 'New Message from johnevanofski.net'\r\n\t\t)\r\n));\r\n\treturn compact('form');\r\n};\r\n\r\n?>\r\n```\r\n\r\nhere's my form on the template (i've abbreviated some sections)\r\n\r\n```html+php\r\n<form autocomplete=\"off\" action=\"<?php echo $page->url()?>#\" method=\"post\">\r\n\t\t\r\n\t<?php if ($form->hasMessage()): ?>\r\n\t\t\r\n\t\t<h1><?php e($form->successful(), 'Thank You!' , 'Error')?></h1>\r\n\t\t<p><?php $form->echoMessage() ?></p>\r\n\r\n\t<?php else: ?>\r\n\r\n\t\t<h1>Contact</h1>\r\n\r\n\t<?php endif; ?>\r\n  \r\n      <div class=\"contactform-field <?php e($form->hasError('name'), 'error') ?>\">\r\n        <label class=\"contactform-label\" for=\"name\">Name* <?php e($form->hasError('name'), '<small>Please enter a name</small>') ?></label>\r\n        <input class=\"contactform-input\" type=\"text\" id=\"contactform-name\" name=\"name\" value=\"<?php echo $form->echoValue('name') ?>\" required <?php e($form->successful(), ' disabled')?>/>\r\n      </div>\r\n  \r\n      <div class=\"contactform-field <?php e($form->hasError('_from'), 'error') ?>\">\r\n        <label class=\"contactform-label\" for=\"email\">Email* <?php e($form->hasError('_from'), '<small>Please enter a valid email address</small>') ?></label>\r\n        <input class=\"contactform-input\" type=\"email\" id=\"contactform-email\" name=\"email\" value=\"<?php echo $form->echoValue('_from') ?>\" required <?php e($form->successful(), ' disabled')?>/>\r\n      </div>\r\n\r\n\t<div class=\"contactform-field <?php e($form->hasError('text'), 'error') ?>\">\r\n\t  <label class=\"contactform-label\" for=\"text\">Message* <?php e($form->hasError('message'), '<small>Please enter your text</small>') ?></label>\r\n\t  <textarea class=\"contactform-input\" name=\"text\" id=\"contactform-text\" required <?php e($form->successful(), ' disabled')?> /><?php echo $form->echoValue('text') ?></textarea>\r\n      </div>\r\n\t\t\r\n\t<label class=\"uniform__potty\" for=\"website\">Please leave this field blank</label><input type=\"text\" name=\"website\" id=\"website\" class=\"uniform__potty\" />      \r\n       \r\n      <button id=\"send-button\" class=\"contactform-button\" type=\"submit\" name=\"_submit\" value=\"<?php echo $form->token() ?>\" <?php e($form->successful(), ' disabled')?>>SEND</button>\r\n    \r\n   </form>\r\n```\r\n\r\nlive at\r\nhttp://stage.johnevanofski.net/contact\r\n\r\nNo matter what it says to enter a valid email address, something on the '_from' validation appears to be failing. The other weird thing is that the message is not giving any feedback. I feel like I'm doing something small and stupid. Any help would be great.\r\n\r\nThanks! \r\n\r\n"},"comment":{"url":"https://api.github.com/repos/mzur/kirby-uniform/issues/comments/115811181","html_url":"https://github.com/mzur/kirby-uniform/issues/53#issuecomment-115811181","issue_url":"https://api.github.com/repos/mzur/kirby-uniform/issues/53","id":115811181,"user":{"login":"johnevanofski","id":3067506,"avatar_url":"https://avatars.githubusercontent.com/u/3067506?v=3","gravatar_id":"","url":"https://api.github.com/users/johnevanofski","html_url":"https://github.com/johnevanofski","followers_url":"https://api.github.com/users/johnevanofski/followers","following_url":"https://api.github.com/users/johnevanofski/following{/other_user}","gists_url":"https://api.github.com/users/johnevanofski/gists{/gist_id}","starred_url":"https://api.github.com/users/johnevanofski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johnevanofski/subscriptions","organizations_url":"https://api.github.com/users/johnevanofski/orgs","repos_url":"https://api.github.com/users/johnevanofski/repos","events_url":"https://api.github.com/users/johnevanofski/events{/privacy}","received_events_url":"https://api.github.com/users/johnevanofski/received_events","type":"User","site_admin":false},"created_at":"2015-06-26T17:52:36Z","updated_at":"2015-06-26T17:52:36Z","body":"Wow thank you so much, that worked. I didn't realize that the action object required an array of arrays! "}}