SharePoint Forums

function PreSaveAction is not working..

This is a discussion on function PreSaveAction is not working.. within the MOSS Development forums, part of the SharePoint (MOSS) 2007 / WSS 3.0 category; Hi all, I wrote a small piece of code based on the solutions from my previous posts. I am working ...

Go Back   SharePoint Forums > SharePoint (MOSS) 2007 / WSS 3.0 > MOSS Development


Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-02-2010, 05:30 PM
Junior Member
 
Join Date: Feb 2010
Posts: 1
Smile function PreSaveAction is not working..

Hi all,

I wrote a small piece of code based on the solutions from my previous posts. I am working with SharePoint designer to do some validations and popups in a custom list form. I tried this with the default OK button, but no luck. Here is my piece of code.

<asp:Content id="Content1" runat="server" contentplaceholderid="PlaceHolderMain">
<script type=”text/javascript” language="”javascript”">
function PreSaveAction()
{
alert('Thanks for your feedback');
return true;
}
</script>

But nothing happened by clicking OK other than just submission. I am expecting the POPUP when i click OK .

Thanks,
Kalyan.
Reply With Quote
  #2 (permalink)  
Old 18-05-2010, 06:40 PM
Junior Member
 
Join Date: May 2010
Posts: 1
Default

Kalyan,

Looks like your issue may be in your script call, with two sets of double-quotes around javascript.

Blessings,
Jim Bob

Quote:
Originally Posted by KalyanM View Post
Hi all,

I wrote a small piece of code based on the solutions from my previous posts. I am working with SharePoint designer to do some validations and popups in a custom list form. I tried this with the default OK button, but no luck. Here is my piece of code.

<asp:Content id="Content1" runat="server" contentplaceholderid="PlaceHolderMain">
<script type=”text/javascript” language="”javascript”">
function PreSaveAction()
{
alert('Thanks for your feedback');
return true;
}
</script>

But nothing happened by clicking OK other than just submission. I am expecting the POPUP when i click OK .

Thanks,
Kalyan.
Reply With Quote
Reply

  SharePoint Forums > SharePoint (MOSS) 2007 / WSS 3.0 > MOSS Development

Tags
function, presaveaction, working

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 10:53 AM.




This site is in no way associated with Microsoft or its subsidiaries.
All product names and trademarks are acknowledged and the property of their respective owners.

Sponsorship by: Maximise IT for Application Development, Training and Resourcing.