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

Hello everyone!!

I want a script to clear certain fields for ALL records. Then I want to attach it to a button. I want to be able to keep personal information (such as name, address, phone, etc.), but have it clear campaign information (letter print dates, appointment information, etc.)

I wrote a script that looked like this:

Go to Record/Request/Page [First]

Loop

Clear [select, "Letters1"]

Clear [select, "Letters2"]

Clear [select, "Appointment Date"]

blah, blah, blah.... and so on and so forth

Go to Record/Request/Page [Exit after last, next]

End Loop

...but it doesn't work. It only clears the fields of the current record. It seems to loop, because I can see it scroll through the records.

Is there any tricks or shortcuts?? Should I use this instead:

Set Field ["Letters1", "="]

YOU GUYS ARE COOL

Thanks for your help!

Ken

Hi Ken

Try this script:

show all records

go to record/request page first

clear[select,"Letters1"]

replace[no dialog,"Letters1",Current Contents"]

Then repeat for all of the fields you want to clear.

Good Luck,

Steve

Using the “Replace” command instead of clear is a good idea so I would use the advice above. However, regardless of Clear or Replace, your script WON’T work if the fields you want to alter are not on the current layout!

Create an empty layout called “Clear Message” and place a message dialogue in the middle saying something like “PLEASE WAIT – FIELDS ARE BEING CLEARED”

Now put all the fields you want to clear onto this layout and test the script. If everything works ok, set all the fields to the smallest text size possible, then to transparent, do not allow entry into these fields, no lines and send them to the back. Now hide them behind your message dialogue. Add the Freeze window command to your script or you will see the hidden fields flashing. Now you simply need to run your script, going to this layout, then leaving it when it’s finished.

  • Author

Thanks for your guys' reply. I'm gonna try that, Rigsby.

Ken

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.