We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Mask only after leaving the field

Thread ID:

Created:

Updated:

Platform:

Replies:

146476 Aug 5,2019 05:13 PM UTC Aug 6,2019 03:36 PM UTC Xamarin.Forms 1
loading
Tags: SfMaskedEdit
Laerte Alexi
Asked On August 5, 2019 05:13 PM UTC

I need set the mask only after leaving the field.

During typing the text should have no mask. Is there any way to do this?

Vignesh Ramesh [Syncfusion]
Replied On August 6, 2019 03:36 PM UTC

Hi Laerte, 

Greetings from Syncfusion. 

We would like to inform that, the Masked text box is an advanced version of the Entry control that restricts your input to certain types of characters, text, and numbers using a mask pattern. If you want to validate the entered value while lost focus, then you need to change the ValidationMode property of SfMaskedEdit as per the below code snippet. 

[XAML]: 
<maskedEdit:SfMaskedEdit Watermark="000-0000000" 
                         ValidationMode="LostFocus" 
                         Mask="000-0000000" 
                         /> 
 

Please find the sample from the below link. 

If your requirement is different from this, please provide us more information and use-case scenario of your application. This would be helpful for us to give better solution. 

Regards, 
Vignesh. 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon