Skip Navigation

[Resolved] Can’t choose image in repeatable group field

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 3 replies, has 1 voice.

Last updated by javierP-9 1 month, 1 week ago.

Assisted by: Minesh.

Author
Posts
#2811768
luis carratala error.png

I'm working on a site where I need to create a cars database. I created the CPT "Coches" (cars in spanish) with every feature I need as custom fields, make, model, color, fuel, etc. I added two repeatable field, Image Gallery and Video Gallery to save images and videos for every car. When I create my first car and click on "add first image gallery" I get an browser alert saying "The element for this entry could not be created without saving. This may occur because of the interaction of other plugins with the Repeating Fields Group. Save the entry and try again." I saved the car and try again but the erros shows again.

hidden link

#2811850

Minesh
Supporter

Languages: English (English )

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

Hello. Thank you for contacting the Toolset support.

I would like to know and clarify first - do you want repeating field (multiple instance) or repeating field group (group of fields [like image, image caption, uploaded date] with multiple instance)?

If you want to have repeating field group, you will have to save the post first and then add the repeating field group items because internally it forms one-to-many post relationship where parent is the current post where you adding repeating field group items and child(s) will be the items you will add to the repeating field group.

Here is a doc for repeating field group:
- https://toolset.com/course-lesson/creating-and-displaying-repeatable-field-groups/

#2811916

Hi Minesh, I'm using repeatable fields group, but it's true that I have only one field in each group (image in image gallery group and video in video gallery group) I just want to be able to save several images in my CPT car to display them in the frontend as a gallery or carousel. If you think that is better to use repeating field only I can change that if I can use those images as a gallery. Instead of that, I've created the repeatable group fields as explained in the link you gave me. Just to try, I deleted both repeatable field groups (images and videos), save the CPT, and created again the repeatable field groups. When I try to create a new car and try to choose the first image, the error shows again. Thank you for your time.

#2811918

Minesh
Supporter

Languages: English (English )

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

You will have to create repeating image field and repeating video field not the repeating field group.

Please check the following Doc:
=> https://toolset.com/course-lesson/dynamic-galleries-and-sliders-for-templates-displaying-repeating-image-fields/

Does that helps?

#2811925

Thank you Minesh, I deleted the Repetable Fields Groups an added a single repeating image and video fields, they work fine in my CPT. I'll have a look at your link to create galleries. Thanks again for your time