By Andrew Heritage on Thursday, 12 February 2015
Posted in General Issues
Replies 13
Likes 0
Views 636
Votes 0
I am trying to figure out how to use the "Boolean" field type for events. I assumed I couls add it to the event catogory configuration so that when a user is creating an event, they say a Yes/No and depending on how they set that another field is active or not.

I can't see any way to link this boolean field to the other field?
Hi Andrew,

I have mention that 2 3 times yet in last year. I can it logical operator that one's field appearance would be dependant on another field. Mark called it Intelligence field and start teasing their brain on it. For me, for a proper form kinda thing, that's mandatory but its isn't there. I suggested 2 weeks ago to have it works with custom field app but haven't start it since I have 2-3 project ahead and unfortunatly I can manage this with 2 or 3 different profile type (instead of one).

Hope this will make it soon dho...
·
Thursday, 12 February 2015 22:33
·
0 Likes
·
0 Votes
·
0 Comments
·
I have to confess that at the moment I am failing to see what the Boolean actually does if it can't work the way I assumed it would! I checked the documentation and the page for it actually is about something totallty different!
·
Thursday, 12 February 2015 22:39
·
0 Likes
·
0 Votes
·
0 Comments
·
This would be useful after EB5 and ES 1.4. Vote up the voices request here and add your comments if it's not what you're looking for. The suggestion is for supporting something like related custom fields which would make it possible that when you select a field option of the parent custom field, all fields that contain child field options will appear. One way to visualize this is to see how it could be done by looking at another product's attempt to support this type of capability.
·
Thursday, 12 February 2015 23:13
·
0 Likes
·
0 Votes
·
0 Comments
·
Seem to be straying from the original question here which is how to use the existing Boolean field type that appears and is available to you in events

(although the follow up points are good but I would like an answer to original question please )
·
Thursday, 12 February 2015 23:19
·
0 Likes
·
0 Votes
·
0 Comments
·
Regarding the initial question:
I can't see any way to link this boolean field to the other field?
as far as I know, there is no way as an Admin to do so. Hopefully the developers will see the need for this capability and add it in a future release. Having said that, there is still value in using Boolean fields in searches.

If you're able to code, there is a way for you to access the Boolean field.


  1. You're able to retrieve the value of Boolean variables and have that guide other actions you take. For example:

  2. require_once( JPATH_ADMINISTRATOR . '/components/com_easysocial/includes/foundry.php' );
    $my = Foundry::user();

    $eventQuestion = $my->getFieldData('EVENT_QUESTION');
    if ($eventQuestion === '1') {
    do something to effect what the user sees or does when the field is TRUE
    }
    else
    {
    do something to effect what the user sees or does when the field is FALSE
    }


  3. Other use of the Boolean field is possible if Admins make the boolean field searchable and thereby enable your users to search for the field. You can also use the Boolean field in the advanced search which is available from the search query window and save the search as a filter for use by site members. This could help them find and use relevant information.
·
Thursday, 12 February 2015 23:58
·
0 Likes
·
0 Votes
·
0 Comments
·
Would agree with Eileen,

My only usage its through coding. I have almost completely disable the search for such point.

Alex
·
Friday, 13 February 2015 00:10
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey guys,

The boolean field is simply a field that allows the event creator to set a yes / no value. For instance, you could add a field that says, "Allow Children". This way, when the user views the information about the event they'll see a yes / no value of the event.
·
Friday, 13 February 2015 00:30
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks Mark. I see how it works now, although to be honest I don't really call that "working" ! Now I see why there was so much response about actually making that functionality work - it seems quite lacking not to have Boolean work the same way as it does for things like "Allow Maybe State"
·
Friday, 13 February 2015 01:17
·
0 Likes
·
0 Votes
·
0 Comments
·
Hm, not really sure what you mean but it's simply just a boolean field that allows you to specify yes or no. Don't see how is this related to "Allow Maybe State"?
·
Friday, 13 February 2015 01:19
·
0 Likes
·
0 Votes
·
0 Comments
·
When someone creates an event, they can set "Allow maybe state" to Yes or No and that then has an effect of showing an option or not (boolean) to people registering for the event.

What I assumed was that there was a way to have the Boolean field do something i.e. show or hide an option in the same way that "Allow maybe state", " Allow Not Going State" etc do.

In attached ex1.png shows a back end that allows the creator to say if dontations are being collected or not.

What I was hoping that if they set Yes it will show up as per ex2.png but if they set No then that line will not appear on the form.
·
Friday, 13 February 2015 01:28
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Andrew,

I am sorry for the late reply.
If I understand you correctly, you wanted the boolean field to be able to do processes, such as hide/displaying some fields. Am I understand you correctly? If I do, I believe what you're asking is not possible in the current system. I will forward this to our developers and see if they can implement this in the future. In the mean time, you can also voice this out in http://stackideas.com/voices/easysocial.

Hope this answered your question.
·
Friday, 13 February 2015 18:25
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks - will voice it although I'm not holding my breath for anything there to be implemented soon as seems you are all working on easyblog in the past and for the future

(I am also working on trying to get EventBooking to support EasySocial as their event booking system has so much functionality it would be great to just use that instead of the limited EasySocial events feature.)
·
Wednesday, 18 February 2015 19:57
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks for the heads up on this Andrew
·
Wednesday, 18 February 2015 23:37
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post