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.

Is it possible to use a variable for Set Selection command?

Featured Replies

I ran into a snag or bug with Date fields: In the style set for them (Drop-down Calendar), I have the following:

Normal (light blue fill)

Hover (white fill)

Pressed (white fill)

In Focus (white fill)

The problem is, when you click once in the field, the fill turns light blue but when you click again, then it turns white (as it should with the first click).

Unless there's something wrong with the set-up (or there's a bug), the only workaround I can think of is to set an OnObjectEnter script trigger where, when you click once inside the field, it fires the Set Selection script command using a Start Position of zero. That solution works, but there's a hiccup: I have a lot of date fields in the solution so to save a lot of field-level coding in the script, I thought, "I'll just assign a variable using the Get (ActiveFieldName) command...but the problem with that is Set Selection requires a "hard" field selection--as far as I can tell, you can't assign a variable in that command for a field. So, if you have any ideas how I can make a simple, elegant script to achieve the same end, I'd appreciate it. Thanks!

Edited by WF7A

Set Selection requires a "hard" field selection …

… or none at all; if you don't specify the target field, the command acts on the currently active one.

  • Author

"D'oh!" Why didn't I think of that. Thanks!

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.