Hello, I want to make functionality when a checkbox is selected other hidden fields to be shown in adding place listing. Like if the place is offers accommodation. This to be able to be selected as a checkbox and after clicking on it two more fields for entering data to be shown. Like capacity and price per night. But I want this fields to not be shown in general adding place form. To be only optimal if the checkbox is selected.
I have see this functionality in https://wpgeo.directory/whoop/add-listing/?listing_type=gd_event when I click on All day checkbox Event Time field disappear. I want to make something like this, but revers. When it’s clicked to show fields.
As I saw this checkbox is adding a class “geodir-none” to id geodir_event_time_row. Is there any ready solution for my question or I need to find my own way to customize this?
Thank you for your time.