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?

Date Time field

More
9 years 7 months ago #1559 by tayling
Date Time field was created by tayling
Hi
I am workign on a rental site where I need my forms to have a pickup and dropoff date - is there a way I can create a date / time field or a time field?
Thanks for your help
Regards

Tony Ayling

More
9 years 7 months ago #1560 by Administrator AV
Replied by Administrator AV on topic Date Time field
Hi Tony,

sorry put at the moment Visforms support only date fields not date/time or time.
The only possibility would be to create a text field, where the user inserts the time manually, and to write a custom validation for this field that checks for valide time format.

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
5 years 5 months ago #6248 by rusasadmins
Replied by rusasadmins on topic Date Time field
Can you give an example on how you would do a VALIDATION of a time format in a text field?

Please let us know:
1. text Field
- how to 'force' it to be entered as hh:mm

2. number / calculation field
- how to CONVERT that text field into number field to then use in a calculation

More
5 years 5 months ago #6249 by Administrator AV
Replied by Administrator AV on topic Date Time field
Hi,

1. a Regex-Validation for hh:mm would be
Code:
^(0[0-9]|1[0-9]|2[0-3]|[0-9]):[0-5][0-9]$

See: stackoverflow.com/questions/7536755/regu...ing-hhmm-time-format

2. But, due to the very save way the calculation is implemented in visForms, it is not possible to CONVERT this value into an integer, so it can be used in a calculation.

This is, because the caluclation, calculates completely separate on the sever (with php) and in the browser (with javascript) and although it would be possible to add javascript for the browser part, it is not possible to modify the server side php code, which is located in a not overwrittable section.

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
5 years 5 months ago #6250 by rusasadmins
Replied by rusasadmins on topic Date Time field
Thank you so much for your response.

What is the likelyhood that you would add TIME as a field time to your fields? I see you have done it with dates, so you can add days, etc.

thanks,

More
5 years 5 months ago #6251 by Administrator AV
Replied by Administrator AV on topic Date Time field
Hi,

sorry, but at the moment the likelyhood is very low.

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