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.

New portal row created by a script, not manually

Featured Replies

I currently have a button that when clicked on runs a script to create a new portal row and auto enter certain data. Then the user can go to the portal row and finish changing the rest of the field data.

I want to make sure that the user uses the button to create new protal rows. But as it stands, since the fields in my portal are editable, this means that the user could also go to the bottom empty row and start entering the data there, essentially by-passing the create button.

Is there a way to avoid this...to make it where a new portal row can not be created unless it is done thru the button.

LR

  • Author

After giving this one a lot of thought, here is one way that I could figure to do this. Each field in the portal has a script assigned to it:

If ["IsEmpty(Your portal relationship::Date) and IsEmpty(Your portal relationship::Who) and IsEmpty(Your portal relationship::Note)"]

Show Message "Use the add button to create new contacts."

Else

Go to field ["Your portal relationship::Date"]

End If

This way if the user goes to the empty portal row and tries to enter data in any of the fields, they get the message "Use the add button to create new contacts." Yet they can still go to any existing portal row and edit/enter data into the fields.

LR

Couldn't you turn off "Allow creation of related records" then use an external script in the line items database to create the new record (probably what you're doing).

I've never tried this... but can't see why it wouldn't work...

  • Author

That is a good suggestion. I can give that one a try as well. Thanks.

The nice thing about it is that not only is it simple but it wouldn't annoy the user with error messages.

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.