Skip Navigation

[Resolved] Confusing options while uploading the images through media library in forms

This support ticket is created 3 years, 6 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 10 replies, has 2 voices.

Last updated by pramodk-2 3 years, 6 months ago.

Assisted by: Minesh.

Author
Posts
#2077025
Toolset forms - Images.png

Hi Team,

It is been few months I am using Toolset and very happy with the way it is going.

However, my customers are facing problems while uploading the images.

In my form, I am using "WordPress Media Library manager" to upload the images but are facing below issues.

It is confusing,
1. For the customers to see options like "Alt Text, Title, Description and File URL" while uploading the images. Is there no option to hide this?
2. To show the option called search while uploading the images. Is there no option to hide this?
3. To show the option called "Images for this field" and "Multiple Images for this field", when we can provide the best option to the customer which is "Multiple Images for this field". Can we hide one of these?

4. Loading time to upload the images through WordPress media library is more, it is taking nearly a minute to upload the image which is nearly 2MB?

I have choosen option to upload the images through media library since there is preview for the images.

Please suggest me.

Thanks,
Pramod.

#2077093

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

There is no native options available to hide those fields or links you mentioned with media uploader but the workaround would be to add the custom CSS to your form's CSS box:

// To hide alt, caption, description etc..etc 
body.page-id-999  .attachment-details > * {
  display: none !important;
}
body.page-id-999  .attachment-details > *:nth-child(-n + 2) {
  display: block !important;
}

//To hide search box
body.page-id-999 .media-toolbar-primary { 
display:none; 
}

Where you should target it by specific page ID where you added your form. The same way you can target the unwanted link you and add the related CSS code.

#2077631
Toolset forms V2.0.png

Hi Minesh,

Thanks for your quick response.

I have my requirement very clear now.

Please provide me the CSS for the below options to hide.

1. Filter Media.
2. Search
3. Alt Text, Title, Description and File URL

Kindly refer to the attached image for more details.

I am not very good in doing CSS, let me know whether I can provide the access details to you to do the same.

Also, is there anyway to improve the load time while uploading the image through media uploader.

Thanks,
Pramod.

#2078801

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

You should try to add the following CSS code to your form's CSS editor:

body.page-id-999 .attachment-details > * {
  display: none !important;
}

body.page-id-999 .attachment-details > *:nth-child(-n + 2) {
  display: block !important;
}
body.page-id-999 .media-toolbar {display: none; }
body.page-id-999 .media-toolbar-primary { display:none; }

Where you should target it by specific page ID. Please replace 999 with your original page ID where you added the form.

#2078821

Hi Minesh,

Tried doing but seems to be not working.

Please let me know whether I can provide the access details to you to sort it.

Thanks,
Pramod.

#2078921

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Yes - Please share access details and problem URL where you added the form.

*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.

I have set the next reply to private which means only you and I have access to it.

#2078951
Toolset forms V3.0.png

Hi Minesh,

I have tried it again and is working.

However, the button to submit the images is missing.

Please find attached the image for the same with the arrow symbol.

Thanks,
Pramod.

#2078991

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Please try the following code, It should work now and you will be able to see the button.

body.page-id-999  .media-toolbar-primary  .media-search-input-label { display:none; }
body.page-id-999  .media-toolbar-primary  #media-search-input { display:none; }

body.page-id-999  .media-toolbar-secondary { display:none; }

body.page-id-999  .attachment-details > * {
  display: none !important;
}
 
body.page-id-999  .attachment-details > *:nth-child(-n + 2) {
  display: block !important;
}

Where you should target it by specific page ID. Please replace 999 with your original page ID where you added the form.

#2079017

Hi Minesh,

Thanks, It is working fine for list a room.

Please suggest me on how to find out the page ID for edit a room form as this uses content template.

Also, please suggest on how to improve the load time while uploading the images through WordPress media library.

Thanks,
Pramod

#2079065

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Please suggest me on how to find out the page ID for edit a room form as this uses content template.
=>
Please check the page source and you will see the ID with the body tag.

Also, please suggest on how to improve the load time while uploading the images through WordPress media library.
==>
I do not have any thing to offer as this is a clone of core media library and I'm afraid I do not have any solution to offer.

#2079115

My issue is resolved now. Thank you!