Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Emailing when a record is added

Featured Replies

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

  • 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?

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 .

  • 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

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.