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

I have a field "Total Cost" which is a calculation from 2 other fields

Photo Cost + Copy Cost.

I now need to perform a calculation if a radio button from a field "Discount" is checked. If this radio button is checked then I need the "Total Cost" field to be reduced by 50%.

Thanks in advance

Dave

Try this out, make Total Cost calculation as follows:

(photo cost + copy cost) - Case(discount = "yes", (photo cost + copy cost)*.5, 0)

HTH,

Adam

Same basic idea:

(photo cost + copy cost) * Case(discount = "yes", .5, 1 )

or this:

(photo cost + copy cost) / Case(discount = "yes", 2, 1 )

Note that if your discount field has a value list of "1" or "2" or ".5" (not all three choices, I mean one or the other of those as the whole list, and use a checkbox, not a radio button) you could make it even simpler. Also you'll probably want to enclose the whole thing in a Round() function.

(PhotoCost + CopyCost) * Case( Discount = "yes", 0.5, 1 ) would be faster.

  • Author

Thanks Guys:

I also have a Payment Info field that indicate various payment options (radio buttons) plus an option "Make Good".

If this "Make Good" option is selected then Photo Cost and Copy Cost should be set to 0. Even if there is a Photo size selected and Ad copy has text.

Photo Cost field gets its value from the Photo Size field i.e.B)

If(Photo Size =

Case( PatternCount( Payment, "make good" ), 0, Case( Photo Size =

  • Author

Thanks Queue:

Time for me to do some more reading on Functions and Calculations.

Dave

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.