How to use JavaScript in Nintex forms for Office 365?

How to use JavaScript in Nintex forms for Office 365

In this post, we will discuss how we can use JavaScript inside Nintex forms for Office 365. This is a very beginner article where we will just see how we can show an alert while loading the form. If you are to Nintex forms for Office 365, you can check out below article in how to start with Nintex Forms for Office 365.

Working with Nintex Forms for Office 365

Here let us open the list, where you want to show the alert box. In the ribbon click on Nintex Forms button like below, which will open the Nintex Forms for Office 365 designer.

Nintex forms for office 365 javascript
Nintex forms for office 365 javascript

Also, you can read a few useful articles:
Auto-populate current username in people picker in SharePoint Online Office 365 Nintex forms

Start a task process workflow action Nintex workflow for office 365 SharePoint Online

How to design multiple step forms using Nintex forms for Office 365 SharePoint Online?

Then in the Nintex forms designer, click on Form Settings button like below:

How to use JavaScript in Nintex forms for Office 365
How to use JavaScript in Nintex forms for Office 365

Now in the Settings – Form dialog box, expand Custom JavaScript and put the below code. Here if you will check the code, we are showing the alert box in the document ready.

How to use JavaScript in Nintex forms for Office 365

How to use JavaScript in Nintex forms for Office 365NWF$(document).ready(function(){
alert(“Welcome to Nintex Forms to use JavaScript”);
});

Now Save it and then Publish the form. Click on the Publish button to publish the form.


Now when you will open the list and try to add one item, it will show the dialog box on the form load.

How to use JavaScript in Nintex forms for Office 365?
How to use JavaScript in Nintex forms for Office 365?

Hope this will be helpful to start, we will see some more examples in the upcoming articles.


You May Also like the Following SharePoint Online Tutorials:

About Bijay Kumar

I am Bijay from Odisha, India. Currently working in my own venture TSInfo Technologies in Bangalore, India. I am Microsoft Office Servers and Services (SharePoint) MVP (5 times). I works in SharePoint 2016/2013/2010, SharePoint Online Office 365 etc. Check out My MVP Profile.. I also run popular SharePoint web site SharePointSky.com

View all posts by Bijay Kumar →