QloApps Forums

    Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular

    custom field customization

    Technical Help
    custom field customization
    2
    6
    345
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • L
      Luvo last edited by

      I want to customize the custom field in the hotel form.

      When I add a hotel, I want to make State mandatory.

      How do I do that?
      hotel.PNG

      1 Reply Last reply Reply Quote 0
      • L
        Luvo last edited by

        @Sumit said in custom field customization:

        addon of QloApps

        @Sumit thank you

        1 Reply Last reply Reply Quote 0
        • S
          Sumit Global Moderator last edited by

          @Luvo

          Yes, to show this filed as mandatory you have to modify the code.

          This page is from marketplace addon of QloApps.
          So I have given you the path of marketplace module file.
          If your QloApps directory is 'hotelcommerce', Then this file's full path will be hotelcommerce/modules/marketplace/views/templates/front/hotels/_partials/hotel-information.tpl

          Hope you understand.

          1 Reply Last reply Reply Quote 0
          • L
            Luvo last edited by

            where is this path?

            1 Reply Last reply Reply Quote 0
            • L
              Luvo last edited by

              Thanks Sumit..

              Is this on the code?

              1 Reply Last reply Reply Quote 0
              • S
                Sumit Global Moderator last edited by

                @Luvo

                You will find this file at the below path -
                marketplace/views/templates/front/hotels/_partials/hotel-information.tpl

                In this file, find the label tag for State field and add class required in this label tag.

                < label for="hotel_state" class="control-label required" >
                

                In this way this field will be shown as mandatory.

                Hope you understand.

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post