Skip Navigation

[Gelöst] Edit form don't load related post

This support ticket is created vor 3 Jahren, 11 Monaten. 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.

Heute stehen keine Supporter zur Arbeit im Werkzeugsatz-Forum zur Verfügung. Sie können gern Tickets erstellen, die wir bearbeiten werden, sobald wir online sind. Vielen Dank für Ihr Verständnis.

Sun Mon Tue Wed Thu Fri Sat
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

Dieses Thema enthält 19 Antworten, hat 3 Stimmen.

Zuletzt aktualisiert von David Gimenez vor 3 Jahren, 11 Monaten.

Assistiert von: Christian Cox.

Author
Artikel
#1882723

Hello Christian. Can you open a private message? You need credentials to enter with admin role and premium role to see them. Thanks!

#1882771

Sure, private reply fields are active here.

#1883073

Got it, thanks for your attention to detail here. I'm able to replicate this issue in a similar scenario in my local test site. As you've noticed, it seems that the recent hotfix release does not address the issue in Forms that edit RFGs. I'm escalating this to the 2nd tier team. While we're waiting, a workaround is possible for a short-term solution, with some limitations. You would lose the drag-and-drop features in the Form builder for this Edit RFG Form temporarily, and you would lose the nice searchable dropdown combo input field for finding parent posts temporarily. A standard select field can be displayed instead with all available options. That would give you a functional solution now, although not the best experience. If that sounds like something you want to implement while we wait, here is the workaround:

- Edit the RFG Form and turn on Expert Mode in the Form builder.

- In the converted contents, find the shortcode that produces the menu parent select field. It will look something like this:

[cred_field field='@menu.parent' class='form-control' output='bootstrap' select_text='--- not set ---' required='false']

Note the @slug.parent syntax in the field attribute - this will help you identify the correct field shortcode. If you have any questions about that I can help.

- Add the following attribute anywhere inside the shortcode:

use_select2='never' 

For example:

[cred_field field='@menu.parent' class='form-control' output='bootstrap' select_text='--- not set ---' required='false' use_select2='never']

- Save the Form and test it out. You should now be able to save a new parent post for any RFG edited in this Form.

I'll keep you posted here as I receive more information from the 2nd tier support team. Hopefully we can get this fixed ASAP.

#1883973

I have another update, but unfortunately it is not good news. After some discussion with the team, it turns out that the workflow around editing RFGs with Forms is going to be adjusted in an upcoming release. Our developers have informed me that we plan to remove the parent post selection field from Edit RFG Forms in keeping with the workflow in wp-admin, where it is not possible to reassign an RFG to another parent post. This field in the Edit RFG Form seems to have been an oversight because of the way RFGs are implemented from a technical perspective, and will be removed in a future version, so we do not plan to fix the problem you are experiencing. Instead, the developers suggest implementing this RFG as a One to Many relationship between two post types instead if you plan to allow Users to move entries between different parent posts. That would be the suggested long-term solution. The short-term solution presented earlier, with a standard select field, is still possible as a short-term solution, but will not be available in all future versions of the software. Eventually new Edit RFG Forms will not include the ability to select a parent post - the parent post will be static once the RFG has been created. Another option would be to use a generic select field and some custom code with the post relationships API to modify the parent post programmatically, but again, the suggested long term solution is to use a true one-to-many relationship instead of an RFG here, which will allow your Users to manipulate the parent post in an edit post Form for the child post type, into the future as the software evolves.

#1884127

Dear Christian... thanks a lot for your help.
My issue is resolved now. Thank you!