I am getting an error: SyntaxError: missing: after property id 1: at line 2

  Kiến thức lập trình
var oList = {
  "NO EXCEPTIONS TAKEN:" - 1,
  "MAKE CORRECTIONS NOTED:" - 1,
  "REVISE AND          RESUBMIT:" - 1,
  "REJECTED:" - 1
};
var dlg = initialize: {
    function(dialog)
  } {
    dialog.load({
      lst1: oList
    });
  },
  commit: function(dialog)
} {
  this.oSelect = dialog.store().lst1;
}, description: {
  name: “Review Action”,
  elements: [{
    type: “view”,
    elements: [{
        type: “static_text”,
        item_id: “stat”,
        name: “Select an Item”
      },
      {
        type: “popup”,
        item_id: “lst1”,
        char_width: 6
      },
      {
        type: “ok”
      }
    ]
  }]
}
`
    };

This is for an Adobe stamp to have the user choose a response that is added to the stamp. I’ve tried various ways to notate the var dlg = initialize: {function(dialog)} but nothing is working. I suspect I have other formatting errors as well.

New contributor

CSchlenz is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

4

LEAVE A COMMENT