PestPac Paste New Customer Info

Paste/Drop JSON -> fill PestPac form. Mapping editor (source only, branch renamed), picker overlay selects underlying elements, no persistent panel.

作者
Jamie Cruz
日安装量
1
总安装量
1
评分
0 0 0
版本
2.17
创建于
2025-10-03
更新于
2025-10-06
大小
37.3 KB
许可证
MIT
适用于

Paste JSON → PestPac Form Helper

A small Tampermonkey/Greasemonkey userscript that pastes JSON from your clipboard into PestPac’s Add Location form. It’s designed to be used with a separate scraper or tool that copies a contact/location object as JSON to the clipboard.

Purpose

Automates filling PestPac fields from clipboard JSON so data entry is faster and less error-prone. Handles source token mapping, branch selection from state, ZIP-last behavior (to allow site autofill), and places the cursor in the appropriate field for manual follow-up (mobile or notes).

Key features

  • Paste JSON into PestPac fields via a single “Paste JSON” button.
  • Maps short source codes (H/HA → HA / ANGI, L → LIZARD, WEB → WEBFORM) to the UI tokens and clicks the autocomplete item when available.
  • Applies ZIP last with brief delays so site ZIP autofill can populate state/city before branch logic runs.
  • After ZIP autofill, reads the state (without overwriting it), copies it to the clipboard, and selects the correct Branch (DC/MD → Maryland, VA → Tidewater or Virginia based on tidewater flag).
  • If phone/mobile is missing in the JSON, final focus is placed on the mobile (or phone) field; otherwise focus lands in the comment/notes box for manual entry.
  • Lightweight mapping editor to point fields to selectors if needed.

How to use

  1. Use your external tool to copy a location/contact JSON object to the clipboard.
  2. Open PestPac Add Location, click the script's “Paste JSON” button, and the form will be filled automatically.
  3. Confirm values, add manual notes if needed, then save in PestPac.

Notes & permissions

  • This script reads and writes the clipboard (to paste JSON and optionally copy the detected state); your browser may prompt for permission.
  • It interacts with page elements (inputs, selects, autocomplete menus) to simulate normal user input; it does not send your data elsewhere.
  • Keep the mapping editor updated if the PestPac DOM changes.

Designed to be paired with a separate scraper/extension that prepares the JSON and copies it to the clipboard. Works best when mappings are configured for your PestPac instance.