Create a Custom Inline Function for Forms Overview

The custom inline function sample provides an example of an implementation of your own inline function to the Nintex Forms designer. In this example, you are going to build a Pig Latin translator. The function will take a string and then return a string in Pig Latin.

Overview

A function resembles a classic procedural program. The class contains a library of procedures and serves as a container. Create your function as a public static method contained in the class that is in turn stored in a namespace. Your method can take a parameter as a particular datatype, typically a number or string, and then return a value in a particular datatype, typically a number or string. You can also create static methods that do not take parameters and use them as functions. For instance, a method that delivers a random integer might not take any parameters, and would just return a random number when invoked.

For the Pig Latin function, we will take in a string as a single word and return a Pig Latin version of the word. For a full discussion of the Pig Latin, you might check out the Wikipedia article.

In this case, your sample will follow a very simple version:

Function Definition

To define our function:

Related information

Add a Custom Inline Function with SharePoint 2013 Management Shell