Attachment

rss

Posted by frodo1967 - Apr 7 ’16 at 12:49

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?

  • rostislav
    rostislav
    Moderator
    Member for: 5 years 2 months 1 day
    #1 by rostislav Apr 7 ’16 at 07:21

    Do this:

    oldOkAttach = OkAttach;
    OkAttach = function () {
    	console.log('my code');
    	oldOkAttach();
    }
    
  • frodo1967
    Member
    Member for: 5 years 9 months 16 days
    #2 by frodo1967 Feb 27 ’17 at 03:00

    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.

     

  • smithpeter
    Member
    Member for: 3 months
    #3 by smithpeter Apr 6 ’20 at 07:30

    I found same issue during the development of client site which was related to Mumzworld Coupon Code

  • johnturner
    Member
    Member for: 1 month 14 days
    #4 by johnturner May 21 ’20 at 05:26

    Every one of your endeavors identified with the venture are tackled by associating the correct specialist organization of online scholastic composition. Probably the most effortless strategy to interface with scholastic specialists is looking for Online Coursework Writing When you have your telephone convenient and chipping away at a decent web association, compose the term Online Coursework Help and quest for it. Go for some productive and extreme research of the specialist organization, read surveys and check their administration quality. It is in every case great to The per user must comprehend the data you have placed in your reports and it must pertinent To the subject (you have chosen for your undertaking). These administrations are the best answer for scoring excellent grades when you have time issues.

  • acquiro
    Member
    Member for: 1 month 10 days
    #5 by acquiro May 25 ’20 at 11:34
Displaying 1 to 5 of 5 messages