I need to prevent a creation of a new record by the + add one button (near a grid-view), I want to know if there is an option to find out from where record/entity the form (from + button) is opened, I thought maybe I can use the pagetype=entityrecord#267084237 which is shown in the url, but I'm not sure how.
basically what I'm planning to do is to check on onload-event (js) from which page/entity/record the new form is opened and if it comes from the wrong entity the form will be closed.
Would like to get some guidance on this topic
*This post is locked for comments
I have the same question (0)