Joomla 5 Notice

We are pleased to announce that as of January 29, 2024, all of our Joomla extensions are compatible with Joomla 5.

For all who are still updateing from Joomla 3 to Joomla 4: Joomla 4 Migration instructions are available here:

There is now a separate Documentation for Visforms for Joomla 4 and for Visforms for Joomla 5!

Forum

Visforms Subscription user can ask questions in our forum. Please log in with the relevant user first.
Everybody can access the forum for reading.

Please only ask 1 question per topic.

How can I delete form data from frontend?

More
7 years 1 month ago #4097 by ulanjono
Hi, I am a beginning Visforms user and I like it. I would like to have a delete button (next to the edit button) in the "edit data in frontend" list. How can I do this?
How can I put a cancel button on a form next to the submit form? A user can open a form by accident and now he must go to the menu to go back.
Thanks,
Ivo

More
7 years 1 month ago #4098 by Administrator AV
Replied by Administrator AV on topic How can I delete form data from frontend?
Hi Ivo,

deleting data from frontend is not a feature in Visforms. You could consider allowing users to unpublish record sets instead and display published record sets only (Menu Option of Data view with edit link menu), but I don't know, if that is an option for you.

Are you talking about a "cancel" button in the form view (not the form edit view?)
There is no such button in the form view, because it is not defined what "cancel" does mean in this case. If you are in a edit view, this is always called from some sort of data view and cancel in this case is just go back to the data view where the edit view is called from. But if you call the form for example via a menu, there is no such "back" and therefore there is no "cancel".

Regards,
Aicha

:idea: I recommend you the new and up-to-date documentation for Joomla 4:
docs.joomla-5.visforms.vi-solutions.de/en/docs/
Most of this also applies retrospectively to Joomla 3.
Please only ask 1 question per topic :-).

:idea: Ich empfehle Dir die neue und aktuelle Dokumentation für Joomla 4:
docs.joomla-5.visforms.vi-solutions.de/docs/
Das meiste gilt rückwirkend auch für Joomla 3.
Bitte immer nur 1 Frage pro Thema stellen :-).

More
7 years 1 month ago #4099 by ulanjono
Replied by ulanjono on topic How can I delete form data from frontend?
Thank you Aicha.
I can live with your suggestion (unpublishing a record). But I don't see how to do that. As far as I can see there is no button available for unpublishing a form record. Could you help me on that? It is important that the user can click on something in a list to remove a record from a list.
Ivo

More
7 years 1 month ago #4100 by Administrator AV
Replied by Administrator AV on topic How can I delete form data from frontend?
Hi Ivo,

I just started to write an instruction for you, when I realized, that this is not working the way I thought it would. I have made a lot changes on Visforms and the subscription during the last weeks and I thought there was an option "published only" for the menu item type Visforms -> Form data with edit link but this option does not exist. It only works the other way around, that if a user cannot publish/unpublish record sets you can set it up in a way, that they will only see the published record sets.

So if you allow the user to publish/unpublish record sets in frontend, they will always see all record sets and if you do not allow it you can restrict the list to the published record sets only but then the user cannot unpublish.

Visforms allows you to add search filter to the data view in frontend and if the publish/unpublish option is available there would be a search filter where the user could select to display only the published record sets. But these filter settings are only "remembered" during one session, so if the user leaves the website or logs out and logs in again, the filters are reset. So the record sets would not be hidden automatically but depending on the current filter settings which the user has to make.

I'm really really sorry, that I gave you an incorrect answer this morning!

Here is how you would allow a user group to publish/unpublish data in frontend.
This can be done on the level of the component Visforms (the setting is then used by all forms) or individually at the level of a form (i.e. to override the global setting).
If you want to allow this on the component level go to System -> Global Configuration and then choose in the list on the left side "Visforms". (Alternatively you can go to Components -> Visforms and then in the Dashboard click on the options button at the right top corner).

Then click on the tab "Permissions"
Click on the user group level, which you want to allow to publish/unpublish data
Set the Action "Edit Data State" to "Allowed"
Save you changes
Then the publish/unpublish column is displayed in the data view with edit link in frontend.

The search filters can be enabled in the menu item Form data with edit link

I will consider if I can add an option "published only" to the menu Form data with edit link, but the data selection is already very delicate and I'm not sure about this.

Regards,
Aicha

:idea: I recommend you the new and up-to-date documentation for Joomla 4:
docs.joomla-5.visforms.vi-solutions.de/en/docs/
Most of this also applies retrospectively to Joomla 3.
Please only ask 1 question per topic :-).

:idea: Ich empfehle Dir die neue und aktuelle Dokumentation für Joomla 4:
docs.joomla-5.visforms.vi-solutions.de/docs/
Das meiste gilt rückwirkend auch für Joomla 3.
Bitte immer nur 1 Frage pro Thema stellen :-).

More
7 years 1 month ago #4101 by ulanjono
Replied by ulanjono on topic How can I delete form data from frontend?
Thank you Aicha.
I can do with this solution for the moment. I hope you can implement a delete function in the near future, it is very important. I have struggled with "Fabrik", which has this possibility but is far too complex (for me) and not very responsive.
Ivo

Moderators: Administrator AVAdministrator IV
Powered by Kunena Forum