function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

Input field is returning the records without entering the value on submit and that is not the case?

Hi All,
i have an apex controller on account object and passing one parameter there.
In salesforce lightning, i used ui:inputtext for input field and is working fine, 
the issue is:- when i am not entering any value and pressing on enter, it is giving the records.. that is the issue i have,, 
i tried to make that field mandatory by putting required=true, but not working
Can anyone pls help on this!!
Hi chinna1654,

You can use lightning:input in place of ui:inputtext in which you can use required=true.
Hi Deve,

My logic should work with both , clicking on enter and submit button.. i need to use onkey which is not working in lightning:input ... so i used ui:inputtext