This topic is locked

Dropdown Condition

11/1/2018 2:33:52 AM
ASPRunner.NET General questions
swat author

We have 2 fields for the users "Status" and "Date", if status field entered value '1' or '2' the the Date field must older than todays date. How I can condition this senario?

admin 11/1/2018

You need to use BeforeAdd event and check values of values["Status"] and values["Date"]. If values do not conform your condition display a message and return false to prevent record from being added.