1. karelbtw
  2. Support
  3. Sunday, March 20 2016, 08:12 AM
Hello,
I have defined two additional user fields in Easy Profile. One is: "Club Member (Y/N)?" -of the select type. Options No = Value 1 and Yes = Value 2. The second user Field is "Membership Number" -of text type with the requirement for an integer number.
I am trying to make the appearance of the second user filed (Membership Number) dependent upon the selected value of the first field.
I have tried either way: set a condition with the first user field to only display the second field if its value is 2 (Yes), or set a condition with the second field to only display itself if the value of the first field is 2 (Yes).
Neither is working properly on the front end registration form. The second field will be shown regardless of the selected value of the previous field.
What should I do?
Thanks
admin Accepted Answer
Admin
Hi,
please check that in the condition you have set "Compare With" parameter to "Custom Value".

Otherwise please post me some screenshot to see you configuration, or site details*.

*you can use the form below the reply in "Site Details" tab
  1. more than a month ago
  2. Support
  3. # 1
karelbtw Accepted Answer
Pro
Content Protected
  1. more than a month ago
  2. Support
  3. # 2
admin Accepted Answer
Admin
Hi,
the purpose of condition parameter is explained in Tips, try to put mouse cursor over the parameters to see these tips.

I am wondering though, what the purpose is of allowing the values to be compared to all other fields on the list as well
"Custom value" meets many use cases, but for advanced uses this is limited, see this example:

I have a select field called "User Type" with these options:
visitor|Visitor
student|Student
researcher|Researcher
teacher|Teacher

I have a field called "Curriculum" and I want to have this field only when "User Type" equal to "researcher" or "researcher"

WRONG CONFIGURATION
I can set these conditions on field "User Type:
- Condition 1: if equal to custom value "researcher" show field "Curriculum"
- Condition 2: if equal to custom value "teacher" show field "Curriculum"

this is wrong because conditions have 2 ways, for example if I choose "researcher" then
- Condition 1 show "Curriculum" field
- Condition 2 hide "Curriculum" field
Result: "Curriculum" field is hidden for "researcher" option (Bad for me)

BEST CONFIGURATION
I can create a hidden field type with default value like "researcher teacher", and set this condition:
- Condition 1: if contain "User Type" value show "Curriculum" field

this is correct, because if I choose "researcher" or "teacher" condition is met and I see "Curriculum" field.

ALTERNATIVE WITH CUSTOM VALUE
I can change values in the "User type" field like these
1|Visitor
2|Student
3|Researcher
4|Teacher

and set conditions like this:
- Condition 1 - if greater then custom value "2" show field "Curriculum" field

This works but you will have 2 problems:
- The stored data in DB are not explicit, you will have something like 1,2,3 or 4 instead something of more comprensive like visitor,student,....
- If you need to create another options you should have some problem


This is only one uses case, but there are infinite possibilities, some advanced customer use also our API to manipulate the custom fields, and this feature can be useful.
  1. more than a month ago
  2. Support
  3. # 3
vikram-jeet Accepted Answer
easy profile working with 3.5 joomla version?
  1. more than a month ago
  2. Support
  3. # 4
admin Accepted Answer
Admin
@Vikram Jeet
- Why this question in this Topic?
- Which version of Easy Profile?

Please respect our Forum, this topic has nothing to do with Joomla 3.5 compatibility.
  1. more than a month ago
  2. Support
  3. # 5
vikram-jeet Accepted Answer
ok
  1. more than a month ago
  2. Support
  3. # 6
  • Page :
  • 1


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