K2 mandatory field

  • 6 December 2017
  • 2 replies
  • 12 views

I have a "leave a comment" in a blog. In my K2 item, I have Name, Your email, Your website and Your Message fields.

How would I make the field for Name, Your email and Your Message mandatory so the user can't leave a comment with a blank?


2 replies

Badge +9

Hello,

 

You need to use Validate Form rules and set the field as mandatory in it. 

Check the below link and let me know if it helps!!

 

http://community.k2.com/t5/K2-blackpearl/How-to-validate-a-SmartForm-Textbox-for-required-input/td-p/76162

 

 

Thank you. I'm not using smart forms, it is only a basic comment insertions form for a blog in K2. Trying to figure it out without coding.

Reply