# shiftops-hubspot.php Missing Fields Documentation


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

**Date:** 2025-11-20  
**Form:** ShiftOps Grader Lead Capture (41d07332-6697-4daa-b27e-dd60515f9c0f)

## Missing Fields Analysis

### Fields Missing from Form

The following fields are sent by code but are NOT present in the HubSpot form:

1. **hs_lead_status**

   - **Code Status:** NOT sent by shiftops-hubspot.php
   - **Form Status:** Missing from form
   - **Impact:** Lead status not set automatically
   - **Action:** Add to form if needed, or add to code if form has field

2. **industry**

   - **Code Status:** NOT sent by shiftops-hubspot.php
   - **Form Status:** Missing from form
   - **Impact:** Industry information not captured
   - **Action:** Add to form if needed, or add to code if form has field

3. **company_size**
   - **Code Status:** NOT sent by shiftops-hubspot.php
   - **Form Status:** Missing from form
   - **Impact:** Company size information not captured
   - **Action:** Add to form if needed, or add to code if form has field

## Current Form Status

**Form Fields Present:** 20 total

- ✅ email, firstname, lastname, company, phone
- ✅ sign_up_type\_\_c, content, tool_type
- ✅ shiftops_index, grade (recently added)
- ✅ description, calculation_data
- ✅ All UTM fields (source**c, utm_medium**c, utm_campaign**c, utm_term**c, content\_\_c)
- ✅ gclid**c, leadsource, partner**c

**Fields Sent by Code:** 17 total

- ✅ email, firstname, lastname, company
- ✅ sign_up_type\_\_c, content, tool_type
- ✅ shiftops_index, grade
- ✅ description, calculation_data
- ✅ All UTM fields
- ✅ gclid**c, leadsource, partner**c

## Code Analysis

**File:** v2/api/shiftops-hubspot.php

**Fields NOT Sent:**

- hs_lead_status - Not in code
- industry - Not in code
- company_size - Not in code

**Conclusion:** These fields are neither sent by code nor present in the form. They may be intentionally omitted, or they may need to be added to both code and form.

## Recommendations

### Option 1: Add Fields to Form Only

If these fields are not needed for ShiftOps submissions, no action required.

### Option 2: Add Fields to Both Code and Form

If these fields are needed:

1. Add hs_lead_status, industry, company_size to HubSpot form
2. Add code to send these fields in shiftops-hubspot.php
3. Update property-mapping.php to include these fields

### Option 3: Verify Intent

Check if these fields are intentionally omitted for ShiftOps submissions (different from other tools).

## Verification

**Form Field Check:** ✅ Complete (10/10 expected fields present)  
**Code Field Check:** ✅ Complete (all sent fields match form)  
**Missing Fields:** 3 (hs_lead_status, industry, company_size) - Not sent by code, not in form

**Status:** These fields appear to be intentionally omitted. Verify if they should be added or if this is by design.
