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.

Add to two tables at once?

Featured Replies

I have attached a file to help see my problem. We take trips and there are passengers. So I have a People table to hold them all. When adding a Passenger, if they are not in the People table we need to add them. Most times, the passengers are already in the People table.

I want to make users check the Persons list by opening the pop-up of People and hopefully select the passenger. If the passenger is selected, the First and Last name fills in because FirstName and LastName are from the people table. But if the person isn't there, they need to type into the first and last name fields to create the person in the People table and also insert their PersonID into the Passengers table.

I tried putting People fields in the Passenger portal and I have allow creation on both tables. But if I don't select from the list, I still can't type into the field to add a person. Most all my portals use allow created. I could handle this differently (script to go to Person table and back?) but I wanted to keep it the same 'feel and look' as other portals which allow creating right in the portal. How would you all handle this situation please?

AddPeople.zip

How about this way?

AddPeople+.zip

Note:

This is a rough sketch - requires more error trapping.

  • Author

Hi Comment,

You make it look so easy and so fast too. This will do it. There are more fields than I showed so I'll need to pause the User on the People layout so they can enter all the information (instead of custom dialog) but I had never seen custom dialog used like this so I am glad you did it this way.

For the life of me, I cannot see where you might error trap this script. You provide an exit for the User in case they change their mind. What other errors might I need to look for, if you don't mind my asking?

Thank you so much for taking the time to provide this demo!

Well, for one thing, I can leave the names empty and press OK.

  • Author

BONK! Of course!

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.