From 5ab5cd3a2dc22b9a9e1d387f116426144a05586e Mon Sep 17 00:00:00 2001 From: Romulo De Lazzari Date: Mon, 18 Jun 2018 10:51:32 +0100 Subject: [PATCH] add maxlength of 40 characters on answers --- app/CustomFields.php | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/app/CustomFields.php b/app/CustomFields.php index 818f622..e47a68c 100644 --- a/app/CustomFields.php +++ b/app/CustomFields.php @@ -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, ], ], ],