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 Profiles (Moderator: Dave Greenberg) »
  • Unwanted search screen
Pages: [1]

Author Topic: Unwanted search screen  (Read 2186 times)

jere

  • I post occasionally
  • **
  • Posts: 41
  • Karma: 1
  • CiviCRM version: 4.3.3
  • CMS version: Drupal 7.22
  • MySQL version: 5.5.31
  • PHP version: 5.3.10
Unwanted search screen
April 25, 2013, 05:52:55 am
I have a profile that works fine when I use this type of url: www.example.com/?q=civicrm/profile/edit&gid=34&reset=1. However, if I try to use a url like this: www.example.com/civicrm/profile/edit&gid=34&reset=1 without the ?q=, I get a search screen that I don't want. The form is using almost entirely custom fields.  If I set none of the fields as searchable, I get an error message that there are not fields marked as searchable. Is there a way to have a clean url, i.e. without the ?q= and have it go straight to the profile form?

If it matters, I create the profile using a hook to send the data needed to the form and a custom template. There are multiple records per entity_id and the custom fields do not show up in the profile creation forms;  I send the fields and the form elements to the form from the hook.

Thanks

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Unwanted search screen
April 25, 2013, 06:37:55 am

check:

http://drupal.demo.civicrm.org/civicrm/profile/edit?reset=1&gid=1

seems like there is something wrong with the way clean urls have been setup?

ahh

change your url to:

www.example.com/civicrm/profile/edit?gid=34&reset=1

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

jere

  • I post occasionally
  • **
  • Posts: 41
  • Karma: 1
  • CiviCRM version: 4.3.3
  • CMS version: Drupal 7.22
  • MySQL version: 5.5.31
  • PHP version: 5.3.10
Re: Unwanted search screen
April 25, 2013, 07:06:53 am
That works fine. I should have seen it myself.

Interpolat

  • I post frequently
  • ***
  • Posts: 140
  • Karma: -1
    • Interpolat Solutions, LLC.
  • CiviCRM version: 4.4+
  • CMS version: Wordpress
  • MySQL version: 5.5+
  • PHP version: 5.4+
Re: Unwanted search screen
May 17, 2013, 04:15:47 pm
I am having somewhat of a similar issue.  So I have a profile that I am using for a "Contact Us" page on one of my sites.  At the bottom there is the "Save" button and also the "Cancel" button.    If a user clicks the cancel button, they are taken to a Search screen with url ending in ?page=CiviCRM&q=civicrm/profile&reset=1&gid=13.  If a user does not enter anything into the search fields, but just clicks the "Search" button below, then all my searchable contacts are displayed on the front end, with a url ending with ?page=CiviCRM&q=civicrm/profile&_qf_Search_display=true&qfKey=c2ce4ed9c6651008f9015a159edd41d3_4877

Interpolat Solutions, LLC
Connecting the dots for you!
http://www.interpolat.com

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Unwanted search screen
May 17, 2013, 04:36:39 pm

check your profile settings. You can customize where the cancel and successful save takes you

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Profiles (Moderator: Dave Greenberg) »
  • Unwanted search screen

This forum was archived on 2017-11-26.