-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support Multiple Pages in Edit Entry #718
Comments
@soulseekah And this is another :-) |
I think this should be left for EE 2.0 (the rewrite)? Either way, since edited form fields are very flexible, where do we add the page breaks to? How do we make them configurable? Conditional pagination is even harder. Our current field editor is very limited. I'm trying to think hard on how to make things work in a way that would be intuitive UX wise and would make sense in the backend wise as well. For the backend we need to know:
There's a lot of fundamental discussion there about this needed here, as outlined above. We should discuss this in a lot of depth. |
@soulseekah I think we landed on only supporting multiple pages when showing the whole form. Otherwise we are recreating Gravity Forms! |
Makes sense. Should we be saving the values each and every step or only on the last submission step? Right now after some of my experiments it's saving them on every step of the way. |
@zackkatz can you respond above, please? |
Since it seems easier and I don’t have a firm opinion either way, let’s do each step for now, and then people can complain if that’s not what they want. @soulseekah @rafaehlers @jgrisham what do you think? |
It also seems "safer" saving it page by page. |
Note that Gravity Forms does not save the form page by page :) I'll implement the page by page version and then we can think about the future.
This will have to wait then, since there's no point in a review page if we're saving every step of the way. |
Early feature. Off by default. Set `gravityview/features/paged-edit` filter to true. Basics on #718
Highly experimental. Add If it behaves well overall I can start writing unit tests for this. |
@soulseekah just tried this feature and while it correctly showed the steps at the top of the form, it would finish the editing process right after clicking the 'Next' button. So right now, the 'Next' button is not loading the next page of this form but already submitting the edited entry. Let me know if you need any further information. |
@vendojo Thank you for testing. This is a limitation, the entry fields are submitted on every single page right now. But the pages should still be advancing correctly and showing the specific page fields. Is this not what you're seeing? Can you show a video? |
Here's the video: https://www.loom.com/share/101bbc772e994b75842f02413b86f72f There seems to be an issue with the form's confirmation type. I was using a redirect to another page on submission. However, the form also advances to the next page when clicking the 'Previous' button. |
Issues found:
Redirecting to another page via the Form Settings is not being triggered for me, but:
|
@vendojo please test the latest develop.zip please? |
That's awesome, thanks mate! Works great, now, even when I have the 'Redirect to another page' setting enabled. Just two minor things: Ideally, the 'previous' and 'next' buttons would inherit the CSS classes and translation defined by the Gravity Forms plugin. That way you wouldn't have to translate/style them twice: There appears a 'Entry updated' notification now. Don't know if this was built in intentionally or if it's a side effect. I just noticed it in the new develop version. |
@vendojo you should target the CSS correctly. Regarding the update message it was there but with a link. It's without a link now. You can filter the message by hooking into the new 'gravityview/edit_entry/page/success` filter. |
@soulseekah fair enough. Seems to be working fine. When will this feature be available in the stable version? |
By the end of November, we hope. We need more testing before rolling it out. |
"Support Conditional Logic page breaks" still isn't working.Here's a two-page form with "page conditional logic" https://i.gravityview.co/NaxtkU
|
On a related note, the " Enable Next Button Conditional Logic " feature will very very probably not work either. I'll test after I manage to fix the conditional logic page breaks. |
Haven't been able to get the Next Button Logic to work yet, but Conditional hide/shows of pages has been implemented and briefly tested. Please try it out whoever is interested. |
@soulseekah Can you share details on what the blocker is for the Next Button Conditional Logic functionality? It'd be nice to have full feature parity. |
Next Button Logic involves pretty complicated logic code that I wasn't able to call correctly. The next option would be to rewrite the thing (this is pure JavaScript). On the other hand it's such a non-critical feature that it wouldn't be missed, I'm sure. Can we wait for someone to ask for it? |
Initial support landed in 2.5.1 but not documented. It can be turned on using |
https://secure.helpscout.net/conversation/2728285946/57844 mentions that the |
Currently, we don't support multiple pages in Edit Entry. We should.
gravityview/features/paged-edit
filter (or add a check for View settings inclass-edit-entry-render.php
around line 1142.Add support for Review Page: https://www.gravityhelp.com/documentation/article/gform_review_page/I realized this doesn't make sense, since we're saving each page of the form as it happensNotify:
The text was updated successfully, but these errors were encountered: