Page 1 of 1

Fieldtype not supported: image

Posted: 2020-06-16 22:33
by mysh_eireannach
Hi Jan
Looks like AppGini Helper.min.js not supported Fieldtype image
At Table I have one field 'file_l' and received warning message:
AppGiniHelper.min.js:6 AppGiniHelper | ChangeHandler for field 'file_l': Fieldtype not supported: image
_0x5ce73d.<computed> @ AppGiniHelper.min.js:6
_0x2ef639.<computed> @ AppGiniHelper.min.js:6
(anonymous) @ AppGiniHelper.min.js:6
(anonymous) @ AppGiniHelper.min.js:6
i @ jquery-1.12.4.min.js:2
fireWith @ jquery-1.12.4.min.js:2
ready @ jquery-1.12.4.min.js:2
K @ jquery-1.12.4.min.js:2

Could you look please.

Re: Fieldtype not supported: image

Posted: 2020-06-16 23:06
by jsetzer
Hi,

yes, you are right. Image fieldtype and a few others like file upload, google map and YouTube video are not supported by "onChange" handler for technical reasons.

The "onChange handler", you are referring to, can be used for most fieldtypes. But not for all. There are samples on my blog for radio buttons and lookups.

Please note: this function (and a few others) is an undocumented, unsupported and free bonus function for our customers. You can use it "as is".

Regards,
Jan

PS: read more about reacting to changes of...
Radio buttons:
https://appgini.bizzworxx.de/appgini-he ... selection/
Lookups:
https://appgini.bizzworxx.de/appgini-he ... p-changes/

Re: Fieldtype not supported: image

Posted: 2020-06-16 23:11
by jsetzer
Maybe listening for the 'change' event on the form could help detecting changes in those unsupported fieldtypes.

Something like (not tested):

Code: Select all

$j("form[name='myform']").on('change', function() { /* code */ } );
Regards,
Jan