Skip Navigation

[Resolved] Problem with cred form and repetable group of fields

This support ticket is created 5 years, 4 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
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9: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/Hong_Kong (GMT+08:00)

This topic contains 14 replies, has 2 voices.

Last updated by olivierF 5 years, 2 months ago.

Assisted by: Luo Yang.

Author
Posts
#1334791
select-form.jpg

I have a a form to edit a repetable group of fields.
The form works very well when I'm on the French page but when I'm on the English page, I can not select the post to add the repetable field group. The select is grayed out (see capture). I use wpml for traduct page.
The custom post type is not translatable in the wpml options and it should not be, it's the same post in French and English. But I must be able to translate the form ...
I also tested by creating posts in English but the selection is still unavailable, why?
Here is the code I use to display the selector...

[cred_field field='@collaborateur-projet.parent' class='form-control' select_text='--- non défini ---' author='$current' order='date']
#1334883

Hello,

I assume we are talking about this case:
- custom post type "my-cpt",
- repeatable field group "my-cfg"

You are going to setup post form for creating new "my-cfg" item.

If it is, in the shortcode you mentioned above:

[cred_field field='@collaborateur-projet.parent' class='form-control' select_text='--- non défini ---' author='$current' order='date']

There is attribute author='$current', it will display "my-cpt" posts which author is same as current logged-in user.

See our document:
https://toolset.com/documentation/user-guides/cred-shortcodes/#cred_field

author Optional. Use it with a parent selector field to specify that the list of parent posts should be limited to those authored by the mentioned user ID. The value $current can be used to define that the current user should only see their own parent posts in a dropdown.

You can try this:
1) Follow our document to setup the post form for creating "my-cfg" post:
https://toolset.com/documentation/getting-started-with-toolset/creating-and-displaying-repeatable-field-groups/front-end-forms-for-repeatable-field-groups/#creating-a-form-for-repeatable-field-groups

2) Put above form in a WordPress page "my-page", translate this page into English

3) Login as "user A", create "my-cpt" post in English, for example "my-post"

4) Login as same user "user A", go to page "my-page", switch to English version, use above post form to create a new "my-cfg" item, you should be able to see "my-post" in the parent selector.

#1334915

This is how my site is made but it does not work.

#1334917

The problem you mentioned above is abnormal, please check these:
1) Make sure you are using the latest version of WPML + Toolset plugins, you can download them here:
https://toolset.com/account/downloads/

2) In case it is a compatibility problem, please deactivate all other plugins, and switch to wordpress default theme 2019, and test again

3) If the problem still persists, please provide database dump file(ZIP file) of your website, also point out the problem page URL and view URL, I need to test and debug it in my localhost, thanks
https://toolset.com/faq/provide-supporters-copy-site/

#1336173

Thanks for the details, I am downloading the files, will update here if there is anything found

#1336263

Hi,
did you find something ?
Thanks

#1336309

I can install the duplicator package you provided in my localhost, I assume we are talking about the post form "collaborateur" (ID 254), I am trying to debug the problem, will update here if there is anything found.

#1336417

Here are what I found, I can see the same problem in my localhost:
I can not select the post to add the repeatable field group. The select is grayed out

I assume we are talking about the same problem as your another thread:
https://toolset.com/forums/topic/problem-with-cred-form-and-repetable-group-of-fields/

I have checked it in our to-do list, this issue has already been escalated to our developers, our developers are working on it,
This is a limitation of Toolset plugins, for example, you can edit the project post "english project":
hidden link
in section "Collaborateur", you should be able to see the message:
Translation mode active. In this mode you can only translate existing items. To add, delete or sort items of Collaborateur switch to the default language.

So currently, you will need to create the project post in site default language "French", add "Collaborateur" items in default language "French", then follow our document to translate project post and "Collaborateur" items into English:
https://toolset.com/documentation/translating-sites-built-with-toolset/translating-related-content/

I have added this thread into our to-do list, hope it can raise our developers attention.

#1336433

I thought that toolset was fully compatible with wpml. I am disappointed that it is impossible to translate a form to add a repetable field group. The solution you propose is not possible in my case, there will be thousands of posts.
I can not open the url 'hidden link' ?
Thnaks
Olivier

#1336443

The WPML plugins and Toolset plugins are both products of Onthegosystems company.

So they should be able to full compatible, as I mentioned above, this issue has already been escalated to our developers, our developers are working on it, but I am not sure when will it be fixed.

You can find the "english project" post in your website, here:
Dashboard-> Projets, click link "EN", you will be able to find and edit "english project" post.

#1337583

Hi,
Since you can not create a repeating field group in a language other than the default one. It is therefore impossible to translate a form that adds repeatable fields in a language other than the default language. I do not find it normal not to propose a coherent alternative for this problem which is indeed one. Or, do not propose repetable field groups in the Toolset tool and sell wpml as fully compatible. It's not very correct.
Thank you
Olivier

#1338299

Thanks for the input, here is the feedback from our developers:

The current mode that we have implies that the default language holds all connections and everything else is just "translations".

A new mode will be for when content in the site has languages, but doesn't have to be translation.

1. Allow to connect any two posts in the same language
2. When getting the "related posts", get posts B that are connected to post A in the current language

This will work fine for posts that have no translations.

#1338439

HI,
I understand, this is not possible today but in a future version of wpml / toolset? Do you have any details on this for the release date?
Thanks

#1338465

Yes, you are right, it will be possible in the future version of wpml / toolset plugins, but I am not sure when will it be released, and I will update here if there is any news.

#1369131

My issue is resolved now. Thank you!