Test Form Chrome Autofill for Phonetic Name in Japan

This form uses JavaScript to track how each field was filled. Submit the form to see the status summary below.

πŸ“– View Implementation Guidelines

Name

ζΌ’ε­— (Name in Kanji)
e.g., ε±±η”° (Yamada)
e.g., ε€ͺιƒŽ (Taro)
フγƒͺγ‚¬γƒŠ (Phonetic Name in Katakana)
e.g., γƒ€γƒžγƒ€ (Yamada)
e.g., タロウ (Taro)
γ΅γ‚ŠγŒγͺ (Phonetic Name in Hiragana)
e.g., やまだ (Yamada)
e.g., γŸγ‚γ† (Taro)

Autofill Status Summary

Submit the form to see the autofill status for each field.


Technical Requirements

Chrome Autofill uses autocomplete attributes, field names, and labels to predict fields. Here is how to configure them for phonetic names.

1. Autocomplete Attribute vs Field Name & Label

The autocomplete attribute takes precedence. However, there is no standard HTML value for phonetic names. Therefore, you should either **omit** it or set it to its regular name counterpart:

2. Valid Field Names and Labels

If the autocomplete attribute is missing or set to the regular name counterpart, use the following regex-matching strings in your name attributes or label text:

Field Type Valid Field Names (Regex) Valid Field Labels (Regex)
Full Phonetic Name full-name-phonetic セむパむ, せいめい
Family Phonetic Name family-name-phonetic γ‚»γ‚€, せい, ε§“γ΅γ‚ŠγŒγͺ
Given Phonetic Name given-name-phonetic パむ, めい, εγ΅γ‚ŠγŒγͺ

3. Specifying Character Set (Katakana vs Hiragana)

Autofill transliterates based on the **label character set**, not the name. If the label contains at least one Katakana character, Autofill fills Katakana. Otherwise, it defaults to Hiragana.

Example: Katakana expecting form

<form>
  <label for="family-name-phonetic">γ‚»γ‚€</label>
  <input name="family-name-phonetic" type="text" />
</form>

Example: Hiragana expecting form

<form>
  <label for="family-name-phonetic">せい</label>
  <input name="family-name-phonetic" type="text" />
</form>

4. Debugging Tips