Ask a Question
Ask Question Login
Corporate Training
  1. Community
  2. Salesforce
  3. Question
Salesforce

HTML required Attribute not working in Visualforce?

Asked by Ankesh Kumar Apr 14, 2021 1.3K views 1 answer
Share

About this question

I'm trying to implement a form with a required drop-down list on a VF page, as described in this example. If you click on the link above and run the sample, it works fine but when I try to implement it on a VF page it does not. In my code below I have two fields of type text and select, the validation runs on the text field if it remains blank but not on the select (if the value is set to the default None).

Please advise

Your answer

1 Answer

More Salesforce discussions

Learn & Explore

Free tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.

Latest Salesforce Blogs

Guides, tips and career advice on Salesforce from JanBask experts.