WordPress.org

Support

Support » Plugins and Hacks » [Plugin: Booking Calendar] Having one form, one dropdown that chooses roomtype

[Plugin: Booking Calendar] Having one form, one dropdown that chooses roomtype

  • Icethrill
    Member

    @icethrill

    Hello! I made a similiar thread some time ago but it was badly formulated by me. I want one form with several input fields. But I found it especially hard to use one form for ALL room types. Not multiple forms with several submit fields in a post/page. Is it possible to create ONE drop down field with all booking types in ONE form? If it is possible, how can achieve this then using the settings in the plugin?

    Note: I am using the plugin Booking Calendar Hotel Edition.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author wpdevelop
    Participant

    @wpdevelop

    Hello Icethrill,
    Its not possible to make such customization inside of plugin, but its possible some similar solution inside of page, where Booking forms are inserted.

    You need to have at the top of page some select box with JavaScript Code, which will make visible selected booking form. Something like this (I am write it without checking inside of browser, so recheck it):

    <select name="active_booking_form" onchange="document.getElementById(this.value).style.display='block';" >
    <option value="book1">Booking form 1</option>
    <option value="book2">Booking form 2</option>
    <option value="book3">Booking form 3</option>
    </select>
    
    <div style="display:none;" id="book1">[booking type=1]</div>
    <div style="display:none;" id="book2">[booking type=2]</div>
    <div style="display:none;" id="book3">[booking type=3]</div>
    Icethrill
    Member

    @icethrill

    The javascript needs some work. But that would actually work! Just need to work the script a little bit more.

    Thanks for the fast answer! Awesome support!

    Plugin Author wpdevelop
    Participant

    @wpdevelop

    Yes, if you need some additional support on this script, please reply to my email. I will help.

    dawn_shrews
    Member

    @dawn_shrews

    Icethrill, did you get that working? I’m actually interested in a similar setup.

    Plugin Author wpdevelop
    Participant

    @wpdevelop

    Please check it here

    dawn_shrews
    Member

    @dawn_shrews

    Thank you!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘[Plugin: Booking Calendar] Having one form, one dropdown that chooses roomtype’ is closed to new replies.