Read data events

How to resolve JavaScript errors when using Read data events in ChronoForms.

Overview

The issue occurs because event names containing forward slashes cause JavaScript errors in the CF Events tab.
Understand that these events are for internal designer visibility only; avoid using forward slashes in custom event names to prevent conflicts.

Answered
Connectivity v6
em emmexx 27 Dec, 2017
Do Read data events work?

I tried to use them but I'm not sure that this undocumented functionality is working.
If I undestood correctly the code in parser.php, an event with a name like function_name/found or function_name/notfound should be created.
But the slash in the event name fires a javascript error in the Events tab:

Tab:
e.fn.tab/</v.changeTab/<()9a75c27...c95b.js (line 32)
.each()jquery....f15f376 (line 2)
e.fn.tab/</v.changeTab()9a75c27...c95b.js (line 32)
e.fn.tab/</v.event.click()9a75c27...c95b.js (line 32)
n.event.dispatch()jquery....f15f376 (line 3)
n.event.add/r.handle()jquery....f15f376 (line 3)
["Activated tab cannot be ...abs are case-sensitive.", Object[a.blue.item.active], Object[body.admin.com_chronoconnectivity6.view-.layout-.task-.itemid-0], "event-read_eventi"]
	

... y.cacheType&&"dom"==y.cacheType.toLowerCase()&&o.children().length>0?setTimeout...


Any suggestion?

maxx
Max_admin Max_admin 27 Dec, 2017
Answer
Hi maxx,

This is actually to show/hide the event in Chronoforms designer only, that's why you receive an error in Connectivity.

Best regards
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
This topic is locked and no more replies can be posted.