Jump to content

Recommended Posts

Posted

I have a RetailPrice field, a SalePrice field, and an AmountDiscounted field.

I want to lock the AmountDiscounted field, and anytime the RetailPrice or Sale Price is updated, it calculates the differernce and sets the AmountDiscounted field.  

What is the best way to do that?

Posted

The simplest way would be locking the AmountDiscounted field in the backend and hook to Pages::saveReady and set the value accordingly on each save.

  • Like 4

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...