Skip to main content
16-Pearl
September 4, 2024
Solved

Textfield widget with Mask Number

  • September 4, 2024
  • 1 reply
  • 994 views

I provided text field widget with Mask Number. This field is displaying '-' symbol as default. Whenever I typed first digit the symbol '-' replaced with digit. But if the digit value passing from binding, then this widget is displaying '-9' Even though if the passed value is positive it is showing the digit after the symbol -. 

As i dont have option to use disable property in numeric entry widget, i have to go ahead with textfield with mask. 

 

Kindly tell me how to overcome this symbol - when numeric value is passed from parameters.

 

 

Best answer by DanZ

I usually remove the "mask" from the textfield via custom CSS because it just looks... ugly. 🙂

 

.widget-ptcstextfield::part(mask) {
 color: transparent;
}

 

1 reply

DanZ15-MoonstoneAnswer
15-Moonstone
September 5, 2024

I usually remove the "mask" from the textfield via custom CSS because it just looks... ugly. 🙂

 

.widget-ptcstextfield::part(mask) {
 color: transparent;
}