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.

Can I Use IF statement with Check Box?

Featured Replies

I have a layout that has user name and owner names, with a list of identical data for each. I import the needed data from another file by creating a relationship based on the First Middle Last Names. On the paper form, there is a check box to indicate if the user is the same as the owner. I want to be able to check the box, and then have a script or statement that will have the User Firts Name = Owner last Name if the box is checked. Is this possible? I tried the IF statement but it told me I couldn't write it the way I did because it would create a "circular definition". Any ideas out there?

You're just not clear here.

What exactly is the relationship? Are you importing, or just showing a portal? What field are you pulling info from (if "the box" is checked), and where is it going? How is the box checked -- based on a calc or manually?

I guarantee that the confusion you're showing in your post is the reason you're getting the "circular" message. Figure out what info you're using, and how, and you'll probably figure out your own solution.

  • Author

Sorry for the confusion. What I have is the FN,MI, & LN importing data into the user fields. What I wanted to do was if the owner is the same, and the check box was then checked, that it being checked would automatically fill in the same FN, Mi & LN by having them be equal to the user FN,MI & LN. My calculaton was If(Checkbox=0), UsserFN=OwnerFN,""

Thanks for any help in advance.

Set the calculation as an auto-enter in the User fields.

was If(Checkbox=0), UsserFN=OwnerFN,""

Now I’m a little confused because there is no circular definition here! So, what I would suggest is checking exactly what you’ve entered into your calculation. My bet is a typing error – i.e. you have entered the wrong field somewhere in your calculation. Maybe UsserFN twice instead of OwnerFN? Or, you’ve set this calculation up somewhere else, to work the other way round, i.e. If(Checkbox=0), OwnerFN = UsserFN,""

Also, I don’t understand the “Checkbox=0” part. Is your checkbox field a number or text field? Either way, your calculation won’t work, as the 0, will enter a negative Boolean result (NO) not (YES) when its not checked, resulting in the calculation working the opposite way round, so you need to either use a number with a positive result i.e. 1, or a text result.

I would also try to get to grips with the “Case” statement instead of “If”, you’ll be happy for it in the long run! So your calculation would look like this:

Case(Checkbox= “YES”, UsserFN=OwnerFN,"")

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.