This support ticket is created 7 years, 7 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.
No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.
I understand that forms cannot be nested however I am trying to see if its possible to have my page similar to the built in WordPress form. After submitting the parent form, I would like a list of the child items below the parent form (after initial save nothing will be listed). User can then choose to add a new child item, edit an item, or exit.
Hello. Thank you for contacting the Toolset support.
I would suggest that you should redirect to a new page after submit parent form and on that page you should display the child entries belongs to that form.
Thank you. I ended up figuring out out and doing just that.
- User fills out parent form
- On submit, show parent post that includes a view listing child post and a link to add a new child post
- On submit of child post, redirect back to the parent view page using cred_success_redirect filter in functions.php. The recently added child is now listed.
I am now stuck at the last piece. How can I allow anonymous users to edit the parent that they just added? This is similar to a multipage form. I know this plugin does not support multipage forms but I saw a post where the developer used a separate edit form for the additional fields. Here is the scenario:
- There are three additional fields that users need to fill out after adding all child posts.
- I added these as 3 fields to the parent post fields list but I do not show them on the initial add new parent page. The three fields are in a new form that is used for editing.
- On the content template I added a new button using cred_link_form with the title "Complete Report" that takes users to the edit form that shows the additional fields. The issue it seems is that anonymous users cannot edit posts.
- Under Access Control -> Post Types, I cannot give Guests "Edit Own" permission. The only permission allowed to change for Guest is "Read". If I switch to the Cred Forms tab, I am able to select guests permission under "Edit Own Custom Post with CRED Form "Full Report Complete"" but this does not work. Only logged in users can see the edit page with the last 3 questions.
Right now it seems like my only option is to put the last 3 questions as another child post. Is this the only solution?
Where:
you need to make sure that first form (1st step) should be the Create form and other forms (steps - step 2, step 3, step nnn) should be the Edit form.
Could you please explain me each steps you are using and CRED form?
1)
could you please share problem URL?
2)
*** 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 would additionally need your permission to de- and re-activate Plugins and the Theme, and to change configurations on the site. This is also a reason the backup is really important. If you agree to this, please use the form fields I have enabled below to provide temporary access details (wp-admin and FTP).
I have set the next reply to private which means only you and I have access to it.
You need to give access rights to guest user from Access.
You can navigate to:
=> Toolset => Access Control => CRED Forms.
But I see some weired behaviour and it's not working even though the permissions set for guest to view the form
I think there must be some conflict with third party plugin or theme:
1)
Could you please try to resolve your issue by deactivating all third-party plugins as well as the default theme to check for any possible conflicts with any of the plugins or themes?
2)
Could you please try to check with another install with Default theme + Toolset plugins and try to setup same functionality and check if it works with another test install?
As your original issue is resolved, If you find any issue, please kindly report it by creating a ticket as that will be the different issue. This will help other users searching on the forum.