Skip to content

Commit 65ea98f

Browse files
authored
KLS-Form-V4 (#396)
1 parent ab80d49 commit 65ea98f

2 files changed

Lines changed: 108 additions & 35 deletions

File tree

runner/src/server/forms/kls-magic-link.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
{
22
"startPage": "/start",
33
"skipSummary": true,
4+
"authentication": true,
5+
"toggle": true,
6+
"toggleRedirect": "/kls-path-1/which-organisation-do-you-work-for-DUPE",
7+
48
"retryTimeoutSeconds": 300,
59
"analytics": {
610
"matomoId": "11",
@@ -85,7 +89,7 @@
8589
"name": "SentAnotherEmail",
8690
"options": {},
8791
"type": "Para",
88-
"content": "We’ve sent an email to {{ email }}. <p class=\"govuk-body\">Click the link in the email to continue to report an outbreak.</p> <br><br> <h2 class=\"govuk-heading-m\">If you've not received an email</h2><p class=\"govuk-body\">Check your spam or junk folder.<br><br>If you’ve not received the email, you can resubmit the email in 5 minutes.</p>",
92+
"content": "We’ve sent an email to {{ email }}. <p class=\"govuk-body\">Click the link in the email to continue to access the Knowledge and Library Services form.</p> <br><br> <h2 class=\"govuk-heading-m\">If you've not received an email</h2><p class=\"govuk-body\">Check your spam or junk folder.<br><br>If you’ve not received the email, you can resubmit the email in 5 minutes.</p>",
8993
"schema": {}
9094
},
9195
{
@@ -230,7 +234,7 @@
230234
}
231235
}
232236
],
233-
"jwtKey": "sdasdsadsasdasasdasdsdsdsdas",
237+
"jwtKey": "${KLSJwtKey}",
234238
"feedback": {
235239
"feedbackForm": true,
236240
"url": "/feedback"

runner/src/server/forms/kls-path-1.json

Lines changed: 102 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,21 @@
22
"metadata": {},
33
"startPage": "/start",
44
"fullStartPage": "/kls-path-1/start",
5+
"authentication": true,
6+
"toggle": true,
57
"serviceName": "Knowledge and Library Services",
68
"analytics": {
79
"matomoUrl": "https://ukhsakls.matomo.cloud",
810
"matomoId": "11"
911
},
1012
"webhookHmacSharedKey": "${KLSkey}",
13+
"fileUploadHmacSharedKey": "${KLSFileUploadKey}",
1114
"magicLinkConfig": "kls-magic-link",
1215
"pages": [
1316
{
1417
"title": "Contact the Knowledge and Library Services team",
1518
"path": "/start",
19+
"unauthenticated": true,
1620
"components": [],
1721
"next": [
1822
{
@@ -23,6 +27,7 @@
2327
},
2428
{
2529
"path": "/which-organisation-do-you-work-for",
30+
"unauthenticated": true,
2631
"title": "Which organisation do you work for?",
2732
"components": [
2833
{
@@ -51,6 +56,7 @@
5156
},
5257
{
5358
"path": "/please-contact-us-via-email",
59+
"unauthenticated": true,
5460
"title": "Please contact us via email",
5561
"components": [
5662
{
@@ -93,7 +99,12 @@
9399
{
94100
"name": "RpctHr",
95101
"options": {
96-
"required": true
102+
"required": true,
103+
"customValidationMessages": {
104+
"any.required": "Enter job title",
105+
"any.only": "Enter job title",
106+
"string.empty": "Enter job title"
107+
}
97108
},
98109
"type": "TextField",
99110
"title": "Job title",
@@ -195,15 +206,16 @@
195206
"schema": {}
196207
},
197208
{
198-
"name": "aazUpS",
199-
"options": {
200-
"required": false
201-
},
202-
"type": "FileUploadField",
203-
"title": "Please attach any supporting information, for example a protocol or list of references.",
204-
"schema": {},
205-
"hint": ""
206-
}
209+
"name":"bYWcrH",
210+
"options":{
211+
"multiple":true,
212+
"accept": "image/png,image/jpeg,image/gif,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet,application/vnd.ms-excel.sheet.macroEnabled.12,text/csv,application/xml,text/xml,application/pdf,application/vnd.openxmlformats-officedocument.wordprocessingml.document,application/rtf,text/rtf,application/msword,application/x-research-info-systems,text/plain,application/vnd.ms-outlook,application/vnd.openxmlformats-officedocument.presentationml.presentation,.ris,application/vnd.ms-excel"
213+
},
214+
"type":"FileUploadField",
215+
"title":"CHANGE Me 1 :)!"
216+
}
217+
218+
207219
],
208220
"next": [
209221
{
@@ -272,7 +284,12 @@
272284
{
273285
"name": "bhBuDQ",
274286
"options": {
275-
"required": true
287+
"required": true,
288+
"customValidationMessages": {
289+
"any.required": "Enter relevant concepts",
290+
"any.only": "Enter relevant concepts",
291+
"string.empty": "Enter relevant concepts"
292+
}
276293
},
277294
"type": "MultilineTextField",
278295
"title": "Explain any relevant concepts",
@@ -397,7 +414,12 @@
397414
{
398415
"name": "WNVZzn",
399416
"options": {
400-
"required": true
417+
"required": true,
418+
"customValidationMessages": {
419+
"any.required": "Enter what you will use the results for",
420+
"any.only": "Enter what you will use the results for",
421+
"string.empty": "Enter what you will use the results for"
422+
}
401423
},
402424
"type": "SelectField",
403425
"title": "What will you primarily use the results of this search for?",
@@ -420,7 +442,12 @@
420442
{
421443
"name": "qwQlWP",
422444
"options": {
423-
"required": true
445+
"required": true,
446+
"customValidationMessages": {
447+
"any.required": "Enter your preferred results format",
448+
"any.only": "Enter your preferred results format",
449+
"string.empty": "Enter your preferred results format"
450+
}
424451
},
425452
"type": "CheckboxesField",
426453
"title": "What is your preferred results format?",
@@ -448,7 +475,13 @@
448475
},
449476
{
450477
"name": "lIUPMw",
451-
"options": {},
478+
"options": {
479+
"customValidationMessages": {
480+
"any.required": "Enter type of review",
481+
"any.only": "Enter type of review",
482+
"string.empty": "Enter type of review"
483+
}
484+
},
452485
"type": "SelectField",
453486
"title": "What type of review are you doing?",
454487
"list": "cZlqVP",
@@ -470,7 +503,12 @@
470503
{
471504
"name": "byRMpb",
472505
"options": {
473-
"required": true
506+
"required": true,
507+
"customValidationMessages": {
508+
"any.required": "Enter reason for review",
509+
"any.only": "Enter reason review",
510+
"string.empty": "Enter reason review"
511+
}
474512
},
475513
"type": "SelectField",
476514
"title": "What is the reason for conducting this review?",
@@ -492,7 +530,12 @@
492530
{
493531
"name": "diftRU",
494532
"options": {
495-
"required": true
533+
"required": true,
534+
"customValidationMessages": {
535+
"any.required": "Enter where to publish review",
536+
"any.only": "Enter where to publish review",
537+
"string.empty": "Enter where to publish review"
538+
}
496539
},
497540
"type": "SelectField",
498541
"title": "Where do you intend to publish your review?",
@@ -521,7 +564,12 @@
521564
{
522565
"name": "dmgVPY",
523566
"options": {
524-
"required": true
567+
"required": true,
568+
"customValidationMessages": {
569+
"any.required": "Enter if you have written a protocol",
570+
"any.only": "Enter if you have written a protocol",
571+
"string.empty": "Enter if you have written a protocol"
572+
}
525573
},
526574
"type": "YesNoField",
527575
"title": "Have you written a protocol?",
@@ -569,7 +617,12 @@
569617
{
570618
"name": "TNXqpA",
571619
"options": {
572-
"required": true
620+
"required": true,
621+
"customValidationMessages": {
622+
"any.required": "Enter your inclusion criteria for population",
623+
"any.only": "Enter your inclusion criteria for population",
624+
"string.empty": "Enter your inclusion criteria for population"
625+
}
573626
},
574627
"type": "MultilineTextField",
575628
"title": "What are your inclusion criteria for population?",
@@ -578,7 +631,12 @@
578631
{
579632
"name": "KXXNzf",
580633
"options": {
581-
"required": true
634+
"required": true,
635+
"customValidationMessages": {
636+
"any.required": "Enter your inclusion criteria for intervention or exposure",
637+
"any.only": "Enter your inclusion criteria for intervention or exposure",
638+
"string.empty": "Enter your inclusion criteria for intervention or exposure"
639+
}
582640
},
583641
"type": "MultilineTextField",
584642
"title": "What are your inclusion criteria for intervention or exposure?",
@@ -587,7 +645,12 @@
587645
{
588646
"name": "GjCFLx",
589647
"options": {
590-
"required": true
648+
"required": true,
649+
"customValidationMessages": {
650+
"any.required": "Enter your inclusion criteria for setting/location",
651+
"any.only": "Enter your inclusion criteria for setting/location",
652+
"string.empty": "Enter your inclusion criteria for setting/location"
653+
}
591654
},
592655
"type": "MultilineTextField",
593656
"title": "What are your inclusion criteria for setting/location?",
@@ -596,7 +659,12 @@
596659
{
597660
"name": "MgKlsM",
598661
"options": {
599-
"required": true
662+
"required": true,
663+
"customValidationMessages": {
664+
"any.required": "Enter your inclusion criteria for outcomes",
665+
"any.only": "Enter your inclusion criteria for outcomes",
666+
"string.empty": "Enter your inclusion criteria for outcomes"
667+
}
600668
},
601669
"type": "MultilineTextField",
602670
"title": "What are your inclusion criteria for outcomes?",
@@ -638,16 +706,17 @@
638706
"title": "Enquiry title",
639707
"schema": {}
640708
},
641-
{
642-
"name": "FIvjTg",
643-
"options": {
644-
"required": false
645-
},
646-
"type": "FileUploadField",
647-
"title": "Upload a file",
648-
"hint": "To support the KLS team in dealing with your query, you may upload a file here.",
649-
"schema": {}
650-
}
709+
{
710+
"name": "FIvjTg",
711+
"type": "FileUploadField",
712+
"title": "Upload a file v2",
713+
"hint": "To support the KLS team in dealing with your query, you may upload a file here.",
714+
"schema": {},
715+
"options": {
716+
"multiple": true,
717+
"accept": "image/png,image/jpeg,image/gif,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet,application/vnd.ms-excel.sheet.macroEnabled.12,text/csv,application/xml,text/xml,application/pdf,application/vnd.openxmlformats-officedocument.wordprocessingml.document,application/rtf,text/rtf,application/msword,application/x-research-info-systems,text/plain,application/vnd.ms-outlook,application/vnd.openxmlformats-officedocument.presentationml.presentation,.ris,application/vnd.ms-excel"
718+
}
719+
}
651720
],
652721
"next": [
653722
{
@@ -1529,7 +1598,7 @@
15291598
"items": [
15301599
{
15311600
"text": "Peer reviewed journal",
1532-
"value": "Journal"
1601+
"value": "Peer reviewed journal"
15331602
},
15341603
{
15351604
"description": "",
@@ -2297,5 +2366,5 @@
22972366
"feedbackForm": true,
22982367
"url": "/kls-feedback"
22992368
},
2300-
"jwtKey": "23029328asdasd3923208902de902"
2369+
"jwtKey": "${KLSJwtKey}"
23012370
}

0 commit comments

Comments
 (0)