I tried to look around, but didn't exactly found what I was looking for. Joomla have documentation about how to create custom form fields. That was useful, but what I need is (I guess simple..?).
I want to have custom form field for backend component. Just a simple input text field with two options - add/delete. When you press add I get additional text field, if I want to delete - it simply removes. I want to understand how to do this. Thank you!
From my experience. onshow ONLY works if you use renderFieldSet
if you use renderField it won't work.
it seems that the whole fieldset needs to be shown at the same time so that JForm can link the fields.
Content transferred from deleted answer (deleted via moderation) by @robjoyce:
Correction to my previous: renderField works too. It's when you use the label and value separately that it will break.