Infrastructure & Facilities Rating

This infrastructure and facilities feedback form enables local governments to collect structured citizen feedback on public infrastructure quality. Citizens can rate various aspects including roads, sidewalks, parks, public buildings, utilities, and public transportation infrastructure. The form uses smart conditional logic to show relevant follow-up questions based on the infrastructure type selected, helping municipalities prioritize maintenance and improvement projects based on community needs.

Specialized

Try the Form

Help us improve our community by rating local infrastructure and facilities. Your feedback guides our improvement priorities.
Select Infrastructure Type
 
Issues & Concerns
 
Improvement Priorities
5/ 10
5 / 10
110
Strongly disagree
Strongly agree
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
export function infrastructureFeedbackSurvey(form: FormTs) {
// Infrastructure & Facilities Rating - Public infrastructure feedback for local government
// Demonstrates: MatrixQuestion, RatingScale, StarRating, Slider, Dropdown, CheckboxList, conditional visibility
 
// ============================================
// HEADER
// ============================================
form.addRow(row => {
row.addTextPanel('header', {
label: 'Infrastructure & Facilities Feedback',
computedValue: () => 'Help us improve our community by rating local infrastructure and facilities. Your feedback guides our improvement priorities.',
customStyles: {
backgroundColor: '#0369a1',
color: 'white',
padding: '24px',
borderRadius: '12px',
textAlign: 'center'
}
});
});
 
// ============================================
// SECTION 1: Infrastructure Type Selection
// ============================================
const typeSection = form.addSubform('infrastructureType', {
title: 'Select Infrastructure Type'
});
 
typeSection.addRow(row => {
row.addDropdown('category', {
label: 'What type of infrastructure would you like to provide feedback on?',
options: [
{ id: 'roads', name: 'Roads & Streets' },
{ id: 'sidewalks', name: 'Sidewalks & Pathways' },
{ id: 'parks', name: 'Parks & Recreation Areas' },
{ id: 'buildings', name: 'Public Buildings' },
{ id: 'utilities', name: 'Utilities (Water/Sewer/Electric)' },
{ id: 'lighting', name: 'Street Lighting' },
{ id: 'transit', name: 'Public Transit Facilities' },
{ id: 'stormwater', name: 'Stormwater & Drainage' }
],
placeholder: 'Select a category...',
isRequired: true
});
});
 
typeSection.addRow(row => {
row.addTextbox('location', {
label: 'Specific location or address (optional)',
placeholder: 'e.g., Main Street between 1st and 2nd Ave',
maxLength: 200
});
});
 
typeSection.addRow(row => {
row.addRadioButton('usageFrequency', {
label: 'How often do you use this infrastructure?',
options: [
{ id: 'daily', name: 'Daily' },
{ id: 'weekly', name: 'Weekly' },
{ id: 'monthly', name: 'Monthly' },
{ id: 'rarely', name: 'Rarely' }
],
orientation: 'horizontal',
isVisible: () => typeSection.dropdown('category')?.value() !== null
});
});
 
// ============================================
// SECTION 2: Condition Assessment
// ============================================
const conditionSection = form.addSubform('conditionAssessment', {
title: () => {
const category = typeSection.dropdown('category')?.value();
const categoryNames: Record<string, string> = {
'roads': 'Roads & Streets',
'sidewalks': 'Sidewalks & Pathways',
'parks': 'Parks & Recreation',
'buildings': 'Public Buildings',
'utilities': 'Utilities',
'lighting': 'Street Lighting',
'transit': 'Transit Facilities',
'stormwater': 'Stormwater Systems'
};
return `${categoryNames[category ?? ''] || 'Infrastructure'} Condition Assessment`;
},
isVisible: () => typeSection.dropdown('category')?.value() !== null
});
 
// Roads-specific matrix
conditionSection.addRow(row => {
row.addMatrixQuestion('roadConditions', {
label: 'Rate the condition of road infrastructure:',
rows: [
{ id: 'surface', label: 'Road surface quality', isRequired: true },
{ id: 'potholes', label: 'Pothole prevalence', isRequired: true },
{ id: 'markings', label: 'Lane markings visibility', isRequired: false },
{ id: 'signage', label: 'Traffic signage', isRequired: false },
{ id: 'drainage', label: 'Road drainage', isRequired: false }
],
columns: [
{ id: 'poor', label: 'Poor' },
{ id: 'fair', label: 'Fair' },
{ id: 'good', label: 'Good' },
{ id: 'excellent', label: 'Excellent' }
],
striped: true,
fullWidth: true,
isVisible: () => typeSection.dropdown('category')?.value() === 'roads'
});
});
 
// Parks-specific matrix
conditionSection.addRow(row => {
row.addMatrixQuestion('parkConditions', {
label: 'Rate the condition of park facilities:',
rows: [
{ id: 'grounds', label: 'Grounds maintenance', isRequired: true },
{ id: 'equipment', label: 'Playground equipment', isRequired: true },
{ id: 'restrooms', label: 'Restroom facilities', isRequired: false },
{ id: 'seating', label: 'Benches and seating', isRequired: false },
{ id: 'trails', label: 'Walking trails', isRequired: false },
{ id: 'lighting', label: 'Park lighting', isRequired: false }
],
columns: [
{ id: 'poor', label: 'Poor' },
{ id: 'fair', label: 'Fair' },
{ id: 'good', label: 'Good' },
{ id: 'excellent', label: 'Excellent' },
{ id: 'na', label: 'N/A' }
],
striped: true,
fullWidth: true,
isVisible: () => typeSection.dropdown('category')?.value() === 'parks'
});
});
 
// Generic condition rating for other types
conditionSection.addRow(row => {
row.addMatrixQuestion('generalConditions', {
label: 'Rate the infrastructure condition:',
rows: [
{ id: 'overall', label: 'Overall condition', isRequired: true },
{ id: 'safety', label: 'Safety', isRequired: true },
{ id: 'accessibility', label: 'Accessibility', isRequired: false },
{ id: 'maintenance', label: 'Maintenance level', isRequired: false },
{ id: 'cleanliness', label: 'Cleanliness', isRequired: false }
],
columns: [
{ id: 'poor', label: 'Poor' },
{ id: 'fair', label: 'Fair' },
{ id: 'good', label: 'Good' },
{ id: 'excellent', label: 'Excellent' }
],
striped: true,
fullWidth: true,
isVisible: () => {
const category = typeSection.dropdown('category')?.value();
return category !== null && category !== 'roads' && category !== 'parks';
}
});
});
 
// ============================================
// SECTION 3: Overall Rating
// ============================================
const ratingSection = form.addSubform('overallRating', {
title: 'Overall Assessment',
isVisible: () => typeSection.dropdown('category')?.value() !== null
});
 
ratingSection.addRow(row => {
row.addStarRating('overallCondition', {
label: 'Overall condition rating',
maxStars: 5,
size: 'lg',
alignment: 'center',
showConfettiOnMax: true
});
});
 
ratingSection.addRow(row => {
row.addEmojiRating('satisfaction', {
label: 'How satisfied are you with this infrastructure?',
preset: 'satisfaction',
size: 'lg',
showLabels: true,
alignment: 'center'
});
});
 
// ============================================
// SECTION 4: Issues & Concerns
// ============================================
const issuesSection = form.addSubform('issuesConcerns', {
title: 'Issues & Concerns',
isVisible: () => {
const rating = ratingSection.starRating('overallCondition')?.value();
return rating !== null && rating !== undefined && rating <= 3;
},
customStyles: { backgroundColor: '#fef3c7', padding: '16px', borderRadius: '8px' }
});
 
issuesSection.addRow(row => {
row.addCheckboxList('issueTypes', {
label: 'What issues have you observed?',
options: [
{ id: 'damage', name: 'Physical damage' },
{ id: 'safety', name: 'Safety hazard' },
{ id: 'accessibility', name: 'Accessibility problems' },
{ id: 'maintenance', name: 'Lack of maintenance' },
{ id: 'lighting', name: 'Inadequate lighting' },
{ id: 'cleanliness', name: 'Cleanliness issues' },
{ id: 'overcrowding', name: 'Overcrowding' },
{ id: 'vandalism', name: 'Vandalism' },
{ id: 'other', name: 'Other' }
],
orientation: 'vertical'
});
});
 
// Safety hazard priority flag
issuesSection.addRow(row => {
row.addRadioButton('safetyUrgency', {
label: 'Is this a safety hazard requiring urgent attention?',
options: [
{ id: 'critical', name: 'Yes - immediate danger' },
{ id: 'moderate', name: 'Yes - moderate risk' },
{ id: 'low', name: 'Minor concern' },
{ id: 'no', name: 'No safety issue' }
],
orientation: 'vertical',
isVisible: () => {
const issues = issuesSection.checkboxList('issueTypes')?.value() ?? [];
return issues.includes('safety');
}
});
});
 
issuesSection.addSpacer();
 
issuesSection.addRow(row => {
row.addTextarea('issueDescription', {
label: () => {
const urgency = issuesSection.radioButton('safetyUrgency')?.value();
if (urgency === 'critical') {
return 'Please describe the safety hazard in detail (this will be prioritized):';
}
return 'Please describe the issues you observed:';
},
placeholder: 'Describe the specific issues, their location, and how they affect usage...',
rows: 4,
isRequired: () => {
const urgency = issuesSection.radioButton('safetyUrgency')?.value();
return urgency === 'critical' || urgency === 'moderate';
}
});
});
 
// ============================================
// SECTION 5: Improvement Priorities
// ============================================
const prioritySection = form.addSubform('improvementPriorities', {
title: 'Improvement Priorities',
isVisible: () => ratingSection.starRating('overallCondition')?.value() !== null
});
 
prioritySection.addRow(row => {
row.addSlider('priorityLevel', {
label: 'How important is improving this infrastructure to you?',
min: 1,
max: 10,
step: 1,
defaultValue: 5,
showValue: true,
unit: '/ 10'
});
});
 
prioritySection.addRow(row => {
row.addRatingScale('investmentSupport', {
preset: 'likert-5',
label: 'I would support increased investment in this type of infrastructure',
lowLabel: 'Strongly disagree',
highLabel: 'Strongly agree',
alignment: 'center'
});
});
 
prioritySection.addSpacer();
 
prioritySection.addRow(row => {
row.addTextarea('suggestions', {
label: 'What specific improvements would you like to see?',
placeholder: 'Share your suggestions for improving this infrastructure...',
rows: 3,
autoExpand: true
});
});
 
// ============================================
// SECTION 6: Community Impact
// ============================================
const impactSection = form.addSubform('communityImpact', {
title: 'Community Impact',
isVisible: () => ratingSection.emojiRating('satisfaction')?.value() !== null
});
 
impactSection.addRow(row => {
row.addRatingScale('qualityOfLife', {
preset: 'nps',
label: 'How much does this infrastructure affect your quality of life?',
lowLabel: 'No impact',
highLabel: 'Major impact',
showSegmentColors: false,
alignment: 'center'
});
});
 
impactSection.addRow(row => {
row.addThumbRating('recommendImprovement', {
label: 'Would you recommend prioritizing improvements here?',
showLabels: true,
upLabel: 'Yes',
downLabel: 'No',
alignment: 'center'
});
});
 
// ============================================
// SECTION 7: Contact Information
// ============================================
const contactSection = form.addSubform('contactInfo', {
title: 'Contact Information (Optional)',
isVisible: () => typeSection.dropdown('category')?.value() !== null
});
 
contactSection.addRow(row => {
row.addCheckbox('allowContact', {
label: 'I would like to be notified about improvements to this infrastructure'
});
});
 
contactSection.addRow(row => {
row.addEmail('email', {
label: 'Email address',
placeholder: 'your@email.com',
isVisible: () => contactSection.checkbox('allowContact')?.value() === true,
isRequired: () => contactSection.checkbox('allowContact')?.value() === true
});
});
 
// ============================================
// SECTION 8: Summary
// ============================================
const summarySection = form.addSubform('summary', {
title: 'Feedback Summary',
isVisible: () => {
const category = typeSection.dropdown('category')?.value();
const rating = ratingSection.starRating('overallCondition')?.value();
return category !== null && rating !== null;
}
});
 
summarySection.addRow(row => {
row.addTextPanel('summaryContent', {
computedValue: () => {
const category = typeSection.dropdown('category')?.value();
const location = typeSection.textbox('location')?.value();
const frequency = typeSection.radioButton('usageFrequency')?.value();
const rating = ratingSection.starRating('overallCondition')?.value();
const satisfaction = ratingSection.emojiRating('satisfaction')?.value();
const priority = prioritySection.slider('priorityLevel')?.value() ?? 5;
const issues = issuesSection.checkboxList('issueTypes')?.value() ?? [];
const urgency = issuesSection.radioButton('safetyUrgency')?.value();
 
if (!category || rating === null || rating === undefined) return '';
 
const categoryNames: Record<string, string> = {
'roads': 'Roads & Streets',
'sidewalks': 'Sidewalks & Pathways',
'parks': 'Parks & Recreation',
'buildings': 'Public Buildings',
'utilities': 'Utilities',
'lighting': 'Street Lighting',
'transit': 'Transit Facilities',
'stormwater': 'Stormwater Systems'
};
 
const satisfactionLabels: Record<string, string> = {
'very-bad': 'Very Dissatisfied',
'bad': 'Dissatisfied',
'neutral': 'Neutral',
'good': 'Satisfied',
'excellent': 'Very Satisfied'
};
 
let summary = 'Feedback Summary\n';
summary += '═'.repeat(25) + '\n\n';
summary += `Infrastructure: ${categoryNames[category] || category}\n`;
if (location) {
summary += `Location: ${location}\n`;
}
if (frequency) {
summary += `Usage: ${frequency}\n`;
}
summary += `\nCondition: ${'★'.repeat(rating)}${'☆'.repeat(5 - rating)} (${rating}/5)\n`;
if (satisfaction) {
summary += `Satisfaction: ${satisfactionLabels[satisfaction] || satisfaction}\n`;
}
summary += `Priority: ${priority}/10\n`;
 
if (issues.length > 0) {
summary += `\nIssues reported: ${issues.length}`;
if (urgency === 'critical') {
summary += ' (URGENT SAFETY CONCERN)';
} else if (urgency === 'moderate') {
summary += ' (safety concern)';
}
}
 
return summary;
},
customStyles: () => {
const urgency = issuesSection.radioButton('safetyUrgency')?.value();
const rating = ratingSection.starRating('overallCondition')?.value();
const baseStyles = {
padding: '16px',
borderRadius: '8px',
whiteSpace: 'pre-wrap',
fontFamily: 'monospace',
fontSize: '14px'
};
 
if (urgency === 'critical') {
return { ...baseStyles, backgroundColor: '#fee2e2', borderLeft: '4px solid #dc2626' };
} else if (rating !== null && rating !== undefined && rating >= 4) {
return { ...baseStyles, backgroundColor: '#d1fae5', borderLeft: '4px solid #10b981' };
} else if (rating !== null && rating !== undefined && rating <= 2) {
return { ...baseStyles, backgroundColor: '#fef3c7', borderLeft: '4px solid #f59e0b' };
}
return { ...baseStyles, backgroundColor: '#e0e7ff', borderLeft: '4px solid #6366f1' };
}
});
});
 
// ============================================
// FORM CONFIGURATION
// ============================================
form.configureSubmitButton({
label: () => {
const urgency = issuesSection.radioButton('safetyUrgency')?.value();
if (urgency === 'critical') {
return 'Submit Urgent Report';
}
return 'Submit Feedback';
},
isVisible: () => typeSection.dropdown('category')?.value() !== null
});
 
form.configureCompletionScreen({
type: 'text',
title: 'Thank you for your feedback!',
message: 'Your input helps us prioritize infrastructure improvements and allocate resources effectively. If you reported a safety concern, our team will review it promptly.'
});
}
 

Frequently Asked Questions

What types of infrastructure can be rated?

The form covers major infrastructure categories including roads and streets, sidewalks and paths, parks and recreation areas, public buildings, utilities (water, sewer, electric), street lighting, public transportation facilities, and stormwater management systems.

Can citizens report urgent safety issues?

Yes, the form includes a priority flag for safety hazards. When citizens indicate a safety concern, additional fields appear to capture details. You can configure notifications to alert relevant departments immediately.

How is feedback prioritized?

The form includes condition ratings (Poor to Excellent) and impact assessments that help prioritize issues. Combined with usage frequency data, municipalities can identify high-impact improvement opportunities.

Can this be used for specific locations?

Yes, you can add address or location fields to pinpoint specific infrastructure. The form can be customized to include maps or location pickers for precise issue reporting.

How do I analyze the collected data?

Export responses to identify patterns by infrastructure type, location, or condition rating. The matrix format makes it easy to compare ratings across different aspects of each infrastructure category.

Can multiple infrastructure types be rated in one submission?

Yes, citizens can select and rate multiple infrastructure categories in a single submission. The form dynamically shows relevant sections based on their selections.