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.

How to enable filtered portal to Set Field upon create

Featured Replies

I have two portals on a layout that show widgets from the same table (which has Allow Creation enabled). One portal is filtered to show only Type A widgets. The other shows only Type B's. When a user adds a widget to one of the portals (by entering on the last line), I'd like the add action to automatically set the widget Type according to which portal is being used. That way, the new entry will remain in the correct portal. BTW, the Type is not displayed in the portals. Indeed, the user is not even aware of the mechanism driving the content of the two portals.

Is there a way to accomplish this other than having a post-process script attached to one of the portal's entry fields? I'm thinking there probably is, so I thought I would ask.

Thanks for any advice.

Is there a way to accomplish this other than having a post-process script attached to one of the portal's entry fields?

I don't think so - not if you are using the same relationship for both portals.

Now this is very good, Michael! People should note that it is auto-entering the object name attached to the Value field and not the Object name attached to the portal. What a nice use for Get ( ActiveLayoutObjectName ) ...

not the Object name attached to the portal.

Yes, I should have removed those after I couldn't make them work.

Note also that some work is required if the portal contains more than one enterable field.

  • Author

That works very well. Having the calculation defined for the single field works fine for my application.

Thanks for the idea.

I should have removed those after I couldn't make them work.

I made them work now, so you can have any number of fields in the portal and they do not need to have object names:

http://fmforums.com/forum/topic/81855-getting-more-out-of-filtered-portals-7-creating-new-records-in-filtered-portals/

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

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.