Joomla 5 Mitteilung

Wir freuen uns mitteilen zu können, dass seit dem 29. Januar 2024 alle unsere Joomla Erweiterungen mit Joomla 5 kompatible sind.

Für alle die gerade noch von Joomla 3 auf 4 aktualisieren: Anleitungen für die Joomla 4 Migration gibt es hier:

Es gibt nun auch eine eigenständige Dokumentation für Visforms für Joomla 4 und für Visforms auf Joomla 5

Forum

Visforms Subscription Inhaber können in unserem Forum Fragen stellen. Bitte mit dem entsprechenden Benutzer anmelden.
Jeder kann lesend auf das Forum zugreifen.

Bitte stellen Sie nur 1 Frage pro Thema.

My form isn't correctly visible

Mehr
6 Jahre 10 Monate her #4484 von De Leonardis
My form isn't correctly visible wurde erstellt von De Leonardis
HI,

I have some problem to use visForms, I hope you'll help me, the question is this:

I want to add my form not between menuitem link, but I want create an article with 3 link to 3 different forms:

<form1>
<form2>
<form3>.

To make this I have created 3 visForms and 3 modules which type is visforms and I added the position parameter. After i Created 3 aricles with this code {loadposition myposition} to load my modules in articles. After in my principale page connect the 3 links to 3 articles, but under my form I see this:

" ,required: "This field is required in a valid format. E.g. : yourname@domain.com",},"telephone-number": {required: "This fields is required",},"cv": {required: "This field is required",},"read-privacy-policy": {required: "This field is required",}, }, errorPlacement: function (error, element){ error.appendTo('div.fc-tbx' + element.attr("id")); error.addClass("errorcontainer"); }, }); }); jQuery.extend(jQuery.validator.messages, { required: 'This field is required.', remote: "Please fix this field.", email: 'Please enter a valid email:
E.g. yourname@domain.com', url: 'Please enter a valid url:
E.g. www.domain.com ', date: 'Please enter a valid date.', dateISO: "Please enter a valid date (ISO).", number: 'Please enter a valid number.', digits: 'Please enter a digit.', creditcard: "Please enter a valid credit card number.", equalTo: 'Please repeat the value.', maxlength: jQuery.validator.format('Please enter no more than {0} characters.'), minlength: jQuery.validator.format('Please enter at least {0} characters.'), rangelength: jQuery.validator.format('Please enter {0} to {1} character.'), range: jQuery.validator.format('Please enter a number between {0} and {1}.'), max: jQuery.validator.format('Please enter a number lower or equal {0}.'), min: jQuery.validator.format('Please enter a number greater or equal {0}.') }); jQuery.validator.addMethod("dateDMY", function(value, element) { var check = false; var re = /^(0[1-9]|[12][0-9]|3[01])[\.](0[1-9]|1[012])[\.]\d{4}$/; if( re.test(value)) { var adata = value.split('.'); var day = parseInt(adata[0],10); var month = parseInt(adata[1],10); var year = parseInt(adata[2],10); if (day == 31 && (month == 4 || month == 6 || month == 9 || month == 11)) { check = false; // 31st of a month with 30 days } else if (day >= 30 && month == 2) { check = false; // February 30th or 31st } else if (month == 2 && day == 29 && ! (year % 4 == 0 && (year % 100 != 0 || year % 400 == 0))) { check = false; // February 29th outside a leap year } else { check = true; // Valid date } } return this.optional(element) || check; }, "Please enter a valid date."); jQuery.validator.addMethod("dateMDY", function(value, element) { var check = false; var re = /^(0[1-9]|1[012])[\/](0[1-9]|[12][0-9]|3[01])[\/]\d{4}$/; if( re.test(value)) { var adata = value.split('/'); var month = parseInt(adata[0],10); var day = parseInt(adata[1],10); var year = parseInt(adata[2],10); if (day == 31 && (month == 4 || month == 6 || month == 9 || month == 11)) { check = false; // 31st of a month with 30 days } else if (day >= 30 && month == 2) { check = false; // February 30th or 31st } else if (month == 2 && day == 29 && ! (year % 4 == 0 && (year % 100 != 0 || year % 400 == 0))) { check = false; // February 29th outside a leap year } else { check = true; // Valid date } } return this.optional(element) || check; }, "Please enter a valid date."); jQuery.validator.addMethod("dateYMD", function(value, element) { var check = false; var re = /^\d{4}[\-](0[1-9]|1[012])[\-](0[1-9]|[12][0-9]|3[01])$/; if( re.test(value)) { var adata = value.split('-'); var year = parseInt(adata[0],10); var month = parseInt(adata[1],10); var day = parseInt(adata[2],10); if (day == 31 && (month == 4 || month == 6 || month == 9 || month == 11)) { check = false; // 31st of a month with 30 days } else if (day >= 30 && month == 2) { check = false; // February 30th or 31st } else if (month == 2 && day == 29 && ! (year % 4 == 0 && (year % 100 != 0 || year % 400 == 0))) { check = false; // February 29th outside a leap year } else { check = true; // Valid date } } return this.optional(element) || check; }, "Please enter a valid date."); jQuery('.captcharefresh5').bind({ 'click' : function() { if (jQuery('#captchacode5')) { jQuery('#captchacode5').attr('src', 'index.php?option=com_visforms&task=visforms.captcha&sid=' + Math.random()+ '&id=5'); } } }); }); jQuery(document).ready( function(){ jQuery(document).displayChanger(); jQuery(".conditional").on("checkConditionalState", {restricts : {}}, function (e) { jQuery(this).toggleDisplay(e.data.restricts); }); }); //fix placeholder for IE7 and IE8 jQuery(document).ready( function () { if (!jQuery.support.placeholder) { jQuery("[placeholder]").focus(function () { if (jQuery(this).val() == jQuery(this).attr("placeholder")) jQuery(this).val(""); }).blur(function () { if (jQuery(this).val() == "") jQuery(this).val(jQuery(this).attr("placeholder")); }).blur(); jQuery("[placeholder]").parents("form").submit(function () { jQuery(this).find('[placeholder]').each(function() { if (jQuery(this).val() == jQuery(this).attr("placeholder")) { jQuery(this).val(""); } }); }); } });"

Which is the problem? I hope can you help me, thanks for all.

Mehr
6 Jahre 10 Monate her #4486 von Administrator AV
Administrator AV antwortete auf My form isn't correctly visible
Hi,

it is always helpful to give some system information for example which Joomla! version, which Visforms version you are using.

In your case it would be very helpful to have a link to the page with the problem. Without that I can only guess.

It looks to me, that you maybe have added a custom error message to one of your fields, and that there is a problem with a character in this custom error message. This could be a " (double quote).

At least there is a problem with quotes or double quotes on the website which causes the problem. For better information I need a link to the form.

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

Mehr
6 Jahre 10 Monate her #4487 von De Leonardis
De Leonardis antwortete auf My form isn't correctly visible
Hi,

thaks for help me, the problem is the Custom Error Text tah in my case is this:
The field is required in a valid format. E.g.: yourname@domain.com. I have the necessity to add the second part "E.g.: yourname@domain.com.", but this creates me the error.

Mehr
6 Jahre 10 Monate her - 6 Jahre 10 Monate her #4488 von Administrator AV
Administrator AV antwortete auf My form isn't correctly visible
Hi,

the default error message in the language ini file has a
Code:
<br />

in the translation.

It looks to me, that on some websites, this "br"-Tag causes problems. It is not the @ sign.

I think you can fix the problem by creating an language override for the translation. (You can use the Language Manager that comes with Joomla! to do so.

Replace the
Code:
<br />
just with a blank.

There is a similar problem with the default error message for Urls.

The Language tags for which you have to create overrides are

COM_VISFORMS_ENTER_VALID_EMAIL
and
COM_VISFORMS_ENTER_VALID_URL

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 :-).
Letzte Änderung: 6 Jahre 10 Monate her von Administrator AV.

Mehr
6 Jahre 10 Monate her #4489 von De Leonardis
De Leonardis antwortete auf My form isn't correctly visible
Hi,

I tried to use the Language Manager powered by joomla, and I have correctly added the properties but the solution doesn't work. To resolve the problem I have modified the file en-GB.com_visforms.ini as following:

;COM_VISFORMS_ENTER_VALID_EMAIL="Please enter a valid email:<br /><span>E.g. yourname&#64;domain.com</span>"
;COM_VISFORMS_ENTER_VALID_URL="Please enter a valid url:<br /><span>E.g. www.domain.com "

COM_VISFORMS_ENTER_VALID_EMAIL="Please enter a valid email: <span>E.g. yourname&#64;domain.com</span>"
COM_VISFORMS_ENTER_VALID_URL="Please enter a valid url: <span>E.g. www.domain.com "

The solution works, but If I want modify other elements such as the text of button to choose file etc, it doesn't work:

COM_VISFORM_LANGUAGE_FILE_FIELD_BUTTON="Choose file"
COM_VISFORM_LANGUAGE_FILE_FIELD_TXT="No file chosen"
COM_VISFORM_LANGUAGE_MANDATORY="All fields marked with (*) are mandatory"
COM_VISFORM_LANGUAGE_PRIVACY_LINK_TXT="privacy policy"
COM_VISFORM_LANGUAGE_PRIVACY_TXT="I declare I have read the"

In particular way I think that there are some problem in my use of languages, I have modified the file components\com_visforms\language\en-GB ant I have added the Constants, but I don't see effects.

Mehr
6 Jahre 10 Monate her #4490 von Administrator AV
Administrator AV antwortete auf My form isn't correctly visible
Hi,

so it was the <br /> tag in the translations that caused the trouble.

Visforms uses and manages translations according to the Joomla! standard. How Joomla! handles languages what you can do and what you can't do must be learned from the Joomla! documentation website. I agree, that you problably have a problem with the way you use languages and translations.

You cannot add new language tags to the translation files or better, if you add new tags to the language files there is still no code that uses your tags. You can only modify the translation for existing language texts. And if you do it properly, it is possible to use the Joomla! language manager to make overrides for the translations. You have to select the proper language and the proper "place" (site or administration), before you create an override.

How a upload field is displayed in the form (especially the texts for this fields) depends on your browser and the language in which your browser is installed. These fields are rendered by the browser more than by Visforms. As most people usually install software in there native tongue, usually this texts will be in the proper language.

Having this in mind, I'm quite sure, that I can say, that any part of fix text is 100% percent translated through language files in Visforms.

You have to create a form for each language. There you put in the proper Individual texts like labels, custom error, custom tool tips and so on in the specific language.

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

Moderatoren: Administrator AVAdministrator IV
Powered by Kunena Forum