Attachment

Discussions about Forms Designer for SharePoint 2010.
Locked
User avatar
Sebastian Haugland
Posts: 43
Joined: Fri Sep 19, 2014
Contact:

07 Apr 2016

Hi

I want to run a function when a attachment is added, at the moment I have solved this by adding a new button to add attachment and at the same time running my "own function".

But there is a built in event I can use to detect when a attachment is added through the "standard" button in the form?

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

07 Apr 2016

Do this:

Code: Select all

oldOkAttach = OkAttach;
OkAttach = function () {
	console.log('my code');
	oldOkAttach();
}

User avatar
Sebastian Haugland
Posts: 43
Joined: Fri Sep 19, 2014
Contact:

27 Feb 2017

Sorry was off for a loooong time.

But I tried your code, allthough the text "my code" is written to the log i get the errror below and the attachment is not saved:

"You must specify a non-blank value for file name.

Locked
  • Information
  • Who is online

    Users browsing this forum: No registered users and 8 guests