Make model property required based on boolean property

Vote:
 

I have a boolean and string property in my model. I want to make it so if the boolean is true, the string is required - otherwise it is not. Is this possible?

thanks!

#140322
Oct 15, 2015 22:00
Vote:
 
#140328
Oct 16, 2015 0:29
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.