Issue Bug Closed

#18427Required fields within flexform section elements cause Javascript errors

Jeff Segars 03/11/08, 19:29 updated 10/02/18, 12:30

Description

If a flexform uses section elements with required fields, a Javascript error is generated as soon as the form is loaded and that flexform cannot be saved.

I believe this is related to changeset 2628, which made significant enhancements to section handling. To see the error in action, check out the Scoring Tab within the pb_survey plugin.

The error message is “document[TBE_EDITOR.formname][elementName] has no properties”. Once the required eval is removed, the Javascript errors go away because the code causing the error is no longer executed.

(issue imported from #M7829)

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.