Hello all,
I have a form in joomla with where parent_type input is of type contentType, and other field parent_id that allows to choose the id from the previous selected contentType.
This is a behavior that I can see in the menu component, there is magic with jquery but I'm not capable to replicate this behavior in my component.
Have someone implemented this in there component and can share with us all.
I appreciate all help you can send.
If the code is compatible with joomla 4 even better :) .
Thank you.
João Veríssimo
My form xml is like this.
<field name="parent_type" type="contenttype"
label="ATTACH_PARENT_TYPE" description="ATTACH_PARENT_TYPE_DESCRIPTION"
/>
<field name="parent_id" type="text"
readonly="true" class="readonly"
label="ATTACH_PARENT_ID" description="ATTACH_PARENT_ID_DESCRIPTION"
filter="int"
/>