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 Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • No more autocomplete on the search when using the profile
Pages: [1]

Author Topic: No more autocomplete on the search when using the profile  (Read 1003 times)

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
No more autocomplete on the search when using the profile
July 23, 2008, 06:40:30 am
Hi,

I use profiles a lot to provide customised input forms, eg:

http://sandbox.civicrm.org/civicrm/profile/create&gid=1&reset=1
(same issue on the 2.0, hence my post here)

However, I face 2 problems:

1) The search box doesn't have the autocomplete feature. That would be convenient to quick check that the contact isn't already in the db
Is that just a matter of adding an include of the right js calls ?

Any reason the search box doesn't always include these calls ?

2) Most of the time, I provide a employee of field for the individual profiles. I'd like to add an autocomplete on that field (you can still type whatever you want, but it eases the link to an existing org instead of creating duplicates because you type it slightly differently.

Is it possible and is it possible to filter the autocomplete on org only ?


(actually, I have a 3rd problem, I'd like to have a "with links" mode on the profile views, so you can click on the name to get the full view, click on the employee to get the full view... I can do that with custom templates, but not sure if/how to make it more automatic).

X+

-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: No more autocomplete on the search when using the profile
July 23, 2008, 03:20:35 pm
Hi Xavier -
1) we had been explicitly excluding dojo scripts from "public-facing" forms due to concerns about the weight of the pages and potential browser compatibility issues for the "wider audience". However, dojo 1.1 is much more compact and we're more comfortable with that widget - so I've added an issue for 2.1 to remove the exclusion. I think you can safely do this in 2.0 by removing the conditional with sets includeDojo=false in drupal/civicrm.module.

http://issues.civicrm.org/jira/browse/CRM-3347

2) The "automcomplete" is the dojo comboBox widget and can be configured to filter the submitted query. Check out the comboBox in "New Individual" when you select Create new Organization radio button for Current Employer. You'll need to do some coding in order to expose this in a profile. We don't currently because of issues with exposing all the contacts in the DB to "the public". I suspect we'll figure out some appropriate permissioning approach for this at some point in the future - but it's not on the immediate roadmap.
Protect your investment in CiviCRM by  becoming a Member!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • No more autocomplete on the search when using the profile

This forum was archived on 2017-11-26.