The Community forums are being phased out in favor of a new Slack group.
Add your email address below to get an invitation to join the community slack group
View won't show draft entries
I am trying to create a view of all entries including drafts but It will only show me finished entries. There are no filters of any kind on the view but they still don't show up.
January 24, 2018 at 9:58 pm
I haven't done this myself, but I would try customizing the where clause with the frm_where_filter hook: http://community.formidableforms.com/knowledgebase/frm_where_filter/. There is a field named is_draft that you may be able to filter on.
January 25, 2018 at 3:46 pm
Victor, I'm not sure that this will actually show up on the front end. Like most things Wordpress, Draft is not published.
Tim, It's possible that you could publish and restrict viewing to admin as an alternative.
January 26, 2018 at 8:50 am
No. What we are trying to do is have registered users which are basically customers, be able to save partially finished form as a draft, and return later to finish. The form is a camper application, and it's very long. That's the only thing that we want these users to be able to edit.
Don't know if it makes a difference, but we are testing this on a temporary site, which is not secure. And we are using a new theme.
January 26, 2018 at 9:29 am
@ozbassplayer: Formidable does not publish forms in the same manner as WordPress. The is_draft field is either set to 0 or 1 depending on whether a it is a draft or published. Including is_draft = 1 in the where clause will display drafts in a view.
Anthony: Checking "Allow logged-in users to save drafts " in the form settings will allow your end users to save the drafts and come back later to finish them.
January 26, 2018 at 9:53 am
This is what's in the page:
[display-frm-data id="3643" drafts="both"] [formidable id="7" title="1"]
In the settings, I have "allow front end users to edit" and "allow logged in users to save drafts" both checked.
In advanced settings, the only thing I have is under filter ids I have: User ID is equal to Current User.
Do I need to add the from_where filter? If so, can you give me the details on how/where/etc?
January 30, 2018 at 6:43 am
Hi Anthony,
Have you saved any draft entries yourself?
It may sound obvious but when you're logged in and have 'User ID is equal to Current User' it will only show you your saved entries.
It's always useful to try logging in to one of your users accounts to see if any draft entries show up for them or create a test user, login using a different browser (or Incognito mode if using Chrome) and save a draft entry. Then go to the view and see if the draft displays.
Hope that helps.
Chris
Discussion closed.