Support

  1. carlos-bahiana
  2. General
  3. Friday, July 19 2019, 09:37 PM
  4.  Subscribe via email
I have a radio field (preferences) with five options, lets say they are 1,2,3,4 and 5. I need to show a text field (Explain) if the user chooses 3 or 4. Can I set a condition on Preferences so that if the field is not equal to custom value 3 OR 4 hide field Explain?
Accepted Answer
admin Accepted Answer
Admin
Hi,
sorry there is a error in my previous reply, conditions should be:
1) if not equal to custom value 99 then hide field Explain (Inverse: No)
2) if equal to custom value 3 then show field Explain (Inverse: No)
3) if equal to custom value 4 then show field Explain (Inverse: No)

Why 99?
99 is a example, you can use a value that will be never selected. With this condition 1 will always met so condition 1 always hide Explain field

Will that also work for select fields?
Yes, but if you enable multivalue options then conditions should be:
1) if not equal to custom value 99 then hide field Explain (Inverse: No)
2) if contain custom value 3 then show field Explain (Inverse: No)
3) if contain custom value 4 then show field Explain (Inverse: No)




Another way of stating this would be:

If value X, then hide group A (inverse on) and show group Z
If value Y, then hide group B (inverse on) and show group Z
Something like this will not works, for example:

I choose value W (not X or Y)
Condition 1 will show group A and group Z (inverse effect)
Condition 2 will show group B and group Z (inverse effect)
Result: you will see group A, B and Z. But I think this is not the correct behavior.


Is adding an OR to the if conditions something on the road-map?
No sorry, OR is already possible.
  1. one week ago
  2. General
  3. # Permalink
admin Accepted Answer
Admin
Hi,
this is possible with 3 conditions:
1) if equal to custom value 99 then hide field Explain (Inverse: No)
2) if equal to custom value 3 then show field Explain (Inverse: No)
3) if equal to custom value 4 then show field Explain (Inverse: No)

Condition 1 will be always met, so it hide always field Explain.

For example

if the value is 3
- Condition 1 hide field Explain
- Condition 2 show field Explain
- Condition 3 will do nothing
Result: Explain field will be visible

if the value is 4
- Condition 1 hide field Explain
- Condition 2 will do nothin
- Condition 3 show field Explain
Result: Explain field will be visible

if the value is something else than 3 or 4
- Condition 1 hide field Explain
- Condition 2 will do nothin
- Condition 3 will do nothin
Result: Explain field will be hidden
  1. more than a month ago
  2. General
  3. # 1
nobicycle Accepted Answer
Pro
Hello
I have a select field and want to do a similar thing. Please explain :

"if equal to custom value 99 then hide field Explain (Inverse: No)"

Why 99? Will that also work for select fields?

I my case I already have several conditions in place to hide field groups with 'Inverse Yes'. Working fine. Let's say values X and Y are hiding groups in this way.

Now I want to add in addition, "if value X or value Y then hide group Z (not referenced by the existing hide conditions).

Do I do exactly as above. three conditions, Inverse No, one referencing 99?

Another way of stating this would be:

If value X, then hide group A (inverse on) and show group Z
If value Y, then hide group B (inverse on) and show group Z

Is adding an OR to the if conditions something on the road-map?

Best wishes
  1. one week ago
  2. General
  3. # 2
nobicycle Accepted Answer
Pro
Thank you Admin. I can't close it as resolved 'cos not my thread.
  1. one week ago
  2. General
  3. # 3
  • 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.