Skip to main content
16-Pearl
November 10, 2021
Solved

Issue with ptcstextfield masked input on mobile mashup

  • November 10, 2021
  • 1 reply
  • 1341 views

I use that widget with a mask like

9999-9999-9999-a

 

from desktop web browser it works fine,

but from a mobile phone at the first number pressed, the cursor goes back of 1 and so the first group of 4 number is get in a wrong way.

By pressing 12345 I get

2345-1____-____-_

instead of

1234-5___-____-_

is there a fix

 

I have thingworx 8.5.16

 

Best answer by iguerra

Hello @slangley 

The issue can be fixed with this workaround that was made (by you) for another issue on the same widget

 
ptcs-textfield:focus-within::part(hint-text) {
display: none;
}
 
now it works fine even on 8.5 version
Regards
______
Ivano

1 reply

Support
November 19, 2021

Hi @iguerra.

 

Unfortunately, 8.5 is no longer supported.  However, there have been some improvements in the 9.x releases.  We tested under TWX 9.2.3 and it worked on iOS 14.8.  We don't have an Android phone for testing.

 

Regards.

 

--Sharon

iguerra16-PearlAuthorAnswer
16-Pearl
November 22, 2021

Hello @slangley 

The issue can be fixed with this workaround that was made (by you) for another issue on the same widget

 
ptcs-textfield:focus-within::part(hint-text) {
display: none;
}
 
now it works fine even on 8.5 version
Regards
______
Ivano