Forums

Numeric Field ? and Curent date

Zebulon437 07 Sep, 2024
1 Likes

Hello everyone,I have two problems that I can't solve:1) I would like to create a numeric field in my form where the answer would be a number greater than or equal to 2 and less than or equal to 8. I found how to create the numeric field, but I can't limit it to the chosen values.

Edit, : I found how to do it finally, so here is the solution if anyone has the same problem. You have to add in the "HTML Attribute" field and put a min value and a max value

2) I would like to set the start date of the possible choices of a calendar field to the current date.

If anyone knows how to solve this, I thank them in advance.

Regards

Max_admin 10 Sep, 2024
Answer

I found how to do it finally, so here is the solution if anyone has the same problem. You have to add in the "HTML Attribute" field and put a min value and a max value

The calendar field has behavior for setting start and end dates

Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Zebulon437 10 Sep, 2024

Thank you Max for your response.

I saw this behavior in the calendar field, but I couldn't find how to tell it that the start date could not be lower than today's date (not when the form was created, but when it was filled in)

Max_admin 11 Sep, 2024

try to use {date:Y-m-d H:i:s} as the start date

Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Zebulon437 11 Sep, 2024
1 Likes

Thank you very Much Max, it works👍you can close this post

You need to login to be able to post a reply.