Skip 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.

perform script on record change.

Featured Replies

Hi,

FM5.5 and WinXP/2000

I was wondering if there was a way to perform a certain script on record change?

Would a plugin be required?

Thanks

Ben

See this recent post. Click Here

Lee

cool.gif

  • Author

Hi Lee,

I'm not talking about on field entry/exit unfortunately.

I mean if you change record - or 'on record view' or something.

The reason is that when navigating the database I'd like to have a different layout depending on various criteria.

Is there a way to do that?

I thought the only way to do that is some kind of script when a record is changed. How to trigger that script though?

I realise I could add navigation buttons to move between records rather than rolodex but there is certain functionality that the rolodex is good for.

Any other suggestions?

Thanks lee

Ben

So, what would be the trigger?

If the changes are minor, you could hide some fields in a portal or portals triggered by values in other fields.

e.g. I just finished a small photo directory solution for a non-profit. If the contact was a member, I hide the membership start date in a portal triggered by a checked radio button for being a member.

  • Author

on record change?

How about a custom validation of a field?

The validation is performed when you first view a record isn't it?

Or is it performed on field exit?

That validation could trigger some kind of external function for a plugin to run a script?

I know there are plugins to run a script on field exit but I'm not sure about this.

I use the portal way already but what I'm trying to do here is a bit more complicated and does need to be a different layout.

Thanks

Ben

If you have your own record navigation buttons, you could attach a script to those (in addition to the navigation).

  • Author

Yeah I am thinking about that.

The problem is that if anyone then decided to use the rolodex in the status area, it wouldn't work and they'd be stuck with the wrong layout.

I could hide the status area but it adds certain other functionality that I need.

I think I might have to hide it and use my own navigation buttons though. Unless there's a plugin that can do it.

Thanks

Ben

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

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.