Hi,
How can i check if ABMInput is valid?
I'm using an ABMInput to get the user email and I want to check if the email is valid before proceed (button click event).
The above code but it's not working.
Thanks.
Best Regards.
How can i check if ABMInput is valid?
I'm using an ABMInput to get the user email and I want to check if the email is valid before proceed (button click event).
B4X:
Public inp2 As ABMInput
inp2.Initialize(page,"inputemail",ABM.INPUT_EMAIL,"",False,"input")
'...
Private inp2 As ABMInput = cont.Component("inputemail")
Log(inp2.SuccessMessage) 'does not work
Log(inp2.Validate) 'return true
Log(inp2.Valid) 'return empty
If Not (inp2.Valid) Then
page.ShowToast("toast2","","Pls fill an valid email address",2000,False)
Return
End If
Thanks.
Best Regards.