0

I have a custom fieldtype (used within Neo block) and I need to know the ID/content of entry it belongs to, when editing the entry.

I need to both populate field values based on value in other field (if present) and also perform validation on save by comparing with other fields in same entry.

So I need to know the entry content (or at least entry ID so I could fetch those) within getInputHtml and validate functions.

I know I could use $this->model and $this->element but those don't seem to provide any data related to entry

1 Answer 1

0

Found out that entry can be accessed with $this->element->owner

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.