Skip to content

Commit

Permalink
Merge pull request #2 from shortlist-digital/limit-char-answers
Browse files Browse the repository at this point in the history
add maxlength of 40 characters on answers
  • Loading branch information
romulodl authored Jun 18, 2018
2 parents 0a0bff2 + 5ab5cd3 commit 9717fc5
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions app/CustomFields.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,12 @@ public function register_poll_fields() {
'max' => 6,
'sub_fields' => [
[
'key' => $key . 'text',
'label' => 'Answers for the poll (please do not reorder them once the poll is published)',
'name' => $key . 'text',
'type' => 'text',
'required' => 1,
'key' => $key . 'text',
'label' => 'Answers for the poll (please do not reorder them once the poll is published)',
'name' => $key . 'text',
'type' => 'text',
'required' => 1,
'maxlength' => 40,
],
],
],
Expand Down

0 comments on commit 9717fc5

Please sign in to comment.