Send email

Forums Dynamic Forms for SharePoint Send email

Tagged: 

Viewing 4 reply threads
  • Author
    Posts
    • #31248
      William Summers
      Participant

      It would appear that using <input type=”button” onclick=”spjs.dffs.processEmailTemplate(‘TemplateID’)” value=”Send E-Mail”> sends the email but redirects to the list view. How can I stop this?

      Thanks!

    • #31250
      Alexander Bautz
      Keymaster

      Try it like this:

      <input type=”button” onclick=”spjs.dffs.processEmailTemplate(‘TemplateID’);return false;” value=”Send E-Mail”>

      Alexander

    • #31252
      William Summers
      Participant

      Yeah that was my go to lol but didn’t work.

      Attachments:
    • #31255
      Alexander Bautz
      Keymaster

      Which browser are you using? and is it New, Disp or EditForm?

      Alexander

    • #31270
      Alexander Bautz
      Keymaster

      I had a look at the code now and this is actually a bug. When you call spjs.dffs.processEmailTemplate it will trigger a save after the email is sent.

      It was not supposed to do that when you manually triggered an email, but I usually do that in DispForm so I haven’t noticed the form being saved (this will of course not happen when in DispForm).

      I’ll address this issue in the next release.

      PS: If you want to send the email when the form is saved – and not immediately when they click the button – you can call this function instead:

      spjs.dffs.handleEmailTemplate("TemplateID", true);

      Alexander

Viewing 4 reply threads
  • You must be logged in to reply to this topic.