July 18, 200520 yr Attached is the XSL file we use when adding records to our database. I want to add a button at the bottom of the sheet for "Save and Email". I want this button to send an email with Subject=Store and Taken by, Summary of Problem, and Equipmentneeded in the body of the email. Can anyone lend some insight into how to do this? addrecord.zip
July 19, 200520 yr Author Thanks Martin. I think I have it working but I want to create and extra button beside "Submit" called "Submit and Email", because not all entrys into the database need to be emailed just certain ones. Is this possible?
July 19, 200520 yr If you want to do it like that: I think you need to add some JavaScript that depending on the button pressed sets a token. In the next page (browserecord.xsl), this token is evaluated and the e-mail is sent if the token has a certain value. If it's not the client decision which data shall be e-mailed, you can code that information in the database and use it in the browserecord.xsl .
July 20, 200520 yr Author I am a newbie to XSL so Javascript is something I know nothing about. The clients do make the decesion if the entry will be emailed or not. We have one field that if it is not left blank, then the email should be sent. Is it possible to send the email if a field is anything but empty?
Create an account or sign in to comment