+44(0)1908738254
YOUR EXPERT RPA PARTNER

Team up with our RPA strategy and tech specialists for maximum automation impact

Find out more
Harness the power of UiPath in your business.
WATCH NOW

Save money and spend more time on priority work.

Book consultation
READY, SET, AUTOMATE

Let's choose, design and deploy a process automation solution for your business.

Find out more
TRANSFORM YOUR BUSINESS

Let's analyse your business to discover opportunities for innovation and automation.

Find out more

Begin your business transformation journey

Book consultation
AUTOMATE EVERY FUNCTION

Automate where it matters most. Scale to solve challenges in every area

Find out more
GIVE EVERY TEAM THE TOOLS FOR SUCCESS

Equip people with user-friendly solutions that save time and make work easier

Find out more

Which business problem
can we solve first?

Book consultation
14 May 2015

How to display dynamic HTML Web Content in K2 SmartForms

With the K2 Workflow process, we have found that a large percentage of clients at some point request to have a visual representation of the Workflow within their application. By using a combination of K2 SmartForm features we can accomplish this.

HTML Web Content in K2 SmartForms

K2 SmartForms – Dynamic Web Content – 1

K2 Automated Testing Software

BenchQA allows full test automation of K2, including fully automated K2 SmartForms and K2 Workflow testing. It promotes test driven development for K2 and ensures continued quality assurance for K2 solutions. Easily apply changes to test cases to accommodate changes to K2 apps and ensure all apps are regression tested to avoid defects and assure continuous quality.

 

Free K2 Five Upgrade Review

The main focus of this topic is the K2 SmartForms Content Control. This control allows you to specify a URL and display the web content of the specified URL within your own page.

K2 SmartForms - Dynamic Web Content - 2

K2 SmartForms – Dynamic Web Content – 2

Once you have added the Content control to your view, you can either specify a static URL / placeholder URL, show a preview (only if you provided a static URL) and change the scrolling settings.

K2 SmartForms - Dynamic Web Content - 3

K2 SmartForms – Dynamic Web Content – 3

For this example we need to display a dynamic URL based on the K2 ID for each specific workflow. To do this we use a combination of K2 SmartForm rules and expressions. We set the dynamic URL on view initialise to demonstrate this.

K2 SmartForms - Dynamic Web Content - 4

K2 SmartForms – Dynamic Web Content – 4

When you configure the rule we just added you will see that you have access to all the view parameters, K2 SmartObjects, view controls as well as existing expressions. The dynamic URL used here comes from an expression we created that concatenates the K2 Workflow URL with the K2 ID in order to display a specific workflow based on parameters sent through upon view initialisation.

Need further technical advice or support?