CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Drupal Modules (Moderator: Donald Lobo) »
  • CiviCRM + Webform + Views Question
Pages: [1]

Author Topic: CiviCRM + Webform + Views Question  (Read 1226 times)

Shawn_Goicoechea

  • I’m new here
  • *
  • Posts: 3
  • Karma: 0
  • CiviCRM version: 4.1
  • CMS version: Drupal 7
  • MySQL version: 5.1
  • PHP version: 5.3 (I think)
CiviCRM + Webform + Views Question
July 10, 2012, 03:54:13 pm

My partner and I organize a small non-profit (no paid staff) out of our home in our "spare" time.  I have created the Drupal (7) site and all content over the past year or so, then added Civi (4.2) and installed it myself.  I have just begun using it really and have found it a very fun learning experience.

For my first big project to get members of my community putting themselves in our civi, and because of a need in our org, I am setting up a musician registry form and parallel form for venues who want to host live music during the upcoming ArtsFest in our community.

The musician registry:  laluchaspace.com/?q=musician-registry

The venue page for booking: laluchaspace.com/?q=BookArtsFest

The venue page uses Views to show a grid of fields that meet the following filter criteria:

Filter criteria
CiviCRM Contacts: Contact Sub Type (= - Band)
AND
CiviCRM Custom: Music @ Conway ArtsFest: Interested in playing at ArtsFest? (True)
AND
CiviCRM Website: Website Type (in Website or Blog, ...)
AND
CiviCRM Contacts: Is Deleted (False)

I am having two problems.  1.) sometimes bands don't appear in the View after they add themselves - I think it is because of the Website filter, but I need that to prevent artists who have given us multiple websites from showing up multiple times... (or at least that was my solution to that problem). Is there another way to prevent a band from appearing multiple times w/ multiple value fields? Is there a way to only have one website type but still allow bands with no website to be seen?

Second,  on the form used by venues the drop down box that says "Select Band" is supposed to allow them to select from a Smart Group I created on essentially the same criteria as above (Band that is interested in artsfest).  I go look at the Smart Group and there are bands there that do not show up on my form. How or when do these update? When it wasn't working I added a band manually to the smart group and they appeared immediately in the drop down.  Is there a step I am missing RE my smart group?

Thank you all for the fabulous work that you do which allows very small orgs like ours to use awesome software without any budget for it. Also for all the learning resources that have made me able to learn everything up to this point without even talking to anyone else who has used CiviCRM before (until this post).

Best,
Shawn

Shawn_Goicoechea

  • I’m new here
  • *
  • Posts: 3
  • Karma: 0
  • CiviCRM version: 4.1
  • CMS version: Drupal 7
  • MySQL version: 5.1
  • PHP version: 5.3 (I think)
Re: CiviCRM + Webform + Views Question
July 10, 2012, 04:25:03 pm
I forgot to mention - I have also recently tried an OR statement in filter criteria that says "site type... " OR website URL is NULL. 

Two bands that have entered info do not display in the view. One that is displaying the view does not display in the webform select box.

Thanks again all.

petednz

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4899
  • Karma: 193
    • Fuzion
  • CiviCRM version: 3.x - 4.x
  • CMS version: Drupal 6 and 7
Re: CiviCRM + Webform + Views Question
July 10, 2012, 05:48:00 pm
Hi Shaun

> Is there a way to only have one website type but still allow bands with no website to be seen?

I am guessing there is a gap in the Views handlers and therefore you aren't getting the option to specify the 'type' of website that you want when putting in the field

You could try setting the Query Settings to Distinct (under OTHER) in the View.

RE the Form - you don't mention if this is a webform-civicrm form or not - if so which version?
Sign up to StackExchange and get free expert advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

pete davis : www.fuzion.co.nz : connect + campaign + communicate

Shawn_Goicoechea

  • I’m new here
  • *
  • Posts: 3
  • Karma: 0
  • CiviCRM version: 4.1
  • CMS version: Drupal 7
  • MySQL version: 5.1
  • PHP version: 5.3 (I think)
Re: CiviCRM + Webform + Views Question
July 10, 2012, 06:06:54 pm
I tried Select distinct in the query like you said, but it didn't work.. my guess is because the website is different for each one.

You said: "I am guessing there is a gap in the Views handlers and therefore you aren't getting the option to specify the 'type' of website that you want when putting in the field"

I'm not sure what that means?

I am using webform for this (w/ civicrm).  I created a custom field (in the music venue set) that is autocomplete select of group ArtsFest Bands (which is the smart group auto filling with type band AND interested in playing at ArtsFest).  Then I turned that on in the webform like any other field.

All submission on the webform Musician Registry are type Org-Band put in group Local Musicians and answering yes to one questions make them meet the criteria for the smart group.

Thanks so much for the help! Happy to keep trying any suggestions.

petednz

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4899
  • Karma: 193
    • Fuzion
  • CiviCRM version: 3.x - 4.x
  • CMS version: Drupal 6 and 7
Re: CiviCRM + Webform + Views Question
July 10, 2012, 06:18:21 pm
It means someone needs to write a Handler for this field - would be great if you have the ability to take a look at what is required. We have been doing a few of these so welcome to ping us if you see us on IRC in case we can provide any pointers (petednz, eileen or torrance123).

May be better to ask the webform question on the issues queue for webform_civicrm module ;-)
Sign up to StackExchange and get free expert advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

pete davis : www.fuzion.co.nz : connect + campaign + communicate

Coleman Watts

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 2346
  • Karma: 183
  • CiviCRM version: The Bleeding Edge
  • CMS version: Various
Re: CiviCRM + Webform + Views Question
July 17, 2012, 10:53:26 am
I'm surprised to hear that the CiviCRM api is still having trouble fetching contacts from a smart group. Perhaps this is a caching issue?
It's probably not the fault of webfrom_civicrm, which just fetches the list by calling on the CiviCRM api.
Try asking your question on the new CiviCRM help site.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Drupal Modules (Moderator: Donald Lobo) »
  • CiviCRM + Webform + Views Question

This forum was archived on 2017-11-26.