I am using Gravity Forms with WPDataTables to have users complete checklists that are then displayed in a table. As part of the checklist they upload a pdf of a legal document that is the subject of the checklist. Following the completion of the checklist there may be resolution actions that will require users to obtain changes to the agreement and seek addendum(s). The add-on for Gravity integration with WPDatatables works well. However I need users to be able to edit their checklist entries and add additional addendum pdf documents later. The edit function in the add-on works but there is a glitch in that the link to the original pdf file upload is lost if an entry is edited. I have managed to get around this by using a snippet of PHP to define the location of the original pdf file upload and place it in a specific named folder for the entry. I’ve then used Populate Anything to create a link button to the file so that users can click through to the pdf from the WPDataTable. I am now trying to find a way for users to be able to load up additional documents into a selected entry folder by clicking a new link in the WPDatatable. Thereafter, I will need to find a way for users to be able to click through from the entry in the WPDataTable snd to then be able to select and view the original/ addendum pdf docs. Anyone have any ideas of plugins and or snippets that could help with this please?
Depending on how you
Assuming a model where subsequent documents could be sent via a separate form is one that fits/consider-able, there is a lot within Gravity Flow and its’ extensions that could help your use case.
- Gravity Flow’s Parent/Child extension would be worth looking at. Through it you could use a link within GView’s custom content like http://yourdomain.com/child-form-page/?workflow_parent_entry_id={entry_id} to give the user direct access to upload the additional doc.
- The child entries are on display of the entry details page for the parent form entry. It probably would not be much code to call its’ display_child_entries function as a part of a custom merge tag that could be put into another GView column. Reach out to our support if you need a hand with this.
- For the file location manipulation aspects (on either the main form or the child ones) you could use either an action on gravityflow_step_complete or a custom step type that re-purposes your existing code.
- If there needs to be data mapped between the parent/child entries as a part of ones’ submission or workflow, the Form Connector Update an Entry could be one to give you a no/low code approach to handle.
1 Like
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.