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.

Scripting button to go to related student field

Featured Replies

I have one layout that has student information. The unique field is StudentID. I have another layout that has different information with the StudentID being the unique key. In the database relationship the studentid keys from both layouts is matched.

Now I made a button so when I am on a certain kid and want to find out some information from another layout I click that button to go to the that layout. But I cannot seem to script where the layout will open to that student's record by ID number. I can get the layout to open but it will just give me that last student that the layout was open in.

How do I script to go to that related ID? If I use related record it does not work.

Go to Related Records script step with showing matching records only.

  • Author

Ok, I did as you suggested so obviously I have other problems because I cannot get it to work. I am attaching the file. When you click on attendance letter button it will go to the attendance letter layout. But it will not go to the related record that I show on there, the student ID it needs to go to in the example is 111111. But it defaults to what is in there already from last view. So now I am wondering if there is a relationship problem.

StudentSchedule_FmExample.zip

Your structure seems off. What are you trying to do here? Currently you do not have any records in the enrollment table that matches your student table based on the Student_fk_import. That will stop the relationship passing through to the letter table.

Furthermore, if this is multiple letters for each student, then the relationship should be from the student to the letter table. Or if its a letter for each enrollment records then you may be able to just send the letter based on that table.

  • Author

Yes a student can have more than one letter. Not sure how to fix the structure though.

There are no related records.

You are pointing from Students to Enrollment to Letters. That would work if there were Enrollment records. But in your file, there NO enrollment records.

Probably Letters should relate directly to Students?

Second problem. Your script goes to the Letters layout; THEN tries to go to related records. Drop the first step (go to layout)

  • Author

Thank you. I will work on that.

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.