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,

I'm an artist, and would ask your patience with me in regard to programming....I am attempting to use what I thought would be a simple If, IfElse statement, but I keep getting an error message "The specified field can not be found'. The fields do indeed exist, and I have tried every permutation of quotation marks and brackets, as well as in text and calculation formats for the field in question...I want the field I'm programming to look at another field, "Calculation Field 1", and if it is filled with the word 'Five" to input text from another field, "Printer 1". If "Printer 1" is empty, then I want it to fill in anything in the field "empty". I think this is simple enough...here is the latest unsuccessful attempt:

If [(Calculation Field 1 = "Five", "Printer 1")]

Else If [Get (Empty)]

End If

I am using FMP 10 on a Mac.

Many thanks,

Edited by Guest

I don't think that this should be done in a script, if I understand your intention. Do your logic in a calculation field.

Let's say your field is "PrinterChosen" and is a calc field:

If (Calculation Field 1 = "Five" , Printer 1, Empty)

Your field names leave a lot to be desired, btw, lol.

  • Author

Many Thanks! Yes I am not familiar with naming conventions in the programming world. I know I have a lot to learn. I will give this a try.

Thanks again.

  • Author

Hello Again,

I'm finding that the code provided saves just fine, but it is not doing anything. Any thoughts?

Thanks,

  • Author

In

'If (Calculation Field 1 = "Five" , Printer 1, Empty)'

If the field 'Calculation Field 1 has The word 'Five' in it, then the field which has this code should have the term 'Printer 1' input? If

'Calculation Field 1' has anything else, the field with this code should have nothing input into it? Am I reading this code correctly?

If so, It isn't reporting a true event. Any thoughts?

Edited by Guest

Actually, the calculation reads,

If the field named Calculation Field 1 has the value "Five" in it, then show the value in field Printer 1, otherwise show the value in field Empty.

If you only want the value in field Printer 1, otherwise do not put anything in Calculation Field 1, then the calc would be:

If (Calculation Field 1 = "Five" ; Printer 1 ; "")

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.