Hi zusammen,
wir nutzen RSForm und haben uns ein Formular gebaut. In diesem werden mit sogenannten Range-Slider ein paar Fragen beantwortet bzw. bewertet. Aus diesen Slider lasse ich eine Summe errechnen, die dann in einem Textfeld steht. Das geht mit Board mitteln von RSForm. Nun möchte ich ein Feld nur anzeigen, wenn eine bestimmte Summe erreicht wird. Leider bietet RSForm nicht die Möglichkeit eine BEDINGUNG für das Anzeigen eines Textfeldes auszuwählen. Der Support ist richtig gut bei denen und hat mir mal wieder einen Lösungsansatz geschickt. Leider ist dazu JS-Kenntnisse nötig. Leider kann ich kein JS. Daher hatte ich gedacht, evtl. kann mir hier jemand Hilfestellung geben, auch wenn es erstmal nix mit Joomla zu tun hat. Aber dafür ist ja diese Kategorie gedacht denke ich. Hier der Lösungsansatz vom Support:
ZitatAlles anzeigenYou can only set conditional statements on selections and not for regular textboxes such as your total.
What you can however do (basic JavaScript knowledge is required):
- use a checkbox with one item and hide this checkbox from display through CSS.
- condition this extra field to appear when the checkbox item is checked.
- use JavaScript to check the checkbox when your certain sum has been reached or uncheck it if it's lower than it should. You can try using a setTimeout() function to check your sum value every second and this JavaScript can be added while editing the form > Form Properties > CSS and JavaScript > JavaScript.
- besides checking/unchecking the checkbox through JavaScript, you'll also need to call the conditional feature by adding the following function (this is needed as the change is made directly through JavaScript and not by a user input):
rsfp_runAllConditionsXX();
Replace XX with your form ID and from what I can see this would be 17:
rsfp_runAllConditions17();
Wäre super, wenn wir das evtl. irgendwie hin bekommen. Wenn noch etwas unklar ist, gebe ich gerne weitere Info. Hier noch der LINKzum aktuellen Formular. Das Feld Summe gibt den Wert vor. Sobald dieser größer als 15 ist, soll ein weiteres Feld erscheinen.
Danke und Grüße