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?

Dynamic configurable forms through hidden fields

More
3 years 2 months ago #7637 by Blacksmith
Hello
German text below
I have the following problem: I have complicated forms that serve their purpose quite well. But not each event we organize needs all the fields. So it would be nice if I could hide the unnecessary fields. At the moment I delete all the fields I don't need and - what's worse - I remove all the calculations based on them.
I tried the following:
- A field of type 'Select' is not suitable, because you can't hide it!
- A field of type 'Hidden' is also not suitable, because it cannot be used in the 'Conditional Field' conditions.
- An 'Unpublished' field of type 'Select' cannot be used either, because it must not be set to 'Unpublished' as long as it is referenced in a 'Conditional Field'.
If this functionality is possible in some other way, please let me know, I could not think of any other ideas!

I therefore have the following feature request for VisForms:  
It should be possible to create a field (hidden or visible) that serves as a 'switch'. This field could then be used to display or suppress a number of fields. The field should also be controllable via URL parameters so that the behavior becomes dynamically controllable.

Sometimes it would also be handy if a single field could be hidden, while its value would still be referenceable in the calculations. Why not simply give all fields a 'visible' property? 

I think that would already solve my problem completely.
---
Ich habe folgende Problemstellung: Ich habe komplizierte Formulare die Ihren Zweck ganz toll erfüllen. Aber nicht jeder Anlass, den wir veranstalten braucht alle Felder. Da wäre es schön, wenn ich die unnötigen Felder verbergen könnte. Zur Zeit lösche ich alle nicht benötigten Felder - was schlimmer ist - die darauf beruhenden Berechnungen
Ich habe folgendes versucht:
-    Ein Feld vom Typ 'Select' eignet sich nicht, weil man es nicht verstecken kann!
-    Ein Feld vom Typ 'Hidden' eignet sich auch nicht, weil es in den 'Conditional Field' Bedinungen nicht verwendet werden kann.
-    Ein 'Unpublished'-Feld vom Typ 'Select' kann auch nicht verwendet werden, weil es nicht auf 'Unpublished' gesetzt werden darf, solange es in einem 'Conditional Field' referenziert wird.
Wenn diese Funktionalität auch auf andere Weise möglich ist, lassen Sie es mich bitte wissen, mir sind keine weiteren Ideen eingefallen!

Ich habe darum folgenden Wunsch an VisForms:  
Es sollte sich ein Feld (versteckt oder sichtbar) anlegen lassen das als 'Schalter' dient. Dieses Feld könnte dann dazu dienen eine Reihe von Feldern anzuzeigen oder zu unterdrücken. Das Feld sollte sich auch über URL Paramter setzten lassen, damit das Verhalten dynamisch steurbar wird.

Manchmal wäre es auch praktisch wenn man ein einzelnes Feld verstecken könnte, sein Wert aber in den Berechnungen weiterhin referenziert werden könnte. Warum haben nicht einfach alle Felder eine Eigenschaft 'visible'? 

Ich glaube das würde meine Problemstellung bereits vollständig lösen.

More
3 years 2 months ago #7638 by Administrator AV
Replied by Administrator AV on topic Dynamic configurable forms through hidden fields
Hi Blacksmith,
I'm sorry for not answering earlier, but at the moment we are very busy with finalizing Visforms for Joomla 4.
You could just use some custom css which hides the listbox, that would basically be the same as a 'visible' property.
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
3 years 2 months ago #7639 by Blacksmith
Replied by Blacksmith on topic Dynamic configurable forms through hidden fields
Hello Aicha

Thanks for the tip. I am not a CSS master, but so far I have managed almost everything with trial and error... ;.)  Surely: first finish the version for Joomla 4, before you add something of the category desirable - I am very grateful for this because I, at some point, get into trouble as PHP 7.3 is end of life!

I have currently helped myself in such a way that I used a very rarely used input condition as 'Conditional Field' (that way the Select-field is mostly hidden) and added an explanation to it with a 'Custom Text'. Far from perfect, but in my case reasonable! Will surely change it to the CSS later.

It would just be nice if we could systematically hide every field type with a checkbox (well, this seems simple to patch with the CSS now) and actually I would love to see a 'Read only' property for each filed type as well - for parameters that are filled in by means of  URL parameters... :-)
 

Moderators: Administrator AVAdministrator IV
Powered by Kunena Forum