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.

Form sends E-mail notification

Featured Replies

I have a CDML form that gets filled out by the visitor. When they hit "submit" a new record is created. In Web Security I have defined an "All Users" user that can only "Create" records. So, after they hit submit, the form is filled out and the record goes to the dbase, then it takes them to a redirct page to send our office staff a notification e-mail that a record was created.

The problem I am having, is the Filemaker Pro web site says to use the following address to accomplish this:

FMPro?-db=aureal.fp3&-lay=cgi&-format=reply.htm&-mailto=[FMP-field:Email]&[email protected]&-mailsub=Thanks&-mailhost=smtp.yourhost.com&-mailformat=mail.txt&-recid= [FMP-Currentrecid]&-Find"

However, the "All Users" user can only create records and not -Find, so the above address fails. This whole process of course works fine if I assign the "All Users" user the ability to "Browse," but that is a major breach of security should someone stumble on the URL where the records are kept.

Any way around this?

Thanks again

quote:

Originally posted by drdigital9:

However, the "All Users" user can only create records and not -Find, so the above address fails. This whole process of course works fine if I assign the "All Users" user the ability to "Browse," but that is a major breach of security should someone stumble on the URL where the records are kept.

Any way around this?

Thanks again

How users can browse? Did you give them the HTML page to browse?

Hi, You can use a cgi mail form in the new record reply page - embed the Filemaker data as hidden fields, that way the action is driven by the server, not Filemaker.

Something like this:

<FORM ACTION="http://mydomain.com/cgi-bin/mailform.cgi" METHOD=POST enctype="x-www-form-encoded">

<INPUT TYPE=hidden NAME=date VALUE="[FMP-Field:creationdate]">

<INPUT TYPE=hidden NAME="username" VALUE="[FMP-Field:username]">

<INPUT TYPE=hidden NAME="address" VALUE="[FMP-Field:address]">

<INPUT TYPE=hidden NAME="*mailto" VALUE="[email protected]">

<INPUT TYPE=hidden NAME="*smtphost" VALUE="mailgate.mydomain.com">

<INPUT TYPE=hidden NAME="*header" VALUE="new database record">

<INPUT TYPE=hidden NAME="*mailfrom" VALUE="[email protected]">

<INPUT TYPE=submit NAME=Submit VALUE="OK">

</FORM>

I usually show the data as read-only which allows the user to check it, with an "amend" button which takes them to the record, or "OK" which posts the mail.

Makes it look like a feature wink.gif" border="0

Jeff

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.