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
Nagarjuna Reddy.PNagarjuna Reddy.P 

Lightning:select required

Hi,
      I am using lightning:select to make this required I am using attributes reuired = "true" and messageWhenValueMissing = "error message" but either of these attributes are not working & allowing the record to save even without giving any value.
the default value for lightning:select is --None-- is this considered as value and allowing record to save? how to solve this?
any help is greatly appreciated.
Thanks,
Devi ChandrikaDevi Chandrika (Salesforce Developers) 
Hi Nagarjuna,
Please refer below link which might help you in this
https://salesforce.stackexchange.com/questions/158573/setting-error-message-on-lightningselect/158930

Hope this helps you
If this helps kindly mark it as solved so that it may help others in future.

Thanks and Regards