field visibility validations based on dates
hi techies,
i have four fields in my user view(form)
1.joining date (date field)
2.visas (yes/no radio buttons)
3. select visa location (drop down - values are US,Australia, canada)
4. type of visa (drop down -L1 , H1 , B1 , visitor , worker)
if the joining date is grater than one year then only i should display "visas" field (for ex: today is 5th sep 2019 if the joining date is after 5th sep 2018 "visas" field should not be displayed , joining date should be before 5th sep 2018)
and to select L1 visa joining date should be greater than 5 years from current date means joining date should be before 5th sep 2014 , if joining date is after 5th sep 2014 then it should display not eligible to apply for L1.
Please help in writing these validations.
Thanks