Answers.Body: <p>I don't think you can generate a qfKey - if I understand your question, using an html-snippet of a Profile that is set up with the Groups field may give you what you want.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2018-02-26T14:20:23.860Z
Answers.Text: I would like to display newsletter subscriptions in Joomla modules.
  
  If I use a profile, the user will get added to the group, but I don't think they will receive a double opt-in.
Answers.UserDisplayName: Joel
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2018-02-26T20:14:43.123Z
Answers.Text: Double opt-in is a setting in civicrm at Admin > CiviMail > CiviMail component Settings - look for "Enable Double Opt-in for Profile Group(s) field"
Answers.UserDisplayName: petednz - fuzion
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2018-02-22T19:14:20.257Z
Answers.LastActivityDate: 2018-02-22T19:14:20.257Z
Answers.UserDisplayName: petednz - fuzion
Body: <p>I am trying to put a "mailing list" subscribe form into a Joomla module (having the sign-up be its own page is not very useful).</p>
  
  <p>However, I am running into problems with qfKey. How can I generate a qfKey?</p>
  
  <p>I can copy and paste the generated form html, but submissions can't happen without a valid qfKey in the form post.</p>
  
  <p>Any other/better ways of doing this or is there a simple function I can call to generate a qfKey for mailing list sign up?</p>
  
  <p>Thanks in advance,
  Joel</p>
  
Tags: <joomla><forms><modules>
Title: Civi forms in Joomla module (qfKey?)
ThreadText: # Civi forms in Joomla module (qfKey?)
  
  (Asked by: username_0 on 2018-02-22)
  
  I am trying to put a "mailing list" subscribe form into a Joomla module (having the sign-up be its own page is not very useful).
  
  However, I am running into problems with qfKey. How can I generate a qfKey?
  
  I can copy and paste the generated form html, but submissions can't happen without a valid qfKey in the form post.
  
  Any other/better ways of doing this or is there a simple function I can call to generate a qfKey for mailing list sign up?
  
  Thanks in advance,
  username_0
  
  **Tags:** joomla, forms, modules
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2018-02-22. Score: 1
  
  I don't think you can generate a qfKey - if I understand your question, using an html-snippet of a Profile that is set up with the Groups field may give you what you want.
  
  > **Comments:**
  > **username_0**: I would like to display newsletter subscriptions in Joomla modules.  If I use a profile, the user will get added to the group, but I don't think they will receive a double opt-in.  
  > **username_1**: Double opt-in is a setting in civicrm at Admin > CiviMail > CiviMail component Settings - look for "Enable Double Opt-in for Profile Group(s) field"  
  
  ---
  
  