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.

Featured Replies

I have one layout that contains job information.

There's one field named Status.

The Status can either be 'not approved' or 'approved' .

If the status is not approved I need the users to see only a few fields, when the status becomes approved, I'd like them to see more fields.

What I did is designing 2 tabs one for not approved and one for approved and using ZippScript I made a script that goes to the right tab when you change the value in the Status field.

All works well until you navigate to the next record. At that point the default tab kicks in whether the status is approved or not...

Should I change my approach to the problem?

Any suggestions?

Thanks!

You may want to look into these although I do try and stay away from EventTriggers:

http://www.zipptools.com/

http://www.fmforums.com/forum/showtopic.php?tid/193376

Create a new field in the table, a calculation field with a text result = "Approved". Creae a TO of the same table and relate the two primary keys together (a self join). To that relationship criterion add

cApproved = Status.

Put a large one row portal on the layout showing the extra fields. They'll only be visible when the status is "Approved".

  • Author

and that's why I love this place!

THANKS!

  • Author

mr_vodka:

Why do try to stay away from event triggers?

Edited by Guest

You can trigger a script when changing records, by putting the trigger calc in custom record access privileges.

I am not saying that I do not use them but sparingly since they are not native to FM. Furthermore, if not properly done it can cause headaches from a management standpoint.

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.