I looked around and did not find an answer to my question.
For example, I have a true/false property for a highlight on a document type. If the property is set to true, I need to make the image property mandatory. Is it possible to be done? If so, do you have any example on how to do this kind of validation?
Currently the only way is as Luke has mentioned by Luke is by doing the check in the Events and cancelling the event when the criteria doesn't match.
You probably want to do your check on the publishing event. That way it will still save the document, and will allow the editor to save without causing validation errors until it actually matters.
Validate property based in another property value
Hi guys,
I looked around and did not find an answer to my question.
For example, I have a true/false property for a highlight on a document type. If the property is set to true, I need to make the image property mandatory. Is it possible to be done? If so, do you have any example on how to do this kind of validation?
Thank you.
Hi Francielle,
I would do this in the saving event.
Does this help??
Regards, L
Currently the only way is as Luke has mentioned by Luke is by doing the check in the Events and cancelling the event when the criteria doesn't match.
You probably want to do your check on the publishing event. That way it will still save the document, and will allow the editor to save without causing validation errors until it actually matters.
Another solution is to create a new property editor which contains the checkbox and the image property. Than you can do the validation clientside.
Dave
Hi guys,
Thanks for the replies. I'll test Luke's suggestion.
Thank you!
is working on a reply...