About the fieldsets!

This topic contains 14 replies, has 2 voices, and was last updated by  Stiofan O’Connor 7 years, 1 month ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #368893

    Gautam Kukreja
    Buyer
    Post count: 114

    Which settings should I apply to hide the fieldset if the fields below it are empty.Currently it is under admin only settings which makes it disable/hidden everywhere but I wanted to show it if the fields below are filled.

    #368903

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Do you mean, show another field if one field is filled in? If so we don’t have that option, you would have to add your own JS to achieve this.

    Thanks,

    Stiofan

    #368906

    Gautam Kukreja
    Buyer
    Post count: 114

    Stiofan I mean the field separator ..what to do to show it when the fields under it are filled?

    #368916

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    You want to show a field separator?
    I still don’t fully understand maybe you can provide wp-admin details and a link to the page so i can look?

    Stiofan

    #368920

    Gautam Kukreja
    Buyer
    Post count: 114
    This reply has been marked as private.
    #369047

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    We have no option to show/hide things if empty or not, that would require customisation.

    I could provide u with an example for one field if u wanted?

    Stiofan

    #369053

    Gautam Kukreja
    Buyer
    Post count: 114
    This reply has been marked as private.
    #369099

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    There are still so many questions…
    Show what to who? Show just on add listing or on frontend?
    Please explain what you are trying to do or i can’t help.

    Stiofan

    #369100

    Gautam Kukreja
    Buyer
    Post count: 114

    I mean on the front-end but not on the add-listing page.Just on the listings details page.

    #369102

    Gautam Kukreja
    Buyer
    Post count: 114

    is it clear now?

    #369203

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    I think the best thing to do would be to set it to show and then remove it if not needed.
    You could use this hook

    apply_filters("geodir_custom_field_output_fieldset_var_{$html_var}",$html,$location,$cf);

    Take the html var of the fieldset and then get the global value of $post, check what fields u need to and if u need to remove it then return something like

    <!-- removed -->

    Stiofan

    #369210

    Gautam Kukreja
    Buyer
    Post count: 114
    This reply has been marked as private.
    #369334

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    I added an image with no problems.

    Additionally i think i see why you are trying to do but a fieldset will create its own section, so you can’t have a fieldset in a fieldset, i would simply have a fieldset for each so Additional facility member 1 or something, then it should only show when there are details, check how i have set it.

    Stiofan

    #369497

    Gautam Kukreja
    Buyer
    Post count: 114

    I think you’ve done something for testing purpose which resulted in showing “Faculty Member 5” which is one of my fieldsets, on the side panel just above the map on the Listing details page.Please check!!

    #369592

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    I didn’t edit that one, my guess is it’s set to show in the details sidebar, you can remove that from its settings.

    Stiofan

Viewing 15 posts - 1 through 15 (of 15 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket