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?

Compare email addresses for validation

More
10 years 7 months ago #935 by IreneLennings
Replied by IreneLennings on topic Compare email addresses for validation
Dear Aicha,

Next question....

echo '"emailherhaling" : {equalTo : "#field99"},'; on line 147 in default.php works like a charm.
But...I've got more than one form on my site.

I've seen in the default.php that you can identify fields like this:
@this-->visforms->fields[x]
So I'm hoping that a form can be identified by @this->visforms->form

So I think I need something like this:

If ($this->visforms->form->name = "form1")
{ echo '"emailherhaling" : {equalTo : "#field99"},' }
else if ($this->visforms->form->name = "form2")
{ echo '"emailherhaling" : {equalTo : "#field99"},' }
else if ($this->visforms->form->name = "form3")
{ echo '"emailherhaling" : {equalTo : "#field99"},' }

I can try it of course, but I'd rather ask you first!

Regards,
Irene

More
10 years 7 months ago #937 by Administrator AV
Replied by Administrator AV on topic Compare email addresses for validation
Hi Irene,

when you override the default.php that comes form components/com_visforms/views/visforms/tmplyou (what I think you do) you can identify a form by

$this->visforms->id

which obviously will check against the forms id.

When you override the default.php from the module it's

$visforms->id

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