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) »
  • Prepopulating view-only fields using HTML snippet (ie, edit view)
Pages: [1]

Author Topic: Prepopulating view-only fields using HTML snippet (ie, edit view)  (Read 745 times)

rjb

  • I post occasionally
  • **
  • Posts: 63
  • Karma: 2
  • CiviCRM version: 3.3.5
  • CMS version: Drupal 6
  • MySQL version: 5.1.44
  • PHP version: 5.3.1
Prepopulating view-only fields using HTML snippet (ie, edit view)
February 04, 2011, 02:02:18 am
Hi, all...

Is there any way to get an *edit* view (rather than a create view) when pasting html snippet code into a drupal page? I'd love to have view-only fields (first / last name and email) so that a user can't provide data and pretend to be someone else, but I also need to make sure that only users with a certain drupal role get access to the profile form.

My alternative is to use a normal edit-style Civi profile view (not embedded into drupal) and lock down the page with a custom drupal module, but that seems a very long way around things.

Thanks,

R

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: Prepopulating view-only fields using HTML snippet (ie, edit view)
February 04, 2011, 08:40:14 am

hmm

dont think thats possible.

html is static, pre-populating the logged in users data is dynamic. you need code in there to match stuff

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

rjb

  • I post occasionally
  • **
  • Posts: 63
  • Karma: 2
  • CiviCRM version: 3.3.5
  • CMS version: Drupal 6
  • MySQL version: 5.1.44
  • PHP version: 5.3.1
Re: Prepopulating view-only fields using HTML snippet (ie, edit view)
February 09, 2011, 05:58:06 am
Hi, Lobo - and thanks for the reply. I'd figured as much. We'll lock it down with the advice given under "Permissions for Profiles (Drupal Only)" here:

http://wiki.civicrm.org/confluence/display/CRMDOC33/Linking+Profiles

Thanks,

RJB

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Profiles (Moderator: Dave Greenberg) »
  • Prepopulating view-only fields using HTML snippet (ie, edit view)

This forum was archived on 2017-11-26.