Skip to main content

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

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.


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!


Reply