Accessing A javascript Function from a SP.UI.Status HTML

Discussions about Forms Designer for SharePoint 2013 / 2016 and Office 365.
Locked
NassosNET
Posts: 3
Joined: Fri Nov 06, 2015

06 Nov 2015

hi there,

i have the following problem, i have a function in the javascript section of the spform and at the end of that function i create a SP.UI.Status.addStatus and placing in the html of the status with an <a> tag and on the onclick() event i call my function again (try again link) but a get an error that the function is undefined.

do you have any idea how to overcome this problem?


thnx in advance

Nassos

User avatar
rostislav
Moderator
Posts: 364
Joined: Mon Oct 19, 2015

09 Nov 2015

Try defining your function globally like this:

Code: Select all

window.myFunction = function () {....};

Locked
  • Information
  • Who is online

    Users browsing this forum: No registered users and 6 guests