← Back to Setup Docs

How to Auto-Fill WPForms & Gravity Forms with a UK Number Plate

Unlike Contact Form 7, WPForms and Gravity Forms generate numeric field names like wpforms[fields][4] or input_4—which breaks simple name-based lookup scripts.

RegPilot Pro solves this cleanly using lightweight CSS wrapper classes. You don't need to touch PHP or edit theme files.

Step 1: Add the RegPilot Block Above Your Form

In the WordPress Block Editor, insert the RegPilot — UK Reg Lookup block directly above your WPForms or Gravity Forms block (set Display Mode to Compact Form Auto-Fill Bar).

Step 2: Add RegPilot CSS Classes to Your Form Fields

Click any field in WPForms (Advanced → CSS Classes) or Gravity Forms (Appearance → Custom CSS Class) and add the matching class:

rp-field-reg         → UK Registration Plate (AB21 CDE)
rp-field-make        → Make (FORD)
rp-field-model       → Model (TRANSIT CUSTOM 300 LIMITED)
rp-field-year        → Year (2021)
rp-field-fuel        → Fuel Type (Diesel / Petrol / Electricity)
rp-field-engine      → Engine Capacity (1,996cc / Electric)
rp-field-tier        → Service Pricing Tier (Small / Medium / Large / EV)
rp-field-colour      → Colour
rp-field-mot-expiry  → MOT Expiry Date
rp-field-mot-status  → MOT Badge Status
rp-field-tax         → Road Tax Status
rp-field-mileage     → Last Recorded MOT Mileage
rp-field-advisories  → Latest MOT Advisories (works on Paragraph or Hidden fields)

Bonus: Works with Dropdowns (<select>) Too

If your WPForms or Gravity Forms booking form uses a dropdown for Fuel Type or Service Pricing Tier, RegPilot Pro automatically selects the matching option and triggers standard change events so your conditional logic and price calculations update immediately.

Related Guides

Unlock WPForms & Gravity Forms Auto-Fill (£79/yr) →