Answers.Body: <p>This is how I have implemented the <a href="https://github.com/Project60/org.project60.sepa/blob/master/templates/CRM/Admin/Form/Setting/SepaSettings.tpl#L57" rel="nofollow">popup help texts in CiviSEPA</a>. The main difference here is that the .hlp file extension is omitted, the directory separator in the path are escaped and that I have enclosed the code in <code>{literal}</code> <code>{/literal}</code>-tags.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-10-02T18:09:43.777Z
Answers.Text: Yes, thanks, I got it working.  It ended up being a combination of using &quote; entities and escaping directories.  I also omitted the .hlp extension but I don't know that it made a difference.  Using tags wouldn't have worked for me since this isn't in a template, it's in submitted data - form help text.
Answers.UserDisplayName: Rob Brandt
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-10-02T14:18:46.567Z
Answers.LastActivityDate: 2015-10-02T14:18:46.567Z
Answers.UserDisplayName: nikobo
Body: <p>I am trying to add some end user popup help text for some fields in a profile.  I have looked at several examples in core and extensions and have tried to follow them as examples.  I have an extension already loaded where I am (attempting) to manage the code.  I have added the anchor html and "onclick" javascript into the field's pre-help text for the custom field.</p>
  
  <p>The popup works, of sorts.  The popup appears, along with the title supplied in the anchor tag, but the actual content of the popup does not.<br>
      <code>&lt;a class="helpicon" title="What is this?" href="#" onclick='CRM.help(&amp;quot;What is this?&amp;quot;, {"id":"what-is-this","file":"CRM/Myextension/myextension.hlp"}); return false;'&gt;&amp;nbsp;&lt;/a&gt;
   &lt;/div&gt;</code></p>
  
  <p>The .hlp file has IDs named correctly AFAIK, as what-is-this-title and what-is-this.  What am I missing?</p>
  
Tags: <custom-fields><extension><javascript>
Title: Adding popup info via CRM.help() - doesn't quite work
ThreadText: # Adding popup info via CRM.help() - doesn't quite work
  
  (Asked by: username_0 on 2015-10-01)
  
  I am trying to add some end user popup help text for some fields in a profile. I have looked at several examples in core and extensions and have tried to follow them as examples. I have an extension already loaded where I am (attempting) to manage the code. I have added the anchor html and "onclick" javascript into the field's pre-help text for the custom field.
  
  The popup works, of sorts. The popup appears, along with the title supplied in the anchor tag, but the actual content of the popup does not.
  
  The .hlp file has IDs named correctly AFAIK, as what-is-this-title and what-is-this. What am I missing?
  
  **Tags:** custom-fields, extension, javascript
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2015-10-02. Score: 0 | Accepted answer
  
  This is how I have implemented the [popup help texts in CiviSEPA](https://github.com/Project60/org.project60.sepa/blob/master/templates/CRM/Admin/Form/Setting/SepaSettings.tpl#L57). The main difference here is that the .hlp file extension is omitted, the directory separator in the path are escaped and that I have enclosed the code in `{literal}` `{/literal}`-tags.
  
  > **Comments:**
  > **username_0**: Yes, thanks, I got it working.  It ended up being a combination of using &quote; entities and escaping directories.  I also omitted the .hlp extension but I don't know that it made a difference.  Using tags wouldn't have worked for me since this isn't in a template, it's in submitted data - form help text.  
  
  ---
  
  