Forum Discussion
angela
5 years agoCatalyst II
Hi,
which event type do you use? You mentioned onAfterAdd,
When you use onBeforeAdd, you have to use an additional query to get the information regarding related items (or source items).
Before storing the item, you don´t have information regarding source_id/related_id, but you should already have the relationship id itself.
Would it be possible for you do use a js Method for your validation instead? Cause then you could use parent.item.
Edit: Code sample showed something else.