I would like to define a rule that each employee could take personal leave only 2 hours, if employee take more than this , the system will pop up a message that "you could not take leave more than 2 hours".
Thanks in advance
To raise the message/error you can do this by "User Hooks".
check this thread -
Re: Absence Management