Hello Dominique,
I hope you’re doing great today!
The Date field doesn’t have simple options, which would allow such calculations based on the day and month.
However, it should be possible using Select fields. I’ve created a simple form to illustrate the idea with the Aries sign: https://prnt.sc/-e57ktBG5x4Y
You can download the exported form here: https://pastebin.com/raw/p6YZQk81
– import it for testing on your site, by copying and pasting the code: https://prnt.sc/iWK2tK5uEsMK
I had to duplicate the HTML field, in order to split visibility conditions in 2 parts:
- month is March
- date is greater than 20
and:
- month is April
- date is less than 21
– that’s because there’s no option for combining these 2 groups of conditions for one field. So in this example, two identical HTML fields will be displayed separately for March and April.
In order to make it work with other signs and date ranges, you’ll just have to duplicate these HTML fields, and modify them (change Aries text, and edit visibility conditions): https://prnt.sc/1xIehgGQWSgA
I hope this helps. Please let us know if you have any questions.
Best Regards,
Dmytro
Thread Starter
dba83
(@dba83)
Hi Dmytro,
Thank-you so much !!, i think it can work fine !
I will check soon this procedure , i’ll keep-you informed
BR
Dominique
You’re welcome, Dominique!
I’ve just noticed that a semicolon was missing for March option in the month field: https://prnt.sc/IYsthxSsFdRA
I’ve corrected that, and re-selected it in visibility conditions for the “Sign” HTML field.
Here’s the updated form in case you need it for testing.
Best Regards,
Dmytro
Thread Starter
dba83
(@dba83)
Hi Dmytro,
it is working fine ! thanks , but is it possible to prepopulated a form with a date but without the year ?
I mean i succeed to populate a date on another form on a submitted page , but if i want de detect the astrologic sign, i need to populate only the day and month , (or populate the date with masking the year) , but i think it is quite impossible ?
BR
Dominique
-
This reply was modified 1 week, 2 days ago by
dba83.
Hi @dba83,
I am afraid Formiantor does not have any such options with the Date Field to mask the year out of the box. However, it is possible to pre-populate the Forminator fields using a query parameter.
https://wpmudev.com/docs/wpmu-dev-plugins/forminator/#pre-populate-form-field-values
Can you please see if the workaround suggested in our earlier response helps you further?
Best Regards,
Nebu John
Hi @dba83,
Since we haven’t heard from you for a while. I’ll mark this thread as resolved for now. Please feel free to re-open this thread if you need any further assistance.
Kind Regards,
Nithin
Thread Starter
dba83
(@dba83)
Hi Nirhin,
sorry i was busy .. thanks for your previous message , but when you said “it is possible to pre-populate the Forminator fields using a query parameter” , i cannot do this simply because : yes i can pre-populate a date ( i have done the test and it is ok) , but how to pre-populate only day + month ?
probably impossible ?
BR
Dominique
-
This reply was modified 1 day, 17 hours ago by
dba83.
Hello Dominique,
I hope you’re doing great today!
yes i can pre-populate a date ( i have done the test and it is ok) , but how to pre-populate only day + month ?
probably impossible ?
You’re correct, a year is required for the date field, so it will not allow a date without a year. Bypassing the date validation to allow that might be possible with additional programming though, which is beyond our support scope. If you want, you can try to look for a WordPress developer.
For example, WordPress has a jobs directory: https://jobs.wordpress.net/
I hope this helps. If you need any further advice, please feel free to email us at [email protected] with the following subject: ATTN: WPMU DEV support – wp.org
Best Regards,
Dmytro