Answering my question:
create a new module, for example 'enter_content'.
In this module, I load a javascript file that binds ... bind ('change-hierarchical-select', ... with a custom js function to all elements of a hierarchical field selection.
When happens When an event changes, js checks the element class ... hasClass ('has-no-children').
Therefore, when there are no children, I do a redirect to my desired form, such as content content.
source
share