Can't get Author information
Posted: 04 Apr 2017
Hello,
i have Troubles getting the Author value from my form.
What I want to do is implement a Button to my DisplayForm that just opens a new Mail Form via "Mailto"
Everythings working fine with this Code:
But the Value of Author field is always "undefined" - what am I doing wrong?
And the other question is, is there any smarter and easy way for sending mails, without using an e-mail Client.
All I Need is sending an standard text (always the same) to the author of an element when pressing a button.
Thanks,
Michael
i have Troubles getting the Author value from my form.
What I want to do is implement a Button to my DisplayForm that just opens a new Mail Form via "Mailto"
Everythings working fine with this Code:
Code: Select all
var body_message = $('#message').value;
var email = fd.field('Author').value();
var subject = 'Thementicket: ' + fd.field("Title").value(); +
$('button').click(function() {
var mailto_link = 'mailto:' + email + '?subject=' + subject + '&body=Hier geht es zum Thementicket: http://wkkintranet/Lists/Thementicket/DispForm.aspx?ID='+ GetUrlKeyValue('ID');
win = window.open(mailto_link, 'emailWindow');
if (win && win.open && !win.closed) win.close();
});
And the other question is, is there any smarter and easy way for sending mails, without using an e-mail Client.
All I Need is sending an standard text (always the same) to the author of an element when pressing a button.
Thanks,
Michael