Id duplication after upgrade to Chronoforms 7.0.7 on Wordpres 5.6

Resolve ID duplication causing jQuery errors in ChronoForms after an upgrade.

Overview

An upgrade to CF 7.0.7 can cause duplicate element IDs on a page, which triggers a jQuery error.
Modify the specified file to add a unique prefix to the ID generation and update the JavaScript variable references to correct the undefined settings error.

Co Collie-IT 01 Feb, 2021
[div wfd-id="179"]There is an ID doublication on chronoformas after upgrade to Chronoforms 7.0.7 on Wordpres 5.6.[div wfd-id="178"]​[div wfd-id="181"]Id duplication after upgrade to Chronoforms 7.0.7 on Wordpres 5.6 image 1

This lead to an JQuery error because he find 2 elments with the same name.
Can you give me an adice how to change this behavior?

Best Reagard
Collie-IT
Co Collie-IT 01 Feb, 2021
[div wfd-id="67"]In line 27 of \wp-content\plugins\chronoforms\admin\chronoforms\behaviors\pages\form\form_output.php

would be the ID set. I suggest to add a prefix on this line.

Suddently I still get the Jquery-Error. The jQuery.fn.form.settings in wp-content\plugins\chronoforms\chronog3\assets\js\g3.forms.js gives back undifinided in line 47.
you must add on this line
 var = jQuery.fn.form.settings;
before

$.G3.forms.quickUpload = function(Widget, requestData){

And change all
jQuery.fn.form.settings

in
settings
Max_admin Max_admin 03 Feb, 2021
Answer
there is no duplication, this id is created based on the form alias and page name.
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.