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 CiviMail (Moderator: Piotr Szotkowski) »
  • CiviMail Template names in Dropdown but undefined in textboxes
Pages: [1]

Author Topic: CiviMail Template names in Dropdown but undefined in textboxes  (Read 1295 times)

Denver Dave

  • Ask me questions
  • ****
  • Posts: 471
  • Karma: 9
CiviMail Template names in Dropdown but undefined in textboxes
December 20, 2007, 11:08:45 am
When I create Templates in CiviMail, they do appear in the dropdown, but all I get in the textboxes is "undefined".   Templates do display in the http://demo.civicrm.org   I'm running CiviCRM 1.9.12267

Any ideas?  Could it be a path or something else that I have not defined?
- - -
I checked and the template content seems to be in civicrm_msg_template table and viewable from Administer CiviCRM / Configure / Message Templates
- - -
Maybe it is a JavaScript issue:
<td class="label" width="105px"><label for="template">Select Template</label></td><td><select onchange="selectValue( this.value );" name="template" id="template" class="form-select">
Code: [Select]
// part of function selectValue( val ) listed below from view source from CiviMail page
var request = dojo.io.bind(
              {
         url: dataUrl,
method: "get",
preventCache:true,
mimetype: "text/json",
load: function(type, data, evt) {
    _this._inFlight = false;
    if ( !dojo.lang.isArray(data) ) {
       var arrData = [];
       for ( var key in data ) {
   arrData.push([data[key], key]);
       }
       data = arrData;
    }

    if (request == _this._lastRequest){
      callback(data);
    }

    //set text message
    dojo.byId('text_message').value = data[0];

    //set html message
    var ed = dojo.widget.byId('html_message');
    ed.editNode.innerHTML = data[1];
}

« Last Edit: December 20, 2007, 05:37:38 pm by Denver Dave »

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: CiviMail Template names in Dropdown but undefined in textboxes
December 20, 2007, 09:23:56 pm
Can you try to replicate this issue on demo. If your are able to replicate file an issue in jira and also attach sample template.

kurund
Found this reply helpful? Support CiviCRM

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • CiviMail Template names in Dropdown but undefined in textboxes

This forum was archived on 2017-11-26.