Body: <p>Is there a way to set a default value for a (non-custom) profile field - that would get pre-populated when the page with the profile opens?
  Cheers</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-10-20T12:32:25.153Z
Comments.Text: I know hooks (e.g. https://wiki.civicrm.org/confluence/display/CRMDOC42/hook_civicrm_buildForm) - but is there another way?
Comments.UserDisplayName: Abteilung Gerontopsychiatrie
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-10-20T12:34:25.927Z
Comments.Text: Would a bit of js be in your skill set?
Comments.UserDisplayName: petednz - fuzion
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-10-20T15:40:10.000Z
Comments.Text: Would probably get there - was primarily thinking that I may have missed an on-board way to do so...
Comments.UserDisplayName: Abteilung Gerontopsychiatrie
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-10-20T15:50:40.557Z
Comments.Text: In webforms it is straight forward for core fields (just fyi)
Comments.UserDisplayName: petednz - fuzion
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-10-20T16:05:20.597Z
Comments.Text: Yep - but no Drupal ;(
Comments.UserDisplayName: Abteilung Gerontopsychiatrie
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-10-20T19:16:57.137Z
Comments.Text: Have you tried Caldera Forms CiviCRM: https://github.com/mecachisenros/caldera-forms-civicrm
Comments.UserDisplayName: Christian Wach
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-10-21T16:19:22.730Z
Comments.Text: Wow - on the way to Webforms for Wordpress then! @ChristianWach referencing Javascript and probably using CRM.api3 calls - right!? I've been trying all day (I'm quite persistent without any real skills usually get things to work with trial and error) - but no luck. Would you be able to to provide a sample script (working in the realm of Wordpress - e.g. an API call that outputs the current contacts first name?) I'd promise play around with it! Cheers
Comments.UserDisplayName: Abteilung Gerontopsychiatrie
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-10-22T16:05:06.280Z
Comments.Text: On the way, yes. CFC will allow you to auto-populate a field without the need for code - just check the box and select which value you want from CiviCRM
Comments.UserDisplayName: Christian Wach
Tags: <wordpress><profile><fields>
Title: Default value for a (non-custom) profile field
ThreadText: # Default value for a (non-custom) profile field
  
  (Asked by: username_0 on 2016-10-20)
  
  Is there a way to set a default value for a (non-custom) profile field - that would get pre-populated when the page with the profile opens?
  Cheers
  
  **Tags:** wordpress, profile, fields
  
  > **Comments:**
  > **username_0**: I know hooks (e.g. https://wiki.civicrm.org/confluence/display/CRMDOC42/hook_civicrm_buildForm) - but is there another way?  
  > **username_1**: Would a bit of js be in your skill set?  
  > **username_0**: Would probably get there - was primarily thinking that I may have missed an on-board way to do so...  
  > **username_1**: In webforms it is straight forward for core fields (just fyi)  
  > **username_0**: Yep - but no Drupal ;(  
  > **username_2**: Have you tried Caldera Forms CiviCRM: https://github.com/mecachisenros/caldera-forms-civicrm  
  > **username_0**: Wow - on the way to Webforms for Wordpress then! @username_2 referencing Javascript and probably using CRM.api3 calls - right!? I've been trying all day (I'm quite persistent without any real skills usually get things to work with trial and error) - but no luck. Would you be able to to provide a sample script (working in the realm of Wordpress - e.g. an API call that outputs the current contacts first name?) I'd promise play around with it! Cheers  
  > **username_2**: On the way, yes. CFC will allow you to auto-populate a field without the need for code - just check the box and select which value you want from CiviCRM  
  
  ---
  
  ## 0 answers
  
  