WordPress.org

Ready to get started?Download WordPress

Forums

Booking Calendar
Having one form, one dropdown that chooses roomtype (7 posts)

  1. Icethrill
    Member
    Posted 3 years ago #

    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.

  2. wpdevelop
    Member
    Plugin Author

    Posted 3 years ago #

    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>
  3. Icethrill
    Member
    Posted 3 years ago #

    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!

  4. wpdevelop
    Member
    Plugin Author

    Posted 3 years ago #

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

  5. dawn_shrews
    Member
    Posted 3 years ago #

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

  6. wpdevelop
    Member
    Plugin Author

    Posted 3 years ago #

    Please check it here

  7. dawn_shrews
    Member
    Posted 3 years ago #

    Thank you!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags