Skip to main content
Nintex Community Menu Bar
Answer

Client click on save button Office 365 not working

  • January 7, 2016
  • 2 replies
  • 103 views

Forum|alt.badge.img+5

Hey everyone,

 

I'm trying to get client click on my save button to do something, anything but can't even get it to show an alert. I followed this post: How to call javascript function on Save button click?

 

Here is my button settings:

savebutton.PNG

 

I've tried setting the "Causes validation" to Yes and no.

 

I also tried wrapping the client click like NWF$(document).ready(function(){alert('Save Clicked');});

 

It just does nothing sad.png any ideas?

 

John LuangcoChris Ben

Best answer by SimonMuntz

Hi Rebecca,

In the Client Click you should enter the Function that you want to call.

For example : MyFunction()

Then from the Designer ribbon click Form Settings and in the Custom Javascript section add your function.

function MyFunction(){

     alert("I am an alert box!");

}

I have tested this and found it to be working.

2 replies

SimonMuntz
Nintex Employee
Forum|alt.badge.img+23
  • Nintex Employee
  • Answer
  • January 7, 2016

Hi Rebecca,

In the Client Click you should enter the Function that you want to call.

For example : MyFunction()

Then from the Designer ribbon click Form Settings and in the Custom Javascript section add your function.

function MyFunction(){

     alert("I am an alert box!");

}

I have tested this and found it to be working.


Forum|alt.badge.img+5

Yes this worked, I must of been trying it without the () around the function name, some programs do this instead of including it. I also notice that putting code directly in the client click works for a JavaScript button, but obviously not for a save button, strange!