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.

New to creating scripts.

Featured Replies

I am new to scriptmaking and I want to create a script that will change a field with a radio button, from "Yes", to "No".

then I would like to create a button that will perfom the script when pressed.

I guessing this might me pretty easy, but I'm having trouble.

Can anyone help?

RET

One script step should do it:

Set Field [Fieldname, "Case(Fieldname="Yes", "No", "Yes")]

  • Author

Thanks so much.....that relly worked.

however I guess I was not too clear. I wanted to preform this script to all records, can you help me do that?

RET

Use the 'Replace' Script Step'along with the formula already given

quote:

Originally posted by Korky:

Use the 'Replace' Script Step'along with the formula already given

Applying the given calculation to multiple records will actually toggle the field value, i.e. will change Yes to No and No to Yes.

If you just want to change Yes to No and keep No as-is, then use the following:

Set Field [Fieldname, "Case(Fieldname="Yes", "No", Fieldname)"]

An alternative to the Replace command would be to loop through the found set and use Set Field. This way you can perform a Find for all records where Fieldname=Yes, just to make sure.

Oh, the possibilities. smile.gif" border="0

  • Author

thanks guys...that worked.

one more thing .....is their a good book to learn more about scripts?

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.