When I on a form and the focus is on the phone number field, iPhone will sometime suggest my phone number just above the keyboard. Like in the image below.
I am trying to implement this functionality via inputmode and type=tel,
<input type="tel" inputmode="tel" />
but my phone number doesn't show up above the keyboard. Where as on other websites, it sometimes does.
Is there an attribute or css rule that enables this functionality?
P.S. After an assist from the folks answering this question, it seems that autocomplete="tel" works to a certain degree. I found the following with iOS 15.2:
Have you tried enabling/disabling autocomplete on the input?
<input type="tel" inputmode="tel" autocomplete="on"/>
Yes. Use the autocomplete attribute.
<input autocomplete=tel type=tel inputmode=tel>
Possible attribute values for a telephone input are: