You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When $dontShowFields is set for a radio field, i.e. #set($dontShowFields = "radioField") , the #submitContentEdit form cannot be submitted as content_form_macro.js's radioValid() function will never return true. The browser console shows:
"Uncaught TypeError: Cannot read property 'name' of undefined" at: customErrorMessages[element[0].name]
It appears that element.name would work but not element[0].name.
When dontShowFields is set for a binary/image field, i.e. #set($dontShowFields = "thumbnail"), the resulting HTML is unusable:
What shows up on the screen will be the part after a > at path="<null"> closes the input prematurely, and I don't think the hidden input field would save the file input field properly.
It appears that element.name would work but not element[0].name.
What shows up on the screen will be the part after a > at path="<null"> closes the input prematurely, and I don't think the hidden input field would save the file input field properly.
Related forum posts 1 & 2
The text was updated successfully, but these errors were encountered: