Register the custom control with the Nintex Forms manager

With a strongly named assembly containing your feature, you will need to register the control in the Nintex Forms Manager in SharePoint. To register the custom control you will need to know the public key token. After you have registered the control and the custom control name appears in the list of controls, reset Internet Information Services (IIS) on the server.

Find the public key token for the assembly

To find the public key token for your strongly named assembly you can use the Developer Command Prompt for Visual Studio.

To find the public key token

  1. Open the Developer Command Prompt for Visual Studio.
  2. Type CD and navigate to the folder containing the DLL for your solution.
  3. Type sn –T <dllname>.dll
  4. Make note of the assembly name, and public key token. You will use this in registering the custom control with Nintex Forms.

Add the assembly for the control to the GAC

Manually add the custom control assembly to the Global Assembly Cache (GAC) on the server.

  1. Open the Developer Command Prompt for Visual Studio as an administrator.

  2. In Command Prompt, run the following command, replacing <assemblyPath> with the full path and file name of the assembly:

    gacutil /i <assemblyPath>

For more information about manually adding an assembly to the GAC, see Install the assemblies into the Global Assembly Cache.

Reset Internet Information Services (IIS)

Run the IISreset command to implement the changes.

To reset IIS

  1. Start a command prompt as an administrator.

    For instructions, see the following TechNet article: http://technet.microsoft.com/en-us/library/cc947813(v=WS.10).aspx

  2. Type the following command:

    IISreset

Register the Custom Control

Add the control to the list of controls in the Nintex Forms.

To register your custom control

  1. Open Central Administration in SharePoint Server.
  2. Click Nintex Forms Management, and click Manage form controls.
  3. In the import box, type: <Namespace>.<control class>, <nameofdll> , Version=1.0.0.0, PublicKeyToken=<DLL Public key token>
    For example:
    Nintex.Forms.Sdk.Sample.MyCustomSliderControl, Nintex.Forms.Sdk.Sample, Version=1.0.0.0, Culture=neutral, PublicKeyToken=5eb90d1d2c75ec86
  4. Find the name of your control in the Manage Forms Control List.

Related information

Create a custom form control sample