Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SIT-794 Campsite form post launch tweaks #2689

Merged
merged 18 commits into from
Dec 14, 2023
Merged

SIT-794 Campsite form post launch tweaks #2689

merged 18 commits into from
Dec 14, 2023

Conversation

jookyg
Copy link
Contributor

@jookyg jookyg commented Dec 8, 2023

  • Fixed typo in vehicle conf block
  • Updated ZD handler to send anonymous if no contact email provided
  • Removed email requirement
  • Made sure autocomplete is off for fields except contact
  • Add campsite_in_park tag and change group for Ranger campsite tickets
  • Updated IRP handler to use Developer form
  • Updated park maintenance from Next Steps for campsite to include link to updated service

… ZD handler to send anonymous if no contact email provided, removed email requirement, made sure autocomplete is off for fields except contact, add campsite_in_park tag and change group for Ranger campsite tickets, updated IRP handler to use Developer form
…rt a Campsite service link now that the new form is live
@jookyg jookyg changed the title SIT-794 post launch tweaks SIT-794 Campsite form post launch tweaks Dec 11, 2023
@@ -625,7 +624,7 @@ handlers:
collaborators: ''
custom_fields: "6353388345367: 'report_campsite'\r\n5581480390679: ['[webform_submission:values:report_location:location_lat]', 'report_location:location_lat']\r\n5581490332439: ['[webform_submission:values:report_location:location_lon]', 'report_location:location_lon']\r\n13407901552407: ['[webform_submission:values:report_location:location_x]', 'report_location:location_x']\r\n13407918835095: ['[webform_submission:values:report_location:location_y]', 'report_location:location_y']\r\n1500012743961: ['[webform_submission:values:report_location:location_address]', 'report_location:location_address']\r\n1500013095781: '[webform_submission:uuid]'\r\n9205221816983: ['[webform_submission:values:computed_property_type]', 'property_type']\r\n5873270225303: '[webform_submission:values:report_visible_items:checked:vehicle]'"
ticket_id_field: report_ticket_id
ticket_form_id: '5873307855767'
ticket_form_id: '4990038807319'
Copy link
Contributor Author

@jookyg jookyg Dec 11, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This changes the Zendesk form that's used for Campsite test tickets to Developer Test Form, so that the test reports don't get included in live data until CGIS is able to filter out the test group. It does not affect the campsite report schema or data export in any way.

priority: normal
status: new
group_id: '16341182522007'
group_id: '12927681093399'
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This changes the group for tickets assigned to the Park Rangers from Ranger Supervisors to Ranger Dispatch. It does not affect the campsite report schema or data export in any way.

…DA questions; make email required if requesting accommodation
@@ -567,6 +567,11 @@ public function submitTicket($submission_fields, $configuration, $webform_submis
$request['collaborators'] = preg_split("/[^a-z0-9_\-@\.']+/i", $request['collaborators'] );
if (!empty($request['ticket_form_id'])) $request['ticket_form_id'] = $this->configuration['ticket_form_id'];

// use anonymous if no requester set
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Uses the default anonymous email address if one is not required by the parent form. Zendesk requires an email address.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a test form; ignore.

'#description_display': before
'#options': yes_no
'#options_display': side_by_side
report_is_ada:
'#type': radios
'#title': 'Do you, or someone you legally represent (e.g. child, spouse), have a disability that is affected by this obstruction?'
'#options':
'yes': 'Yes, and I would like to request an accommodation'
'yes': 'Yes, and I would like to request an accommodation -- I have, or represent someone with, a disability covered under the Americans with Disabilities Act (ADA). The campsite is creating a barrier that preventing my/their access and I would like to request an accommodation. By checking this option, I acknowledge that the City may contact me to complete the ADA accommodation request process.'
'no report': 'Yes, but I do not want to request an ADA accommodation'
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added this option for users who are reporting a blockage of pedestrian access but don't want to request an accommodation. This change does not change the schema; it just adds another value that may be returned by this field.

'#pattern': '^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$'
'#pattern_error': 'Please enter a correctly formatted email address, such as myname@example.com.'
'#required': true
'#states':
required:
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes email address required if an ADA accommodation is requested.

@@ -368,7 +375,7 @@ settings:
form_open_message: ''
form_close_message: ''
form_exception_message: ''
form_previous_submissions: false
form_previous_submissions: true
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Enables a "you're previously submitted this form" message on the Drupal webform. It is only visible to logged in users, so the impact to community members is nil. It's been re-enabled because that's the default for webforms (not sure why it was turned off).

comment: "<h2>Location</h2>\r\n[webform_submission:values:report_location:html]\r\n<h2>Vehicle info</h2>\r\n<strong>Color:</strong> [webform_submission:values:report_vehicle:color]\r\n<br>\r\n<strong>License Plate Number:</strong> [webform_submission:values:report_vehicle:license_plate_number]\r\n<br>\r\n<strong>License Plate State:</strong> [webform_submission:values:report_vehicle:license_plate_state]\r\n<br>\r\n<strong>Make:</strong> [webform_submission:values:report_vehicle:make]\r\n<br>\r\n<strong>Type:</strong> [webform_submission:values:report_vehicle:type]"
tags: 'drupal webform'
comment: "<h2>Location</h2>\r\n[webform_submission:values:report_location:html]\r\n<h2>Vehicle info</h2>\r\n<strong>Color:</strong> [webform_submission:values:report_vehicle:color]\r\n<br>\r\n<strong>License Plate Number:</strong> [webform_submission:values:report_vehicle:license_plate_number]\r\n<br>\r\n<strong>License Plate State:</strong> [webform_submission:values:report_vehicle:license_plate_state]\r\n<br>\r\n<strong>Make:</strong> [webform_submission:values:report_vehicle:make]\r\n<br>\r\n<strong>Type:</strong> [webform_submission:values:report_vehicle:type]\r\n<br>\r\n<strong>Related campsite report:</strong> [webform_submission:values:report_ticket_id]"
tags: 'drupal webform campsite'
Copy link
Contributor Author

@jookyg jookyg Dec 12, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adds the campsite ticket id to the ticket description and adds the "campsite" tag to Abandoned Autos tickets. This handler is currently disabled.

priority: normal
status: new
group_id: '18716157058327'
assignee_id: ''
type: incident
collaborators: ''
custom_fields: "6353388345367: 'report_campsite'\r\n14510509580823: 'true'\r\n5581480390679: ['[webform_submission:values:report_location:location_lat]', 'report_location:location_lat']\r\n5581490332439: ['[webform_submission:values:report_location:location_lon]', 'report_location:location_lon']\r\n13407901552407: ['[webform_submission:values:report_location:location_x]', 'report_location:location_x']\r\n13407918835095: ['[webform_submission:values:report_location:location_y]', 'report_location:location_y']\r\n1500012743961: ['[webform_submission:values:report_location:location_address]', 'report_location:location_address']\r\n1500013095781: '[webform_submission:uuid]'\r\n9205221816983: ['[webform_submission:values:computed_property_type]', 'property_type']\r\n14971313641239: ['[webform_submission:values:report_vehicle:color:raw]', 'report_vehicle:color']\r\n5873310799383: ['[webform_submission:values:report_vehicle:license_plate_number]', 'report_vehicle:license_plate_number']\r\n18716068517783: ['[webform_submission:values:report_vehicle:license_plate_state:raw]', 'report_vehicle:license_plate_state']\r\n5873293014679: ['[webform_submission:values:report_vehicle:make:raw]', 'report_vehicle:make']\r\n14971350075799: ['[webform_submission:values:report_vehicle:type:raw]', 'report_vehicle:type']"
custom_fields: "6353388345367: 'report_campsite'\r\n14510509580823: 'true'\r\n5581480390679: ['[webform_submission:values:report_location:location_lat]', 'report_location:location_lat']\r\n5581490332439: ['[webform_submission:values:report_location:location_lon]', 'report_location:location_lon']\r\n13407901552407: ['[webform_submission:values:report_location:location_x]', 'report_location:location_x']\r\n13407918835095: ['[webform_submission:values:report_location:location_y]', 'report_location:location_y']\r\n1500012743961: ['[webform_submission:values:report_location:location_address]', 'report_location:location_address']\r\n1500013095781: '[webform_submission:uuid]'\r\n9205221816983: ['[webform_submission:values:computed_property_type]', 'property_type']\r\n14971313641239: ['[webform_submission:values:report_vehicle:color:raw]', 'report_vehicle:color']\r\n5873310799383: ['[webform_submission:values:report_vehicle:license_plate_number]', 'report_vehicle:license_plate_number']\r\n18716068517783: ['[webform_submission:values:report_vehicle:license_plate_state:raw]', 'report_vehicle:license_plate_state']\r\n5873293014679: ['[webform_submission:values:report_vehicle:make:raw]', 'report_vehicle:make']\r\n14971350075799: ['[webform_submission:values:report_vehicle:type:raw]', 'report_vehicle:type']\r\n8692493739543: '[webform_submission:values:report_ticket_id]'"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stores the related campsite ticket ID in the Abandoned Autos ticket, in the Related Ticket ID custom field in Zendesk. This custom field already exists but is not being added to the campsite form, so this does not change the schema. This handler is currently disabled.

tags: 'drupal webform'
priority: normal
status: new
group_id: '4549352062487'
assignee_id: ''
type: incident
collaborators: ''
custom_fields: "6353388345367: 'report_campsite'\r\n14510509580823: 'true'\r\n5581480390679: ['[webform_submission:values:report_location:location_lat]', 'report_location:location_lat']\r\n5581490332439: ['[webform_submission:values:report_location:location_lon]', 'report_location:location_lon']\r\n13407901552407: ['[webform_submission:values:report_location:location_x]', 'report_location:location_x']\r\n13407918835095: ['[webform_submission:values:report_location:location_y]', 'report_location:location_y']\r\n1500012743961: ['[webform_submission:values:report_location:location_address]', 'report_location:location_address']\r\n1500013095781: '[webform_submission:uuid]'\r\n9205221816983: ['[webform_submission:values:computed_property_type]', 'property_type']\r\n14971313641239: ['[webform_submission:values:report_vehicle:color:raw]', 'report_vehicle:color']\r\n5873310799383: ['[webform_submission:values:report_vehicle:license_plate_number]', 'report_vehicle:license_plate_number']\r\n18716068517783: ['[webform_submission:values:report_vehicle:license_plate_state:raw]', 'report_vehicle:license_plate_state']\r\n5873293014679: ['[webform_submission:values:report_vehicle:make:raw]', 'report_vehicle:make']\r\n14971350075799: ['[webform_submission:values:report_vehicle:type:raw]', 'report_vehicle:type']"
custom_fields: "6353388345367: 'report_campsite'\r\n14510509580823: 'true'\r\n5581480390679: ['[webform_submission:values:report_location:location_lat]', 'report_location:location_lat']\r\n5581490332439: ['[webform_submission:values:report_location:location_lon]', 'report_location:location_lon']\r\n13407901552407: ['[webform_submission:values:report_location:location_x]', 'report_location:location_x']\r\n13407918835095: ['[webform_submission:values:report_location:location_y]', 'report_location:location_y']\r\n1500012743961: ['[webform_submission:values:report_location:location_address]', 'report_location:location_address']\r\n1500013095781: '[webform_submission:uuid]'\r\n9205221816983: ['[webform_submission:values:computed_property_type]', 'property_type']\r\n14971313641239: ['[webform_submission:values:report_vehicle:color:raw]', 'report_vehicle:color']\r\n5873310799383: ['[webform_submission:values:report_vehicle:license_plate_number]', 'report_vehicle:license_plate_number']\r\n18716068517783: ['[webform_submission:values:report_vehicle:license_plate_state:raw]', 'report_vehicle:license_plate_state']\r\n5873293014679: ['[webform_submission:values:report_vehicle:make:raw]', 'report_vehicle:make']\r\n14971350075799: ['[webform_submission:values:report_vehicle:type:raw]', 'report_vehicle:type']\r\n8692493739543: '[webform_submission:values:report_ticket_id]'"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stores the related campsite ticket ID in the Abandoned Autos ticket, in the Related Ticket ID custom field in Zendesk. This custom field already exists but is not being added to the campsite form, so this does not change the schema. This handler is currently disabled.

tags: 'drupal webform campsite'
priority: normal
status: new
group_id: '4549352062487'
assignee_id: ''
type: incident
collaborators: ''
custom_fields: "6353388345367: 'report_campsite'\r\n5581480390679: ['[webform_submission:values:report_location:location_lat]', 'report_location:location_lat']\r\n5581490332439: ['[webform_submission:values:report_location:location_lon]', 'report_location:location_lon']\r\n13407901552407: ['[webform_submission:values:report_location:location_x]', 'report_location:location_x']\r\n13407918835095: ['[webform_submission:values:report_location:location_y]', 'report_location:location_y']\r\n1500012743961: ['[webform_submission:values:report_location:location_address]', 'report_location:location_address']\r\n1500013095781: '[webform_submission:uuid]'\r\n9205221816983: ['[webform_submission:values:computed_property_type]', 'property_type']\r\n5873270225303: '[webform_submission:values:report_visible_items:checked:vehicle]'"
custom_fields: "6353388345367: 'report_campsite'\r\n5581480390679: ['[webform_submission:values:report_location:location_lat]', 'report_location:location_lat']\r\n5581490332439: ['[webform_submission:values:report_location:location_lon]', 'report_location:location_lon']\r\n13407901552407: ['[webform_submission:values:report_location:location_x]', 'report_location:location_x']\r\n13407918835095: ['[webform_submission:values:report_location:location_y]', 'report_location:location_y']\r\n1500012743961: ['[webform_submission:values:report_location:location_address]', 'report_location:location_address']\r\n1500013095781: '[webform_submission:uuid]'\r\n9205221816983: ['[webform_submission:values:computed_property_type]', 'property_type']\r\n5873270225303: '[webform_submission:values:report_visible_items:checked:vehicle]'\r\n8692493739543: '[webform_submission:values:report_ticket_id]'"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stores the related campsite ticket ID in the ticket created for park rangers, in the Related Ticket ID custom field in Zendesk. This custom field already exists but is not being added to the campsite form, so this does not change the schema. This handler is currently disabled.

priority: normal
status: new
group_id: '4549352062487'
assignee_id: ''
type: incident
collaborators: ''
custom_fields: "6353388345367: 'report_campsite'\r\n5581480390679: ['[webform_submission:values:report_location:location_lat]', 'report_location:location_lat']\r\n5581490332439: ['[webform_submission:values:report_location:location_lon]', 'report_location:location_lon']\r\n13407901552407: ['[webform_submission:values:report_location:location_x]', 'report_location:location_x']\r\n13407918835095: ['[webform_submission:values:report_location:location_y]', 'report_location:location_y']\r\n1500012743961: ['[webform_submission:values:report_location:location_address]', 'report_location:location_address']\r\n1500013095781: '[webform_submission:uuid]'\r\n9205221816983: ['[webform_submission:values:computed_property_type]', 'property_type']\r\n5873270225303: '[webform_submission:values:report_visible_items:checked:vehicle]'"
custom_fields: "6353388345367: 'report_campsite'\r\n5581480390679: ['[webform_submission:values:report_location:location_lat]', 'report_location:location_lat']\r\n5581490332439: ['[webform_submission:values:report_location:location_lon]', 'report_location:location_lon']\r\n13407901552407: ['[webform_submission:values:report_location:location_x]', 'report_location:location_x']\r\n13407918835095: ['[webform_submission:values:report_location:location_y]', 'report_location:location_y']\r\n1500012743961: ['[webform_submission:values:report_location:location_address]', 'report_location:location_address']\r\n1500013095781: '[webform_submission:uuid]'\r\n9205221816983: ['[webform_submission:values:computed_property_type]', 'property_type']\r\n5873270225303: '[webform_submission:values:report_visible_items:checked:vehicle]'\r\n8692493739543: '[webform_submission:values:report_ticket_id]'"
Copy link
Contributor Author

@jookyg jookyg Dec 12, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stores the related campsite ticket ID in the ADA accommodation ticket, in the Related Ticket ID custom field in Zendesk. This custom field already exists but is not being added to the campsite form, so this does not change the schema. This handler is currently disabled.

priority: normal
status: new
group_id: '4763233132567'
assignee_id: ''
type: incident
collaborators: ''
custom_fields: "6353388345367: 'report_campsite'\r\n5581480390679: ['[webform_submission:values:report_location:location_lat]', 'report_location:location_lat']\r\n5581490332439: ['[webform_submission:values:report_location:location_lon]', 'report_location:location_lon']\r\n13407901552407: ['[webform_submission:values:report_location:location_x]', 'report_location:location_x']\r\n13407918835095: ['[webform_submission:values:report_location:location_y]', 'report_location:location_y']\r\n1500012743961: ['[webform_submission:values:report_location:location_address]', 'report_location:location_address']\r\n1500013095781: '[webform_submission:uuid]'\r\n9205221816983: ['[webform_submission:values:computed_property_type]', 'property_type']\r\n5873270225303: '[webform_submission:values:report_visible_items:checked:vehicle]'"
custom_fields: "6353388345367: 'report_campsite'\r\n5581480390679: ['[webform_submission:values:report_location:location_lat]', 'report_location:location_lat']\r\n5581490332439: ['[webform_submission:values:report_location:location_lon]', 'report_location:location_lon']\r\n13407901552407: ['[webform_submission:values:report_location:location_x]', 'report_location:location_x']\r\n13407918835095: ['[webform_submission:values:report_location:location_y]', 'report_location:location_y']\r\n1500012743961: ['[webform_submission:values:report_location:location_address]', 'report_location:location_address']\r\n1500013095781: '[webform_submission:uuid]'\r\n9205221816983: ['[webform_submission:values:computed_property_type]', 'property_type']\r\n5873270225303: '[webform_submission:values:report_visible_items:checked:vehicle]'\r\n8692493739543: '[webform_submission:values:report_ticket_id]'"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stores the related campsite ticket ID in the ADA accommodation ticket, in the Related Ticket ID custom field in Zendesk. This custom field already exists but is not being added to the campsite form, so this does not change the schema. This handler is currently disabled.

…DA questions; make email required if requesting accommodation
@@ -256,6 +257,9 @@ elements: |-
visible:
':input[name="report_is_ada"]':
value: 'yes'
required:
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes name required if an ADA accommodation is requested.

comment: "<h2>Location</h2>\r\n[webform_submission:values:report_location:html]\r\n<h2>Vehicle info</h2>\r\n<strong>Color:</strong> [webform_submission:values:report_vehicle:color]\r\n<br>\r\n<strong>License Plate Number:</strong> [webform_submission:values:report_vehicle:license_plate_number]\r\n<br>\r\n<strong>License Plate State:</strong> [webform_submission:values:report_vehicle:license_plate_state]\r\n<br>\r\n<strong>Make:</strong> [webform_submission:values:report_vehicle:make]\r\n<br>\r\n<strong>Type:</strong> [webform_submission:values:report_vehicle:type]"
tags: 'drupal webform'
comment: "<h2>Location</h2>\r\n[webform_submission:values:report_location:html]\r\n<h2>Vehicle info</h2>\r\n<strong>Color:</strong> [webform_submission:values:report_vehicle:color]\r\n<br>\r\n<strong>License Plate Number:</strong> [webform_submission:values:report_vehicle:license_plate_number]\r\n<br>\r\n<strong>License Plate State:</strong> [webform_submission:values:report_vehicle:license_plate_state]\r\n<br>\r\n<strong>Make:</strong> [webform_submission:values:report_vehicle:make]\r\n<br>\r\n<strong>Type:</strong> [webform_submission:values:report_vehicle:type]\r\n<br>\r\n<strong>Related campsite report:</strong>\r\n[webform_submission:values:report_ticket_id]"
tags: 'drupal webform campsite'
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adds the campsite ticket id to the ticket description and adds the "campsite" tag to Abandoned Autos tickets. This handler is currently disabled.

comment: "<h2>Location</h2>\r\n[webform_submission:values:report_location:html]\r\n<h2>Vehicle info</h2>\r\n<strong>Color:</strong> [webform_submission:values:report_vehicle:color]\r\n<br>\r\n<strong>License Plate Number:</strong> [webform_submission:values:report_vehicle:license_plate_number]\r\n<br>\r\n<strong>License Plate State:</strong> [webform_submission:values:report_vehicle:license_plate_state]\r\n<br>\r\n<strong>Make:</strong> [webform_submission:values:report_vehicle:make]\r\n<br>\r\n<strong>Type:</strong> [webform_submission:values:report_vehicle:type]"
tags: 'drupal webform'
comment: "<h2>Location</h2>\r\n[webform_submission:values:report_location:html]\r\n<h2>Vehicle info</h2>\r\n<strong>Color:</strong> [webform_submission:values:report_vehicle:color]\r\n<br>\r\n<strong>License Plate Number:</strong> [webform_submission:values:report_vehicle:license_plate_number]\r\n<br>\r\n<strong>License Plate State:</strong> [webform_submission:values:report_vehicle:license_plate_state]\r\n<br>\r\n<strong>Make:</strong> [webform_submission:values:report_vehicle:make]\r\n<br>\r\n<strong>Type:</strong> [webform_submission:values:report_vehicle:type]\r\n<br>\r\n<strong>Related campsite report:</strong>\r\n[webform_submission:values:report_ticket_id]"
tags: 'drupal webform campsite'
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adds the campsite ticket id to the ticket description and adds the "campsite" tag to Abandoned Autos tickets. This handler is currently disabled.

@@ -706,15 +713,15 @@ handlers:
requester_name: contact_name
requester_email: contact_email
subject: 'Campsite Report Inside Park'
comment: "A campsite has been reported inside of a park by a community member:\r\n\r\n[webform_submission:values:html]"
tags: 'drupal webform campsite'
comment: "A campsite has been reported inside of a park by a community member:\r\n\r\n[webform_submission:values:html]\r\n\r\n<br><strong>Related campsite report:</strong>\r\n[webform_submission:values:report_ticket_id]"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adds the campsite report ticket ID to the ticket description for park rangers.

comment: "A campsite has been reported inside of a park by a community member:\r\n\r\n[webform_submission:values:html]"
tags: 'drupal webform campsite'
comment: "A campsite has been reported inside of a park by a community member:\r\n\r\n[webform_submission:values:html]\r\n\r\n<br><strong>Related campsite report:</strong>\r\n[webform_submission:values:report_ticket_id]"
tags: 'drupal webform campsite campsite_in_park'
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adds a more helpful tag

@@ -737,15 +744,15 @@ handlers:
requester_name: contact_name
requester_email: contact_email
subject: 'Campsite Report Inside Park'
comment: "A campsite has been reported inside of a park by a community member:\r\n\r\n[webform_submission:values:html]"
tags: 'drupal webform campsite'
comment: "A campsite has been reported inside of a park by a community member:\r\n\r\n[webform_submission:values:html]\r\n\r\n<br><strong>Related campsite report:</strong>\r\n[webform_submission:values:report_ticket_id]"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adds the campsite report ticket ID to the ticket description for park rangers.

comment: "A campsite has been reported inside of a park by a community member:\r\n\r\n[webform_submission:values:html]"
tags: 'drupal webform campsite'
comment: "A campsite has been reported inside of a park by a community member:\r\n\r\n[webform_submission:values:html]\r\n\r\n<br><strong>Related campsite report:</strong>\r\n[webform_submission:values:report_ticket_id]"
tags: 'drupal webform campsite campsite_in_park'
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adds a more helpful tag

assignee_id: ''
type: incident
collaborators: ''
custom_fields: "6353388345367: 'report_campsite'\r\n5581480390679: ['[webform_submission:values:report_location:location_lat]', 'report_location:location_lat']\r\n5581490332439: ['[webform_submission:values:report_location:location_lon]', 'report_location:location_lon']\r\n13407901552407: ['[webform_submission:values:report_location:location_x]', 'report_location:location_x']\r\n13407918835095: ['[webform_submission:values:report_location:location_y]', 'report_location:location_y']\r\n1500012743961: ['[webform_submission:values:report_location:location_address]', 'report_location:location_address']\r\n1500013095781: '[webform_submission:uuid]'\r\n9205221816983: ['[webform_submission:values:computed_property_type]', 'property_type']\r\n5873270225303: '[webform_submission:values:report_visible_items:checked:vehicle]'"
custom_fields: "6353388345367: 'report_campsite'\r\n5581480390679: ['[webform_submission:values:report_location:location_lat]', 'report_location:location_lat']\r\n5581490332439: ['[webform_submission:values:report_location:location_lon]', 'report_location:location_lon']\r\n13407901552407: ['[webform_submission:values:report_location:location_x]', 'report_location:location_x']\r\n13407918835095: ['[webform_submission:values:report_location:location_y]', 'report_location:location_y']\r\n1500012743961: ['[webform_submission:values:report_location:location_address]', 'report_location:location_address']\r\n1500013095781: '[webform_submission:uuid]'\r\n9205221816983: ['[webform_submission:values:computed_property_type]', 'property_type']\r\n5873270225303: '[webform_submission:values:report_visible_items:checked:vehicle]'\r\n8692493739543: '[webform_submission:values:report_ticket_id]'"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stores the related campsite ticket ID in the ticket created for park rangers, in the Related Ticket ID custom field in Zendesk. This custom field already exists but is not being added to the campsite form, so this does not change the schema. This handler is currently disabled.

@@ -767,15 +774,15 @@ handlers:
requester_name: contact_name
requester_email: contact_email
subject: 'Campsite ADA Accommodation Request'
comment: "A campsite has been reported and the community member requested an ADA accommodation:\r\n\r\n[webform_submission:values:html]"
tags: 'drupal webform campsite'
comment: "A campsite has been reported and the community member requested an ADA accommodation:\r\n\r\n[webform_submission:values:html]\r\n\r\n<br><strong>Related campsite report:</strong>\r\n[webform_submission:values:report_ticket_id]"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adds the campsite report ticket ID to the ticket description for ADA coordinators.

comment: "A campsite has been reported and the community member requested an ADA accommodation:\r\n\r\n[webform_submission:values:html]"
tags: 'drupal webform campsite'
comment: "A campsite has been reported and the community member requested an ADA accommodation:\r\n\r\n[webform_submission:values:html]\r\n\r\n<br><strong>Related campsite report:</strong>\r\n[webform_submission:values:report_ticket_id]"
tags: 'drupal webform campsite ada_campsite'
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adds a more helpful tag.

@@ -797,15 +804,15 @@ handlers:
requester_name: contact_name
requester_email: contact_email
subject: 'Campsite ADA Accommodation Request'
comment: "A campsite has been reported and the community member requested an ADA accommodation:\r\n\r\n[webform_submission:values:html]"
tags: 'drupal webform campsite'
comment: "A campsite has been reported and the community member requested an ADA accommodation:\r\n\r\n[webform_submission:values:html]\r\n\r\n<br><strong>Related campsite report:</strong>\r\n[webform_submission:values:report_ticket_id]"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adds the campsite report ticket ID to the ticket description for ADA coordinators.

comment: "A campsite has been reported and the community member requested an ADA accommodation:\r\n\r\n[webform_submission:values:html]"
tags: 'drupal webform campsite'
comment: "A campsite has been reported and the community member requested an ADA accommodation:\r\n\r\n[webform_submission:values:html]\r\n\r\n<br><strong>Related campsite report:</strong>\r\n[webform_submission:values:report_ticket_id]"
tags: 'drupal webform campsite ada_campsite'
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adds a more helpful tag.

'no': 'No'
'no report': 'Yes, but I do not want to request an ADA accommodation'
'yes': 'Yes, and I would like to request an ADA accommodation -- I have, or represent someone with, a disability covered under the Americans with Disabilities Act (ADA). The campsite is creating a barrier that preventing my/their access and I would like to request an accommodation. By checking this option, I acknowledge that the City may contact me to complete the ADA accommodation request process.'
Copy link
Contributor Author

@jookyg jookyg Dec 12, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added "no request" option and changed order of radio button options

'#description_display': before
'#options': yes_no
'#options':
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changed the order of radio button options

@@ -351,7 +360,7 @@ elements: |-
{% endif %}

'#ajax': true
css: "div.form-item-report-vehicle .webform-multiple-table tbody tr:hover,\r\ndiv.form-item-report-vehicle .webform-multiple-table tbody tr:focus {\r\n background: inherit;\r\n}\r\n\r\ndiv.form-item-report-vehicle .webform-multiple-table tbody {\r\n counter-reset: vehicle;\r\n}\r\n\r\ndiv.form-item-report-vehicle .webform-multiple-table tbody td {\r\n padding: 0;\r\n}\r\n\r\ndiv.form-item-report-vehicle .webform-multiple-table tbody tr {\r\n display: block;\r\n margin-bottom: 1rem;\r\n}\r\n\r\ndiv.form-item-report-vehicle .webform-multiple-table tbody tr::before {\r\n counter-increment: vehicle;\r\n content: \"Vehicle \" counter(vehicle);\r\n display: block;\r\n font-size: 1.5rem;\r\n font-weight: 600;\r\n line-height: 1.3333333333;\r\n margin: 0 0 1rem;\r\n}\r\n\r\ndiv.form-item-report-vehicle .webform-multiple-table .form-control {\r\n width: 100%;\r\n}"
css: "div.form-item-report-vehicle .webform-multiple-table tbody tr:hover,\r\ndiv.form-item-report-vehicle .webform-multiple-table tbody tr:focus {\r\n background: inherit;\r\n}\r\n\r\ndiv.form-item-report-vehicle .webform-multiple-table tbody {\r\n counter-reset: vehicle;\r\n}\r\n\r\ndiv.form-item-report-vehicle .webform-multiple-table tbody td {\r\n padding: 0;\r\n}\r\n\r\ndiv.form-item-report-vehicle .webform-multiple-table tbody tr {\r\n display: block;\r\n margin-bottom: 1rem;\r\n}\r\n\r\ndiv.form-item-report-vehicle .webform-multiple-table tbody tr::before {\r\n counter-increment: vehicle;\r\n content: \"Vehicle \" counter(vehicle);\r\n display: block;\r\n font-size: 1.5rem;\r\n font-weight: 600;\r\n line-height: 1.3333333333;\r\n margin: 0 0 1rem;\r\n}\r\n\r\ndiv.form-item-report-vehicle .webform-multiple-table .form-control {\r\n width: 100%;\r\n}\r\n\r\ndiv.form-item-support-agent-use-only-zendesk-request-number {\r\n display: none;\r\n}"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Visually hide Zendesk ID field in Customer Service Use Only block.

@jookyg jookyg requested a review from odensc December 14, 2023 20:43
@odensc odensc merged commit 3effc7f into master Dec 14, 2023
3 checks passed
@odensc odensc deleted the sit-794 branch December 14, 2023 23:20
odensc added a commit that referenced this pull request Jan 17, 2024
* SIT-794 post launch tweaks: fixed typo in vehicle conf block, updated ZD handler to send anonymous if no contact email provided, removed email requirement, made sure autocomplete is off for fields except contact, add campsite_in_park tag and change group for Ranger campsite tickets, updated IRP handler to use Developer form

* SIT-794 updated next steps block in park maintenance form to use Report a Campsite service link now that the new form is live

* SIT-794 add IRP ticket id to AbAuto, Parks, and ADA tickets; update ADA questions; make email required if requesting accommodation

* SIT-794 add IRP ticket id to AbAuto, Parks, and ADA tickets; update ADA questions; make email required if requesting accommodation

* SIT-794 add campsite tag to AbAutos test tickets

* SIT-794 changed order of answers on ADA accomodation field

* SIT-794 switched ADA question order

* SIT-794 updated zendesk handler to check for ticket ID from previous handler submission

* SIT-794 removed extra spaces

* SIT-794 removed space

* SIT-794 add hash symbol before campsite report ticket ID in ADA tickets, so that Zendesk turns it into a link

* SIT-794 changed value of new ADA option to 'no report'

* SIT-794 hide zendesk ticket ID field in CSUO block

* SIT-794 fix typo

* SIT-794 removed public records statement from ADA accommodation form

* SIT-794 demographics hotfix

* SIT-794 fix anon email

---------

Co-authored-by: Oden <hello@odensc.com>
odensc added a commit that referenced this pull request Apr 8, 2024
* CS-585 added Next Steps block for graffiti kit request, added waiver language.

* CS-622 implement JSON form data field

* CS-585 updated location widget to include layer type 'RegionHidden' so that regions are invisible in TSUP form.

* CS-585 reverted change to tsup form, added options to graffiti resolution

* CS-188 rebase on top of cs-622

* CS-585 updated variable names, updated widget logic for new geofencing functionality

* CS-585 removed commented code from widget, removed custom submit button because it was preventing handlers from firing.

* CS-585 removed geofencing from graffiti form; had been added for testing purposes only

* CS-585 made 'What would you like to request' question optional.

* CS-585 on graffiti form, fixed token for private property type; on resolution form, moved the other resolution to right below the resolution radios

* CS-585 make require_city_limits_plus_parks default value FALSE

* CS-585 fix geofencing defaults

* CS-585 removed a big block of obsolete commented code

* CS-585 removed typo

* CS-188 add geocortex link, multiple change request ids

* CS-188 clean up wording and add change request link to complex

* CS-188 error logic changes

* CS-188 update permit_location machine name + update ticket description formatting

* CS-188 fix primary street not showing for simple permits

* CS-188 update to new location picker + fix small date bug

* PGOV-1020 adding My Events view to My Content (#2676)

* PGOV-1020 adding My Events view to My Content

* PGOV-1020 default sort and label change

* PGOV-1029 Update remove_http_headers to prevent build failure (#2686)

* SIT-766-1 race condition bug fix (#2687)

* SIT-765 enable place name field at Lucas' request

* SIT-766 enable Place Name field

* SIT-766 added disable place name autofill config option

* SIT-766 final form updates

* SIT-766 text formatting minor updates

* SIT-766 updated confirmation verbiage, fixed bug that was clearing place name field when it shouldn't

* SIT-766 tweaks to confirmation messages

* SIT-766 fixed bug in location widget that caused point to be selected on postback with validatio errors

* SIT-766 rearranged private property answers and updated verbiage

* SIT-766 turned off previous submissions feature

* SIT-766 fixed location widget bug that prevented location_address from being populated when pressing enter or the search button on address searches

* SIT-766 update to private property next steps, vehicle next steps, ADA question, and confirmation message

* SIT-766 added sentence to confirmation at Lucas' request

* SIT-766-1 added timeout check when checking boundaries to prevent race condition bug, added ajax loading indicator.

* SIT-766-1 added timeout checker on regions layer

* SIT-766-1 hide loader when status or error modals are displayed.

* SIT-766-1 removed commented code, cleanup

* SIT-766-1 removed commented code, cleanup

* SIT-766-1 added accessible loading message

* SIT-766-1 fixed heading levels

* SIT-766 Skip the deletion of multi-dev

---------

Co-authored-by: Kevin Wang <xinju.wang@portlandoregon.gov>

* PGOV-620 Disable views_infinite_scroll (#2685)

* PGOV-620 Disable views_infinite_scroll

* PGOV-620 Fix page displays for upcoming and past events

* PGOV-620 Allow editor to see unpublished events in related events page

* PGOV-620 Restore multi-dev deletion code commented out for SIT-766-1

* PGOV-620 Fix events on content blocks

* SIT-794 Campsite form post launch tweaks (#2689)

* SIT-794 post launch tweaks: fixed typo in vehicle conf block, updated ZD handler to send anonymous if no contact email provided, removed email requirement, made sure autocomplete is off for fields except contact, add campsite_in_park tag and change group for Ranger campsite tickets, updated IRP handler to use Developer form

* SIT-794 updated next steps block in park maintenance form to use Report a Campsite service link now that the new form is live

* SIT-794 add IRP ticket id to AbAuto, Parks, and ADA tickets; update ADA questions; make email required if requesting accommodation

* SIT-794 add IRP ticket id to AbAuto, Parks, and ADA tickets; update ADA questions; make email required if requesting accommodation

* SIT-794 add campsite tag to AbAutos test tickets

* SIT-794 changed order of answers on ADA accomodation field

* SIT-794 switched ADA question order

* SIT-794 updated zendesk handler to check for ticket ID from previous handler submission

* SIT-794 removed extra spaces

* SIT-794 removed space

* SIT-794 add hash symbol before campsite report ticket ID in ADA tickets, so that Zendesk turns it into a link

* SIT-794 changed value of new ADA option to 'no report'

* SIT-794 hide zendesk ticket ID field in CSUO block

* SIT-794 fix typo

* SIT-794 removed public records statement from ADA accommodation form

* SIT-794 demographics hotfix

* SIT-794 fix anon email

---------

Co-authored-by: Oden <hello@odensc.com>

* PGOV-1025 Make "Online Application" field on services translatable (#2690)

* SIT-784 towing complaint form updates v1.1 (#2692)

* SIT-784 towing complaint form updates v1.1

* SIT-784 make employee email readonly and fix support agent field permissions

* SIT-848 disable campsite confirmation email handler if anonymous (#2693)

* SIT-848 disable campsite confirmation email handler if report filed anonymously

* SIT-848 fixed typo in auto confirmation

* SIT-845 add boundary and incident layer to hazardous tree form + towing complaints v1.1 (#2695)

* SIT-845 add boundary and incident layer to hazardous tree form

* SIT-845 change marker icon

* SIT-845 remove pager

* SIT-845 ticket description formatting, out of bounds message, & more custom fields

* SIT-845 remove "none" empty value from standard unit type field

Prior behavior causes any usage of the token to show "none" when the address has no unit number. Instead we can just check for an empty string.

* PGOV-1032 Create new "code review" state in council document workflow (#2697)

* PGOV-1032 Create new "code review" state in council document workflow

Functionally identical to the "council clerk review" state, so we copy the same transitios and permission setup, and then add "code review" to any transitions where "council clerk review" was allowed.

* PGOV-1032 Add new state to notify_reviewer

* PGOV-1031 Update core to 10.1.7 and update modules (#2691)

* PGOV-1031 Update core to 10.1.7. Update all modules except entity_browser

* PGOV-1031 Disable rendering on field_geolocation_1

* PGOV-1031 Update to Core 10.2.0

* PGOV-1031 Export config after Core 10.2 update

* PGOV-1031 Patch entity_browser_table

* PGOV-1031 Update "drupal/csv_serialization" to 4.0

* PGOV-1031 Remove the Project Map view

* PGOV-1037 Skip the site status test until CKEditor is updated (#2699)

* SIT-917 add road condition field (#2702)

* CS-188 add friendly permit type/reason and fix side-by-side button display

* CS-188 fix confirmation message typos

* PGOV-1040 Drupal 10.2.2 update / module updates

* CS-188 update permit type names

* CS-188 changes to support more zendesk custom fields

* CS-188 revert unnecessary changes to other webforms

* CS-188 add permit type to ticket subject

* CS-188 fix config conflict

---------

Co-authored-by: Oden <hello@odensc.com>
Co-authored-by: Casey Cushing <42975136+ccdatapdx@users.noreply.github.com>
Co-authored-by: kxwang <xinju.wang@portlandoregon.gov>
Co-authored-by: Richard Davies <richard.davies@portlandoregon.gov>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants