Answers.Body: <p>Sorry, I foundout: HTML snippets are available in profiles if you enable external profiles only (System settings > Misc...). Will give that a try. Not really an answer to the initial question but will probably be good enough.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-04-12T17:09:08.140Z
Answers.LastActivityDate: 2019-04-12T17:09:08.140Z
Answers.UserDisplayName: stijn
Body: <p>I am trying to include a subscription form (civicrm profile) in a static html using an iframe. Using '&amp;snippet=1' in the url I can remove all the irrelevant page parts. </p>
  
  <p>Works good when loading and submitting except when there is an error: then the page reloads without the '&amp;snippet=1' and so the full page of civicrm site is loaded ... </p>
  
  <p>Is there any way to force the 'snippet=1' part or should I look at making a second site with a shared civicrm db to do this. I need the crm site to work properly and to have a theme but I could add a second site with a stripped theme.</p>
  
  <p>Thank you!</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-04-05T16:33:16.930Z
Comments.Text: Could you please say what CMS you are using and what version of CiviCRM?
Comments.UserDisplayName: peterb
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-04-09T06:28:56.760Z
Comments.Text: woopie hadn't noticed this reply. CiviCRM is on a drupal 7. The iframe should be implemented in a static site.
Comments.UserDisplayName: stijn
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-04-09T14:31:56.547Z
Comments.Text: Would it not be easier just to embed the HTML snippet instead of an iframe?
Comments.UserDisplayName: Tony Horrocks
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-04-09T18:08:08.763Z
Comments.Text: I feel very stupid now... I have always worked with CiviCRM on site (with drupal), and I have no clue where to find documentation for 'using an html snippet' for a profile...
Comments.UserDisplayName: stijn
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-04-12T18:43:29.537Z
Comments.Text: i don't know if it is an answer, but in a similar situation we created a theme that had no styling in it, that way the profile showed on the external site with no civicrm or drupal elements/styling just a white background
Comments.UserDisplayName: petednz - fuzion
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-04-13T08:55:29.000Z
Comments.Text: that was the other option I had in mind. But then we need to make a multi-domain stall. One with styling, one without... Wonder if it works OK
Comments.UserDisplayName: stijn
Tags: <profile>
Title: Profiles in iframe
ThreadText: # Profiles in iframe
  
  (Asked by: username_0 on 2019-04-05)
  
  I am trying to include a subscription form (civicrm profile) in a static html using an iframe. Using '&snippet=1' in the url I can remove all the irrelevant page parts.
  
  Works good when loading and submitting except when there is an error: then the page reloads without the '&snippet=1' and so the full page of civicrm site is loaded ...
  
  Is there any way to force the 'snippet=1' part or should I look at making a second site with a shared civicrm db to do this. I need the crm site to work properly and to have a theme but I could add a second site with a stripped theme.
  
  Thank you!
  
  **Tags:** profile
  
  > **Comments:**
  > **username_1**: Could you please say what CMS you are using and what version of CiviCRM?  
  > **username_0**: woopie hadn't noticed this reply. CiviCRM is on a drupal 7. The iframe should be implemented in a static site.  
  > **username_2**: Would it not be easier just to embed the HTML snippet instead of an iframe?  
  > **username_0**: I feel very stupid now... I have always worked with CiviCRM on site (with drupal), and I have no clue where to find documentation for 'using an html snippet' for a profile...  
  > **username_3**: i don't know if it is an answer, but in a similar situation we created a theme that had no styling in it, that way the profile showed on the external site with no civicrm or drupal elements/styling just a white background  
  > **username_0**: that was the other option I had in mind. But then we need to make a multi-domain stall. One with styling, one without... Wonder if it works OK  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2019-04-12. Score: 1
  
  Sorry, I foundout: HTML snippets are available in profiles if you enable external profiles only (System settings > Misc...). Will give that a try. Not really an answer to the initial question but will probably be good enough.
  
  
  ---
  
  