Support

  1. ggaillet
  2. Support
  3. Monday, February 10 2020, 03:50 AM
  4.  Subscribe via email
I had some simple conditions working before but on this case I am helpless. Here is what I want to do with my field A (type number):

If my field A is less than 15 then hide fields B,C and D
If my field A is greater than 15 then show field B but hide C and D
If my field A is greater than 30 then show field C but hide B and D
If my field A is greater than 50 then show field D but hide B and C

Can you please help? Couldn't get this working at all.:(
Accepted Answer
ggaillet Accepted Answer
Basic
OK. Managed to do something that works, but it is not looking very clean and I am not entirely sure why it works this way :p

If A less than 15 hide B,C,D
If A equal 15 hide C,D
If A equal 15 show B
If A greater than 15 show B
If A greater than 15 hide C,D
If A greater than 29 show C
If A greater than 29 hide B,D
If A greater than 49 hide B,C
If A greater than 49 show D
If A greater than 49 show D (yes, I need that twice!)

Seems like the order the conditions are checked is important. Also not sure why I had to run the condition for A greater than 49 to show D twice. But it won't work without it (the field D wouldn't show up otherwise).
  1. more than a month ago
  2. Support
  3. # Permalink
admin Accepted Answer
Admin
Hi,
you can do this with following conditions in field A:
- if greater than 15 then show field B (inverse No)
- if less than 15 then hide field B (inverse No)
- if greater than 30 then show field C (inverse No)
- if less than 30 then show hide C (inverse No)
- if greater than 50 then show field D (inverse No)
- if less than 50 then hide field D (inverse No)
  1. more than a month ago
  2. Support
  3. # 1
ggaillet Accepted Answer
Basic
Thanks,
The "show field" work but it seems like the "hide field" don't. At least with my fields B,C,D that are defined as html delimiter (so I can use pictures).
For field A greater than 15 I can see my field B alright
For field A greater than 30 I see my field B and C
For field A greater than 50 I see all my fields B,C and D

Can you confirm please?
Thanks.
  1. more than a month ago
  2. Support
  3. # 2
admin Accepted Answer
Admin
mmmh, you have right there is something of wrong in my proposed conditions, try with these:

1) if greater than 15 then show field B (inverse Yes)
2) if greater than 15 then hide fields C,D (inverse No)
3) if greater than 30 then show field C (inverse No)
4) if greater than 30 then hide fields B,D (inverse No)
5) if greater than 50 then show field D (inverse No)
6) if greater than 50 then hide fields B,C (inverse No)
  1. more than a month ago
  2. Support
  3. # 3
ggaillet Accepted Answer
Basic
OK. This is strange.
This way it works for anyone with A greater than 15. But for anyone greater than 30 or 50, or less than 15 it shows C and D together. :o :(
  1. more than a month ago
  2. Support
  3. # 4
ggaillet Accepted Answer
Basic
The greater than is also a strict greater than so the conditions at the value must be addressed. All conditions with Inverse conditions set to NO.
  1. more than a month ago
  2. Support
  3. # 5
admin Accepted Answer
Admin
Hi,
sorry but I does not understand :( have you solved now? Otherwise can you please post me your site details? we will do this for you ;)
  1. more than a month ago
  2. Support
  3. # 6
ggaillet Accepted Answer
Basic
Yes, solved it. Thanks. I posted my solution and tag it as an accepted answer. :p You can close this one.
  1. more than a month ago
  2. Support
  3. # 7
  • 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 Offline

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.