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.

Problem with Conditional Formatting withGetLayoutObjectAttribute

Featured Replies

I want some buttons to switch between slide panels, and want a visual representation of which panel is the front one. 

I used Conditional Formatting to change the fill color of each button using the GetLayoutObjectAttribute("ThePanelObjectName"; "isFrontPanel") function.

Most of the time, the button fill color does not change until the mouse pointer is no longer hovering over it, and other buttons (for which "isFrontPanel" is no longer true) do not change until the mouse pointer hovers over them. Occasionally, it works as iI intended.  See the attached sample.

Is there a workaround, or a better method to create the desired behavior?

 

GLOA problem.fmp12.zip

Still doesn't work for me. Especially if you just use the panel navigator dots.

"Especially if you just use the panel navigator dots."

The conditional formatting of the buttons could be seen only if the window is refreshed.
Using the navigator dots doesn't refresh the window, so it's better to hide them.

  • Author

Thank you, Daniele. The real file does indeed hide the navigator dots, but I didn't do so in the sample.

If you need the DOTS, it is better to use scripting and a script trigger on the Panel when it is changed (onPanelSwitch). To simplify, I am setting a global variable $$panel (in the background). Button conditional formatting are based on that variable.  When using the DOTS to navigate (or swipe on mobile) the Switch Panel script is triggered BEFORE the next panel, so the the logic in the script triggered reflects that.

Tear it apart. If you have any questions, please ask.

Hope this helps!

dwdc_GLOA problem.zip

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.