Solved

Client click on save button Office 365 not working

  • 7 January 2016
  • 2 replies
  • 60 views

Badge +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

icon

Best answer by SimonMuntz 7 January 2016, 05:55

View original

2 replies

Userlevel 6
Badge +22

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.

Badge +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!

Reply