Joomla 5 Notice

We are pleased to announce that as of October 14, 2025, all of our Joomla extensions are compatible with Joomla 6.

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

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

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?

field order

More
11 years 11 months ago #269 by imkejoemrati
field order was created by imkejoemrati
i made a form with a lot of fields. when ik display the data the order of the fields is not the same as in the form. Also in the administration , in display data, the order is not the same as in form. And also when exporting the data to a csv file, the order is not the same as in the form. Can you help me with this problem?
What is the maximum amount of fields in a form?

At this moment, when a field is left blank, you see -1 in the data (frontend and backend) and also when exporting. Is it possible to leave this blank?

More
11 years 11 months ago #270 by imkejoemrati
Replied by imkejoemrati on topic Re:field order
i read another posting about this, and i got it working on the backend. changed the visdata.php file in de administration. How can i change it on frontend?

More
11 years 11 months ago #271 by Administrator AV
Replied by Administrator AV on topic Re:field order
Hi imkejoemarati,

thanks for your post.

1) Fieldorder in backend dataview and export

open file administrator/components/com_visforms/models/visdata.php

find function getDatafields (about lin 263)

replace

$query = ' SELECT * from #__visfields as c where c.fid='.$this->_id.' ';

in this function with

$query = ' SELECT * from #__visfields as c where c.fid='.$this->_id.' ORDER BY c.ordering asc';

2) Fieldorder in frontend dataview

open file components/com_visforms/models/visformsdata.php

find function getDatafields (about line 181)

replace

$query = ' SELECT * from #__visfields c where c.fid='.$this->_id." and (c.frontdisplay is null or c.frontdisplay = '1') ";

in this function with

$query = ' SELECT * from #__visfields as c where c.fid='.$this->_id.' order by c.ordering asc';

There is no maximum amount of fields per form.

Fields, when left blank, are set to NULL in Database and are displayed empty in dataview (backend and frontend). I don't now, why they show up as -1 on your website but I assume that's a setting of your mySql rahter than of visforms.

Regards,
Aicha

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

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

More
11 years 11 months ago #273 by imkejoemrati
Replied by imkejoemrati on topic Re:field order
thank you, it works

Moderators: Administrator AVAdministrator IV
Powered by Kunena Forum