Support

  1. Marco_Alfano
  2. Support
  3. Wednesday, January 25 2017, 10:39 AM
Hi,

I'm trying to set up a conditional field as follows:

I have a dropdown list of options, in which just two of them should trigger another text field to display. In detail, I have the following options:

Grossista
Medico
Farmacista
Informatore scientifico
Altro

When the user chooses "Medico" or "Farmacista" the field "Numero di iscrizione" should appear.

So, I set two different conditions in which the custom values "Medico" or "Farmacista" of the field are set to make "Numero di iscrizione" field show.

The result on the form is that, if I choose "Farmacista" (the latter option), the conditional field shows correctly. Instead, i f I choose "Medico", the fields shows for just a moment then disappears.

Can you please help me?
Accepted Answer
admin Accepted Answer
Admin
Hi,
this happen because there is a conflict between conditions:
Condition 1:
If field is equal to "Medico" then show field "Numero di iscrizione" else (Two Ways effect) hide field "Numero di iscrizione"
Condition 2:
If field is equal to "Farmacista" then show field "Numero di iscrizione" else (Two Ways effect) hide field "Numero di iscrizione"

Result: when you choose Medico then Condition 1 show field "Numero di iscrizione" but condition 2 hide field "Numero di iscrizione"

Solution
Condition 1:
if not equal to custom value (leave empty) custom value then show field "Numero di iscrizione" else (Two Ways effect) hide field "Numero di iscrizione"
Condition 2:
if equal to custom value "Grossista" custom value then hide field "Numero di iscrizione" (Two Ways effect set to No)
Condition 3:
if equal to custom value "Informatore scientifico" custom value then hide field "Numero di iscrizione" (Two Ways effect set to No)
Condition 4:
if equal to custom value "Altro" custom value then hide field "Numero di iscrizione" (Two Ways effect set to No)

Result:
- when you choose "Medico" or "Farmacista" then:
Condition1: show field "Numero di iscrizione"
Condition2: nothing
Condition3: nothing
Condition4: nothing
So you will see "Numero Iscrizione"

- when you choose for example "Grossista":
Condition1: show field "Numero di iscrizione"
Condition2: hide field "Numero di iscrizione"
Condition3: nothing
Condition4: nothing
So "Numero Iscrizione" will be hidden
  1. more than a month ago
  2. Support
  3. # Permalink
Marco_Alfano Accepted Answer
Pro
Content Protected
  1. more than a month ago
  2. Support
  3. # 1
  • Page :
  • 1


There are no replies made for this post yet.
However, you are not allowed to reply to this post.

Request Support

Support is currently Online

Support Availability

Working days: Monday to Friday. The support staff is not available on weekends; in the most of cases tickets will not be answered during that time.

Reply time: Depending on the complexity of your support issue it's usually between a few minutes and 24 hours for paid members and about one week for free members. When we expect longer delays we will notify you.

Guidelines

Before you post: read the documentation and search the forums for an answer to your question.

When you post: include Site Details if you request a support (you can use the form below the reply in Site Details tab).

Auto Solved Question: If after a week the author of the post does not reply to a request by moderator, the question will be marked as resolved.

Language: only English

Search Users

Easy Profile® is not affiliated with or endorsed by Open Source Matters or the Joomla Project. Joomla is Free Software released under the GNU/GPL License.