Keyword

k2 warning display not working in front end edit

  • EASY GUY
  • EASY GUY's Avatar Topic Author
  • Offline
  • New Member
More
10 years 9 months ago - 10 years 9 months ago #124487 by EASY GUY
hello friends,

I'm loving k2. :) But i have a small issue. When a user on my site clicks on the add item form, it displays the form no problem. But when a category that has extra fields is selected and if all the fields are not filled, instead of displaying any warning message, a potion of the warning box is only show as shown in the screenshot below. Tell me how can i correct this please?

Please Log in or Create an account to join the conversation.

  • Yiota
  • Yiota's Avatar
  • Visitor
10 years 9 months ago #124488 by Yiota
Hello,

This blue box should contain a warning message about extra fields that are required.
You need to make a change in your itemform.php file located in your template overrides in order for the message to appear correctly.

In itemform.php locate this html element
<ul id="k2ExtraFieldsValidationResults"></ul>

and replace it with the following code:
<!-- Required extra field warning -->
							<div id="k2ExtraFieldsValidationResults">
								<h3><?php echo JText::_('K2_THE_FOLLOWING_FIELDS_ARE_REQUIRED'); ?></h3>
								<ul id="k2ExtraFieldsMissing">
									<li><?php echo JText::_('K2_LOADING'); ?></li>
								</ul>
							</div>

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum