Browsed by
Category: Tips & Tricks

Multiple records inserted with RuntimeListViewRowCount option

Multiple records inserted with RuntimeListViewRowCount option

Last week, I helped a developer troubleshoot a weird issue where multiple records inserted with RuntimeListViewRowCount option. In case you are wonder what is RuntimeListViewRowCount, it is a web.config setting that enables all List Views in K2 smartforms to return and display the total row counts. It is disabled by default, due to past performance issues and you can read more of this setting here. In this article, I will be showing you the scenario that will cause the issue…

Read More Read More

Friendly Error Message on K2 smartforms

Friendly Error Message on K2 smartforms

Two years ago, I’ve posted an article on Providing a friendly error message for your K2 error on CodeCodeCode.Ninja. At that time, the version of K2 should be around 4.6.8 to 4.6.9 and the rules configuration in the article works perfectly to intercept a common error like the “Worklist item could not be opened”. Recently, I tested the same rule configuration under K2 4.6.10 and above and found that the method does not work anymore and I will like to show you a…

Read More Read More

Add company logo and change K2 login form descriptions

Add company logo and change K2 login form descriptions

In this article, I’m going to show you how to add company logo and change K2 login form descriptions when you are using the default K2 Claims Authentication. If you are wondering how to turn on Forms Authentication in K2, see this article. What is the K2 login form? When you turn on Forms Authentication on your K2 claims setup, you will get the following login form when you access K2 Designer or Runtime sites. So what most companies would like…

Read More Read More

Get Picker Control’s SmartObject Value Correctly

Get Picker Control’s SmartObject Value Correctly

In this post, I’m going to show you how to get Picker control’s SmartObject value correctly. Get Picker Control’s SmartObject Value Correctly When K2 smartforms Picker control executes the “On Changed” event, you will be able to extract the selected item’s values via the underlying SmartObject properties. It is a great way of populating the form data with more information regarding the selected item and you do not need to execute another SmartObject to do so as well (Yeah! No…

Read More Read More

Add JavaScript and CSS to K2 smartforms

Add JavaScript and CSS to K2 smartforms

This article shows how you can add JavaScript and CSS to K2 smartforms without developing custom controls. Why do I need to add scripts to the Form? Some of the reasons will be: To change the style of a specific View(s) or control(s) on the Form without amendment the Theme css. To execute a custom JavaScript without developing a custom K2 smartforms control. How can I add scripts to K2 smartforms? If you notice, the Data Label control has a Literal…

Read More Read More