• 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 in multilingual form

Required field in multilingual form 8 years 11 months ago #35028

Hello,

I use one form in a multilingual website. There is one field that I want to use in one language but not in the other. But when I disable the field it is disabled in all languages.

Is there a possibility to set a field as required in one language and not the other. Or disable in one language and not in the other?

Kees
The administrator has disabled public write access.

Required field in multilingual form 8 years 11 months ago #35047

  • adrianp
  • adrianp's Avatar
  • OFFLINE
  • RSJoomla! Official Staff
  • Posts: 631
  • Thank you received: 146
Hello,

You can try using a script on this, more precisely within "Scripts called on Form Process" area (while editing a form > Properties > PHP Scripts). For example:

- firstly check the language tag.

- use the $invalid method (this holds an array with the fields what will invalidate) and remove the ID of your field (this way it will no longer invalidate upon submit).

- if you want the field hidden in your other language, a similar approach can be used by adjusting the $formLayout variable via "Scripts Called On Form Display" area instead.

More information on RSForm!Pro PHP Scripts areas here.
This is not official customer support. To receive your support, submit a support ticket here.
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!