Skip Navigation

[Closed] Editing repetable field title deletes content

This support ticket is created 3 years, 11 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)

Author
Posts
#1890141

Hi, I have a view that displays a repeatable group. The loop includes a form to edit the title for each repeatable post..
The repeatable group custom fields include an image field and I use the default post_title.

When I save this form, the post title saves as expected but the image inside the repeatable group disappears. This use to work previously.

Use to work like this:

[credform]
<div class="d-flex p-2 hide-submit flex-wrap" >
	<div class="col-sm-8 col-12 px-0">
		[cred_field field='post_title' class='form-control-plaintext bg-transparent dark-form border-0 text-light px-1 py-2' output='bootstrap']
	</div>
	<div class="col-sm-4 col-12 px-0 submit-btn transition" style="opacity: 0;" >
		[cred_field field='form_submit' output='bootstrap' value='Save' class='btn btn-primary btn-block btn-sm px-1 py-2']
	</div>
</div>
[/credform]

I can make it work and save but I need to add an add/edit image field which loads extra resources as I do not need the up-loader as I am only editing the post title, just to be hidden:

<div style="display:none;">
[cred_field field='art-contri-img' force_type='field' output='bootstrap' preview='url' previewsize='thumbnail']
</div>

I was trying to add something like the code below, but it didn't work as expected:

[cred_generic_field type='url' field='stu-contri-img']
{
"required":0,
"validate_format":0,
"default":"[types field='stu-contri-img' output='raw'][/types]"
}
[/cred_generic_field]

Please let me know your thoughts. Thank you.

#1890483

Minesh
Supporter

Languages: English (English )

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

Hello. Thank you for contacting the Toolset support.

I would like to know how you added the form and from where you are submitting it to update the RFG title.

Can you please share problem URL and access details so I can review your current setup.

*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) 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.

#1894719

Minesh
Supporter

Languages: English (English )

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

I checked the following page and I can see "Add a photo to Chalart58" form.
=> hidden link

I do not see any Edit post form. You said you made me the post-author of the post "chalart58" but that does not mean that when you change the post author of "chalart58", it will not change the post-author of the repeating field group items. As Repeating Field Group items are also saved a post and post type for those post are the repeating field group slug, in your case it will be "art-contri-img-title".

So, Can I change to author of related repeating field group items manually to your database? Can I clear all repeating group items belongs to post "chalart58" for the "Artist User contributions images" repeating field group.

Once I can see the things on the frontend, if you have any issues we will cover that but lets fix the content first so that I can see the repeating field group items first.

The topic ‘[Closed] Editing repetable field title deletes content’ is closed to new replies.