Hi
Tol validate form inputs, I use js and jquery, to validate if a text input is number or ....
I registered .focus-in (using jquery) event for input element on form. The weird thing is that it is being called either on focus-in and focus-out!
$("#mobilephone").on('focusin', function() {
// On first focus, check to see if we have the default text saved
// If not, save current value to data()
console.log($("#mobilephone").val());
console.log(Xrm.Page.getAttribute("mobilephone").getValue());
});
But the problem is that, $("#mobilephone").val() always reutnr empty string but in the mean time Xrm.Page.getAttribute("mobilephone").getValue()
returns entered input text.
*This post is locked for comments
I have the same question (0)