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

  • Newbies

Hello all -

Another question. I have a layout setup the following way... 3 fields. field 1 is a price, field 2 is a sale price, field 3 is a % off the original price.

What I would like to have happen is - a user enters a price in field 1, then if the user enters a sale price in field 2, the percent is automatically calculated and entered in field 3. On the other hand, if the user enters a percent in field 3, the sale price is automatically calculated and entered in field 2.

I am stuck here because I seem to be able to only have it work in one direction. In order to make it work one of the fields needs to be result, which then makes it uneditable. I am sure there must be a way to do this but I am really new at this and would appreciate any help anyone can give me. smile.gif

Thanks in advance

-John

quote:

Originally posted by jfountain:

Hello all -

Another question. I have a layout setup the following way... 3 fields. field 1 is a price, field 2 is a sale price, field 3 is a % off the original price.

What I would like to have happen is - a user enters a price in field 1, then if the user enters a sale price in field 2, the percent is automatically calculated and entered in field 3. On the other hand, if the user enters a percent in field 3, the sale price is automatically calculated and entered in field 2.

I am stuck here because I seem to be able to only have it work in one direction./B]

You need more fields.

Price_data

Sales Price_data

Percentage_calc

Percentage_data

Sales Price_calc

Percentage_calc = IF ( IsEmpty(Percentage_data), Sales Price_data/Price_data, Percentage_data)

Sales Price_calc = IF ( not IsEmpty(Percentage_data), Price_data * Percentage_data, Sales Price_data)

So this way if you enter data into the Percentage_data field, the sales price will be calculated, if you do not enter data into the Percentage_data field, then the percentage will be calculated.

You put the Price_data, Sales Price_data and Percentage_data fields on your layout as normal. Then lay the Sales Price_calc field on top of the Sales Price_data field. Give it a fill color (of your choice) and make it not enterable. Do this same thing with the Percentage_calc field.

This will result in you seeing what is in the two calc fields, but when you click on them you are actually editing the data fields.

------------------

=-=-=-=-=-=-=-=-=-=-=-=-=

Kurt Knippel

Consultant

Database Resources

mailto:[email protected]

http://www.database-resources.com

=-=-=-=-=-=-=-=-=-=-=-=-=

  • Author
  • Newbies

Thanks so much Kurt- I was heading down that exact road when I read your reply. I couldn't get it to work because I was trying to make the top field invisible and let the bottom one show through. making the field uneditable did the trick though. I don't think I would have figured that out without your help! Thankis again!

-John

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.