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.

Removing a value in one feild if a value is entered into another?

Featured Replies

For ease of explanation, let say I am creating a checkbook register. I have two fields "Credits" and "Debits".

What I want to happen is if I already entered a value in the "Credits" field and I then put a value in the "Debits" field the value in "Credits" would be removed or vise versa.

I have tried many attempts using auto enters and calculations but to no luck. Any direction would be most appreciated.

Thanks

Edited by Guest

You're almost there:

http://www.newcenturydata.com/downloads/checkbox_control.zip

--sd

Hi

the AutoEnter/Replace calc for debits is:

Let(

fieldName = Get ( ActiveFieldName ) ;

Case(

fieldName = "debits" ; debits ;

not IsEmpty ( credits ) ;""

)

)

the AutoEnter/Replace calc for credits is:

Let(

fieldName = Get ( ActiveFieldName ) ;

Case(

fieldName = "credits" ; credits ;

not IsEmpty ( debits ) ;""

)

)

BTW: if you wish to show a zero and not an empty field simply substitute the line:

[color:red]not IsEmpty ( credits ) ;"" with:

[color:blue]credits ≥ 0 ; 0

and the line:

[color:red]not IsEmpty ( debits ) ;"" with:

[color:blue]debits ≥ 0 ; 0

  • Author

Thank you that work perfectly. I think I tried almost that very thing but I used it as an if statement.

Edited by Guest

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.