Skip to content

Instantly share code, notes, and snippets.

View tniron's full-sized avatar
🎯
Focusing

Toygar Niron tniron

🎯
Focusing
View GitHub Profile
@tniron
tniron / README.md
Last active September 9, 2026 16:07
JetFormBuilder: custom placeholder for the Phone Field

JetFormBuilder – Custom Placeholder & Clear-on-Submit Fix for the Phone Field

JetFormBuilder's dedicated Phone Field (v3.6.0+) is powered by the intl-tel-input library. It automatically formats phone numbers based on the selected country code, but it has two gaps this snippet works around:

  1. No custom fixed placeholder. This was confirmed by Crocoblock support (ticket #223621). intl-tel-input resets the placeholder on its own countrychange event,