• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Register
  • Login
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 5 Feb 2021, 12:27 5 Feb 2021, 12:25

    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 8 Feb 2021, 13:16

      Hi @Mayankpanchal,

      Can you please tell us where you want to required?

      1 Reply Last reply Reply Quote 0
      • M
        Mayankpanchal last edited by 10 Feb 2021, 13:17

        We want seller profile banner as required field

        1 Reply Last reply Reply Quote 0
        • devansh-webkul
          devansh-webkul last edited by 11 Feb 2021, 05:30

          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 17 Feb 2021, 06:20 17 Feb 2021, 06:19

            @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 22 Feb 2021, 05:16

              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
              • 12 months later
              • H
                hedyd last edited by hedyd 4 Feb 2022, 07:54 4 Feb 2022, 07:51

                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 4 Feb 2022, 08:21

                  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
                  5 out of 8
                  • First post
                    5/8
                    Last post