Bagisto Forum

    Bagisto

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

    Image Field Require not working

    Bug Report
    3
    8
    537
    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.
    • M
      Mayankpanchal last edited by Mayankpanchal

      We want image field as required field
      <image-wrapper> component used and we have set required="true" as prop variable used but displaying error

      1 Reply Last reply Reply Quote 0
      • devansh-webkul
        devansh-webkul last edited by

        Hi @Mayankpanchal,

        Can you please tell us where you want to required?

        1 Reply Last reply Reply Quote 0
        • M
          Mayankpanchal last edited by

          We want seller profile banner as required field

          1 Reply Last reply Reply Quote 0
          • devansh-webkul
            devansh-webkul last edited by

            Hi @Mayankpanchal,

            Can you show me the code so that I can check what you are implementing?

            1 Reply Last reply Reply Quote 0
            • M
              Mayankpanchal last edited by Mayankpanchal

              @devansh-webkul here is code for required image field in marketplace seller profile edit page

              But required field not work proper
              <div class="form-group">
              <label>{{ __('marketplace::app.shop.sellers.account.profile.logo') }}
              <div class="info-note"><i>Note:</i> Recommended image size is of Width 120px * Height 120px</div>
              <image-wrapper :button-label="'{{ __('marketplace::app.shop.sellers.account.profile.add-image-btn-title') }}'" input-name="logo" :multiple="false" :required="true" :images='"{{ $seller->logo_url }}"'></image-wrapper>
              </div>

              1 Reply Last reply Reply Quote 0
              • devansh-webkul
                devansh-webkul last edited by

                Hi @Mayankpanchal,

                It looks like this is a marketplace code, please raise your support ticket here,
                https://bagisto.uvdesk.com

                1 Reply Last reply Reply Quote 0
                • H
                  hedyd last edited by hedyd

                  For me the image is working fine, Yes the required is an issue, But right now I am getting a different type of issue.

                  When I do upload image for the first time, It's working fine. But when I do update the same form, without uploading the image, again it throws me the required error, even though the image is already there.

                  <image-wrapper
                                          button-label="Sliders Image" 
                                          :input-name="'menu_items['+index+'][image_url]'" 
                                          :multiple="false" 
                                          :images=item.image_url
                                          :required=true
                                      ></image-wrapper>
                  

                  Well above is the code and also look at the Screenshot below, the image is in image viewer

                  33e7a74f-23fe-4dcf-a465-7dd93a6bf78e-image.png

                  I always need to remove and upload again to submit the form, else it throws required error

                  Nam in quod velit ni

                  1 Reply Last reply Reply Quote 0
                  • H
                    hedyd last edited by

                    And one more thing here, If I do remove image the required doesn't work.

                    Nam in quod velit ni

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