A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More

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.