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.

Adding to portal row - Overwrite?

Featured Replies

  • Newbies

I'm stumped. I have three fields that are just collection points for adding information to a portal below it. The fields are:

date, name, and notes

The user will click a button next to the fields that will add the information into the portal. The script goes like this:

Freeze Window

Goto Portal, last row

copy (current record) date

paste (related file) date

copy (current record) name

paste (related file) name

copy (current record) notes

paste (related file) notes

clear (current record) date

clear (current record) name

clear (current record) notes

Goto field (current record) date

Refresh window

I thought this method and script would cut and paste the data into the portal, the portal would refresh/resort, and then I could post data after data into the portal. Buuuuut... in reality, what's happening is every time I run the script, the new data overwrites the last post even though the last post is not in the last row of the portal (it's in the 1st). Any suggestions?

Here's what I ultimately want: A "journal" of posts to a portal where the fields aren't modifiable by the user. Are there better methods to achieving this?

Thanks!

-Ansel

Did you click

You want to turn off "Allow creation of related records" so that users cannot add related records through the portal. Then you want your button to set globals in your JournalEntriesDB to the values of your entry fields (do not use copy/paste, use "set field".

Then run an external script in your JournalEntriesDB which creates a new record, and sets the fields to the values stored in the globals. Again, use "set field" NOT copy/paste.

You could also add a few extra steps to the main script which clears the entry fields.

  • Author
  • Newbies

Jason,

That was the ticket. I left the house without my brain that day. Thanks so much!

-Ansel

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.