How to create a Smartform custom control using javascrip libraries capble to interact with SharePoi

  • 15 February 2017
  • 3 replies
  • 9 views

Badge +1

Hi,

 

Is that possible to create a SmartForm Custom Control based in javascript libraries (such as JQuery, Angular) capable to interact with a sharepoint context by using parameters to specify the site collection, the site and library to look at.

 

Thanks for your help,

 

Regards,

 

Amazigh


3 replies

Badge +4

Yes It is possible to using jQuery UI and build control. There are many developers who has build the control. 

I would recommend you to refer K2 Help to buuild control. 

Below is the link to control builder reference.

https://help.k2.com/onlinehelp/k2smartforms/devref/1.0.7/default.htm#k2_smartforms_custom_controls.html

 

Also there is one developer who developed control and has given pretty good guid on building steps. Below is the link for that

http://codecodecode.ninja/2015/09/building-k2-smartform-control/

 

 

I hope this will help you to get started with Custom Control Builder.

 

Cheers,

VS

Badge +1

Hi Visheh

 

 

Thanks a lot for your answer

 

Please, do you know if it is possible to embbed Angular 2 instead of the Jquery into the custom control ?

 

Regards,

 

Amazigh

Badge +4

Yes. As long as you add resouce files with the project as embaded code. 

The basic thing is the control need its .JS file if interacting with graphics and CSS. once you add those file you can use as reference as embaded. Sometimes control can be slower due to server/client event and execution. 

Reply