# HubSpot Form Fields - Manual Addition Required


**Last Updated:** 2025-11-20

**Date:** 2025-11-20

## Overview

The following forms need manual field additions in HubSpot form editor to support complete sign_up_type\_\_c and content coverage. Code has been updated to send these fields, but the form fields must be added manually in HubSpot.

## Forms Requiring Manual Field Additions

### 1. shiftops-nps Form

**Form GUID:** `804459f7-c18d-4da6-8a0b-a81f44bb8275`  
**Form Name:** ShiftOps Beta NPS Survey

**Fields to Add:**

- `sign_up_type__c` (single_line_text, hidden, optional)
  - **Value sent by code:** "Tools Page"
  - **Property:** Sign up type (sign_up_type\_\_c)
- `content` (single_line_text, hidden, optional)
  - **Value sent by code:** "ShiftOps NPS"
  - **Property:** Content (content)

**Status:** Code updated ✅ | Form fields need manual addition ⏳

### 2. addon-request Form

**Form GUID:** `c2022eda-c9b4-4010-a02d-d920852585b1`  
**Form Name:** Pricing Inquiry Form

**Fields to Add:**

- `content` (single_line_text, hidden, optional)
  - **Value sent by code:** Addon name (e.g., "Zeiterfassung", "Schichtplanung", "Enterprise") or "Add-on Pricing Inquiry" as fallback
  - **Property:** Content (content)

**Note:** Form already has `sign_up_type__c` field ✅

**Status:** Code updated ✅ | Form field needs manual addition ⏳

### 3. lead-capture Form

**Form GUID:** `9f9d4e35-d8d9-4283-93b6-1a789e0a1281`  
**Form Name:** Lead Capture Popup

**Fields to Add:**

- `content` (single_line_text, hidden, optional)
  - **Value sent by code:** "Lead Capture - {sourcePage}" or "Lead Capture" if sourcePage is empty
  - **Property:** Content (content)

**Note:** Form already has `sign_up_type__c` field ✅

**Status:** Code updated ✅ | Form field needs manual addition ⏳

## Forms Using CRM API (No Form Fields Needed)

The following endpoints use CRM API v3, so they can set properties directly without requiring form fields:

### webinar-registration.php

- **sign_up_type\_\_c:** "Webinar Registration" ✅
- **content:** "Ordio Produkt-Webinar" ✅
- **Status:** Code updated ✅ | No form fields needed ✅

### payroll-webinar-registration.php

- **sign_up_type\_\_c:** "Webinar Registration" ✅
- **content:** "Ordio Payroll Webinar" ✅
- **Status:** Code updated ✅ | No form fields needed ✅

## Instructions for Manual Field Addition

1. **Navigate to HubSpot Form Editor**

   - Go to Marketing > Forms
   - Open the form by GUID or name

2. **Add Hidden Fields**

   - Click "Add field" or drag from field library
   - Select the property (e.g., "Content" for `content` field)
   - Set field visibility to "Hidden"
   - Set field as optional (not required)
   - Save form

3. **Verify Field Mapping**
   - Ensure field name matches exactly (e.g., `content` not `content__c`)
   - Verify property association is correct
   - Test with a submission to confirm capture

## Code Changes Summary

### Updated Files:

1. `v2/api/shiftops-nps.php` - Added sign_up_type\_\_c and content fields
2. `v2/api/addon-request.php` - Added content field
3. `v2/api/lead-capture.php` - Added content field
4. `v2/api/webinar-registration.php` - Added content property
5. `v2/api/payroll-webinar-registration.php` - Added content property

### Values Added:

- **shiftops-nps:** sign_up_type\_\_c="Tools Page", content="ShiftOps NPS"
- **addon-request:** content={addon name} or "Add-on Pricing Inquiry"
- **lead-capture:** content="Lead Capture - {sourcePage}" or "Lead Capture"
- **webinar-registration:** content="Ordio Produkt-Webinar"
- **payroll-webinar-registration:** content="Ordio Payroll Webinar"

## Next Steps

1. ✅ Code updated for all forms
2. ✅ Form fields manually added in HubSpot (all forms)
3. ✅ Test submissions completed after field additions
4. ✅ Field capture verified in HubSpot
5. ✅ Documentation updated with verification results

## Verification Results

**Date:** 2025-11-20

All form fields have been manually added and verified:

- ✅ **shiftops-nps:** sign_up_type\_\_c and content fields added and capturing correctly
- ✅ **addon-request:** content field added and capturing correctly
- ✅ **lead-capture:** content field added and capturing correctly

**Test Results:**

- shiftops-nps: sign_up_type\_\_c="Tools Page", content="ShiftOps NPS" ✅
- addon-request: sign_up_type\_\_c="Add-on Pricing Inquiry", content="Test Addon" ✅
- lead-capture: sign_up_type\_\_c="Lead Capture Form", content="Lead Capture" ✅
- webinar-registration: sign_up_type\_\_c="Webinar Registration", content="Ordio Produkt-Webinar" ✅
- payroll-webinar-registration: sign_up_type\_\_c="Webinar Registration", content="Ordio Payroll Webinar" ✅

**Status:** ✅ **COMPLETE** - All forms verified and working correctly
