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.

Sanity check required please - global fields

Featured Replies

I appear to have lost the plot and for the life of me can't see what I've done wrong.  I'm trying to enter data via a custom dialog to a global field.

gActivityDate is a global date field

I have placed the field on the layout.  I can enter a date into the field and view the same data on multiple records (i.e it's global)

My script:

clear gActivityDate (i want it empty when users go to enter a date - the above was to prove it was a global)

show custom dialog where input field is gActivityDate

I can see in the Data viewer the date appearing in gActivityDate

The field on the layout does NOT change

I have added a few other global fields to see if I get anything

clicking OK on the custom dialog has the data disappearing.

Even if I was to remove the clear gActivityDate step at the start and alter the date to something different, the date does NOT change.

I've attached screen shots of everything

Am I missing something??  I'm not a complete noob.... but I fear there must be a simple pebcak I'm missing.

 

Global fields.pdf

Use Set Field [ fieldname ; "" ] instead of "Clear". I recommend never ever using those "Edit" functions in a script (copy, paste, etc). I believe, but am not sure, because I don't use those functions, that the field itself needs to be on the layout.

  • Author

Hi,   Thanks for your response.

The fields are on the layout.

I've changed it to set field "" to no avail.  I'm about to recover the file because for the life of me I can't understand what is going on and assuming it must be a bug.

 

UPDATE: I deleted the custom dialog box out, saved and then went back in and added it back with the exact same parameters and it works.  buggy buggy!

Post a copy of the script, or a mockup of your file, or a copy of the file.

Be sure to zip your file and then just drag it onto the reply.

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.