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.

Important information for almost every question:
V1: Which Visforms version is running?
V2: Which Joomla version is running?
V3: Which PHP version is running?

Limit data displayed to only the logged in user

More
9 years 8 months ago #1454 by kalliOB
Hi there,

I have setup a form and have the data displaying using the Menu item Visforms > Formdata.

I was wondering if it was possible to limit the data displayed to only show the logged in user's submissions?

Thanks,
Kalli

More
9 years 8 months ago #1455 by Administrator AV
Replied by Administrator AV on topic Limit data displayed to only the logged in user
Hi,

if you are on Joomla! 3.3.3 or 3.4 and use the latest Visforms Version (3.4.2) there is a form option for this (tab Dataview in Frontend in the form configuration). Make sure that "Dataview Access" is set to the same access level as the menu item in order to avoid error messages.

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
9 years 8 months ago #1458 by kalliOB
Hi,

Thanks for the reply.

I have checked the Dataview in Frontend tab on the Form properties and it's set to Registered. I then checked the Formdata menu item and it's also set to Registered.

Here's my scenario:
I have two users of my website - User1 and User2.
User 1 has submitted form A, B and C.
User 2 has submitted form D.
Currently, when I look at the Formdata page while logged in as User 1, I can see A, B, C and D. When I look at the Formdata page while logged in as User 2, I can see A, B, C and D.

I want it so that User 1 can only see A, B and C. User 2 can only see D.

Are my settings incorrect?

Thanks,
Kalli

More
9 years 8 months ago #1459 by Administrator AV
Replied by Administrator AV on topic Limit data displayed to only the logged in user
Hi,

ok, that was a misunderstanding. Your settings are correct, but what you want to achieve is not possible with Visforms. There is no "connection" between a logged in user and there submission.

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
9 years 8 months ago #1460 by kalliOB
OK thanks for your prompt help Aicha.

More
9 years 8 months ago #1461 by Administrator AV
Replied by Administrator AV on topic Limit data displayed to only the logged in user
Hi again,

sometimes I'm a bit thickheaded.
You may have noticed, that I have developed some custom plugins for Visforms ( www.vi-solutions.de/en/useful-visforms-extensions ) just do perform such special features as you are looking for.

The data view plugin www.vi-solutions.de/en/visforms-plugin-d...in-content-data-view already allows you to select record sets according to user input values, although it is not totally up to the task you want yet, but I could adapt it easily and I already had in mind to implement that sooner or later.

This is how it would work:

So if you create a form field of type text (lets name it "selectusername"), use the logged in user name as default for this field, set the field to readonly, so that the user cannot change the value and set the form's access level to "registered" this could be the input side of the feature.

I would have to make a small change to the plugin, so that it would accept a parameter value like [_username] for the record set selection. This parameter value would trigger, that the plugin checks for the user name of the logged in user and only displays recordsets which have this value set in the field "selectusername".

So if you are interested in the feature and willing to buy the plugin, just let me know. I could make the changes very soon then and let you know, when it's available. Please not, that the plugin, as it is, does not to the job, yet!

Kind 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 :-).

Moderators: Administrator AVAdministrator IV
Powered by Kunena Forum