Skip to content

Instantly share code, notes, and snippets.

@cole007
Created February 8, 2016 15:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cole007/16bbc2d09ceff7517602 to your computer and use it in GitHub Desktop.
Save cole007/16bbc2d09ceff7517602 to your computer and use it in GitHub Desktop.
//
// craft()->elements->saveElement($submission)
// $submission->getPost()
Array
(
[action] => formerly/submissions/postSubmission
[redirect] => http://local.priorparkprep.com/admissions/fees?ok=1#homeForm
[formId] => 8
[questions] => Array
(
[dateTest_testDate] => Array
(
[date] => 02/02/2015
)
[dateTest_textField] => Test
)
)
// $submission->getErrors());
Array
(
[dateTest_testDate] => Array
(
[0] => Test Date cannot be blank.
)
[dateTest_textField] => Array
(
[0] => Text Field cannot be blank.
)
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment