• 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!

TOPIC: Help on validation rule

Help on validation rule 11 years 8 months ago #24517

  • filippo.bracci
  • filippo.bracci's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 11
  • Thank you received: 1
Hello everybody,

can anyone help me on validation rule and write the right php code?

I have a form with several fields (name, surname, arrival date, departure date, and so on...)

Now I want to add a drop down menu with 2 items + 1 empy: white, black.

The validation rule should be:

if you choose White and arrival date is between 1 november and 30 november 2013 and from 1 to 30 april 2014 it is ok,
if you choose Black and arrival date is between 1 november and 30 november 2013 and from 1 to 30 april 2014 it is ok,
if you choose Empty and arrival date is between 1 november and 30 november 2013 and from 1 to 30 april 2014 it is ok,

if you choose White and arrival date is NOT between 1 november and 30 november 2013 and from 1 to 30 april 2014 is NOT VALID,
if you choose Black and arrival date is NOT between 1 november and 30 november 2013 and from 1 to 30 april 2014 is NOT VALID,
if you choose Empty and arrival date is NOT between 1 november and 30 november 2013 and from 1 to 30 april 2014 is NOT VALID,

Can anybody write for me?

Thank you in advance!

Filippo
The administrator has disabled public write access.
  • 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!