MIGX icon indicating copy to clipboard operation
MIGX copied to clipboard

clicking add item opens a blank page

Open sonicfive opened this issue 7 years ago • 7 comments

If I click on "add item" I am getting a blank browser document. The modal window is no longer working. Already tested different browsers.

MODX Revolution 2.4.0-pl MIGX 2.9.0-pl

I am not sure if updating migx will break anything on live site. Already cleared cache, etc.

sonicfive avatar Jun 21 '17 17:06 sonicfive

what are your MIGX - configs?

Bruno17 avatar Jun 22 '17 03:06 Bruno17

Form tabs: [ {"caption":"Title and Link", "fields": [ {"field":"title","caption":"Title"}, {"field":"link","caption":"Link"}, {"field":"description","caption":"Description","inputTVtype":"textarea"} ]}, {"caption":"Image", "fields":[

Grid columns: [ {"header": "Title", "width": "160", "sortable": "true", "dataIndex": "title"}, {"header": "Image", "width": "50", "sortable": "false", "dataIndex": "image","renderer": "this.renderImage"}, {"header": "Link", "width": "100", "sortable": "true", "dataIndex": "link"}, {"header": "Description", "width": "300", "sortable": "true", "dataIndex": "description"} ]

sonicfive avatar Jun 22 '17 15:06 sonicfive

this looks not complete:

[ {"caption":"Title and Link", "fields": [ {"field":"title","caption":"Title"}, {"field":"link","caption":"Link"}, {"field":"description","caption":"Description","inputTVtype":"textarea"} ]}, {"caption":"Image", "fields":[

Bruno17 avatar Jun 23 '17 14:06 Bruno17

Bruno, It does not look complete, because I copied it wrong. The current form TABS validates well on json lint.

When I click on add item I get a new page with this: https://www.dropbox.com/s/7ymi83hlna7xeyb/Screenshot%202017-06-26%2016.53.41.png?dl=0

sonicfive avatar Jun 26 '17 22:06 sonicfive

would you like to show me your complete formtabs?

Bruno17 avatar Jun 27 '17 05:06 Bruno17

Most likely you have an extra comma where one shouldn't be, or you're missing one. An additional trailing comma on the last item is usually my culprit.

robliberty avatar Jul 17 '17 13:07 robliberty

Also having the same issue, the grid renders, but with blank values, the 'Add Item' interface is blank, but allows saving new records.

PHP 7.1 - 7.0 MODX 2.5.8 MIGX 2.11.0

screen shot 2017-09-25 at 3 51 24 pm

screen shot 2017-09-25 at 3 49 24 pm

deckchairlabs avatar Sep 25 '17 06:09 deckchairlabs