Attachment
- Sebastian Haugland
- Posts: 43
- Joined: Fri Sep 19, 2014
- Contact:
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?
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?
Do this:
Code: Select all
oldOkAttach = OkAttach;
OkAttach = function () {
console.log('my code');
oldOkAttach();
}
- Sebastian Haugland
- Posts: 43
- Joined: Fri Sep 19, 2014
- Contact:
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.
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.
-
- Information
-
Who is online
Users browsing this forum: No registered users and 7 guests