• 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: Required field

Required field 4 years 10 months ago #39136

It is possible to define a field as a mandatory field if an entry has been made in a certain other field.
Example

First Line: First Field " Datum " - Second Field" Hours" - Third Field" activity"

Second Line: First Field " Datum " - Second Field" Hours" - Third Field" activity"

Third Line: First Field " Datum " - Second Field" Hours" - Third Field" activity"
fourth Line: First Field " Datum " - Second Field" Hours" - Third Field" activity"

Activities Field should only be recognized as a mandatory field if something has been entered in the field "Hours" and "Date"
The administrator has disabled public write access.

Required field 4 years 10 months ago #39149

  • andreic
  • andreic's Avatar
  • OFFLINE
  • RSJoomla! Official Staff
  • Posts: 713
  • Thank you received: 59
You could try to use a custom script in "Scripts called on form process" and only invalidate the activity field if the corresponding date and time fields are not empty using the $invalid variable:

www.rsjoomla.com/support/documentation/r...ted/php-scripts.html
Please note: my help is not official customer support. To receive your support, submit a ticket by clicking here
Regards,
RSJoomla! Development Team
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!