Do not exceed certain linked value

Hello everyone,

I need something stops me when I exceeds a certain value in another field

Example:

We had Here:

  1. Max Occupancy
  2. Guests
    *Max Occupancy fetches this value from another doctype

I need when the max occupancy = 10, then i cannot write any value in guests greater than 10

Thank you

Hi Fsorur,

For achieving the above functionality you need to write custom script in .py file with necessary logic and call it on validate method of the file.