1

I have set up a bunch of my contacts with a group of custom fields that can have multiple entries.
I set up a profile to list out these custom fields, however, it is asking me to enter search criteria before listing the entries. I would like it to automatically use the logged in users information to search on it and display only their entries - how can I do this?

TIA Norm

6
  • Norm - i have read this twice and haven't grasped the requirement/intention. One option is to replicate a simplified version on one of the demo sites then folks can look at what you mean (just try and avoid doing it just before they reset the site which happens every 24 hours)
    – petednz - fuzion
    May 9, 2017 at 23:04
  • Ok, I set up a small demo in the wpmaster.demo.civicrm.org server. Check out user john test1 ([email protected]) and then check the tab for the custom data. It has multiple records. When this user is logged into the web site as a user/subscriber, I want him to be able to go to a page with their data on it listed out. Right now when the user goes to that page they have to enter a searchable value in a searchable field to get the results listing. May 10, 2017 at 15:26
  • you might need to flesh this out more. when you say "Right now when the user goes to that page" i am not sure 'which' page you mean. since i take it you don't mean wpmaster.demo.civicrm.org/wp-admin/…
    – petednz - fuzion
    May 10, 2017 at 21:16
  • and sorry if i am slow to grasp this. i could give you an instant recipe (i think) for Drupal, but don't know WP tricks - so just trying to help you finesse your Question to improve chance that someone who speaks WordPress can help ;-)
    – petednz - fuzion
    May 10, 2017 at 21:17
  • To close this out, I have actually written a custom PHP script to do this for me in a nice table format. I inject the PHP using a wordpress plugin call XYZ PHP Code and it works great. May 28, 2017 at 13:57

1 Answer 1

2

To close this out, I have actually written a custom PHP script to do this for me in a nice table format. I inject the PHP using a wordpress plugin call XYZ PHP Code and it works great.

you can get the script here: http://txt.do/d01fm

1
  • Thanks for posting this. Are you happy to share the code to help others? Jun 6, 2017 at 16:18

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.