Custom Field. Visibility based on the value of a checkbox field

Hi, I want to know if you can display a field in the alternative to the value of another field of type checkbox or radio.
Example: if the field checkbox is checked then the text field type is visible. If the field checkbox is unchecked then the field text is not visible.
Thank you

You can, but you’d need to write some javascript etc. to handle this as it’s not out of the box functionality.