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.

Field Content Calculation

Featured Replies

Hello,

I am seeking assistance with a calculation problem. This involves a search within one record based on the values entered in a text field called, "Classification." I have a script that prints to a particular layout, based on the text entered in the classification field. This classification field has a value list of six, "Class A" "Class B" and so on. I tried the following. IF[involved layout::Classification = "Class A" or "Class B" or "Class C" Go to print layout one. The calculation works with only one Class entered.

I have been at this problem for a while now and have decided to ask the experts.

First, the test should be

IF[involved layout::Classification = "Class A" or

Involved layout::Classification = "Class B" or Involved layout::Classification = "Class C" ]

Also, assuming that you are using a checkbox for your classification field, each time you check a value, it actually is makeing the value of the field to be each value checked seperated by a pilcrow (carriage return).

So if Class A, Class B, Class C has been checked then it actually:

Class A¶

Class B¶

Class C

Therefore, when you do your test of IF[involved layout::Classification = "Class A"] it will not work because the values do not match.

You can either create individual fields for each Class and have it as a checkbox ( preferably boolean ) or Use PatternCount to find if teh value has been selected.

  • Author

I would like to thank you for your quick response.

Would this calculation work if I used the value list as a drop down list? Or would it look at each entry as a carriage return.

Steve

How is your current classification field setup? You want to be able to assign each record muliple classifications correct?

  • Author

It is set up as a text field, with a value drop down list containing the the different classes, "Class A" "Class B" etc.

Ok, then use the step that I posted earlier.

If[involved layout::Classification = "Class A" or

Involved layout::Classification = "Class B" or Involved layout::Classification = "Class C" ]

Go to Layout [ "Layout1" ]

Else

Go to Layout [ "Layout2" ]

End If

  • Author

mr_vodka

THANK YOU SO MUCH FOR YOUR HELP, it worked!!!

You have saved me many hours of aggravation.

Steve

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.