Add a red asterisk in Chronoforms 6 required fields

hatzisn 25 Feb, 2018
Hi every one,

I have a question. I have added some required fields in the form and when I hit preview inside the form's menu I see the red asterisk in required fields.
If I press [Save and Close] and then View I do not see the red asterisk in required fields. Please give me some direction on what to do...

Thanks in advance
GreyHead 26 Feb, 2018
Hi hatzisn ,

Please use your browser web-developer tools to check what is happening in your 'live' form. Possibly the font awesome file is not downloading, or some other CSS on your site is hiding the asterisks.

Bob
hatzisn 26 Feb, 2018
Hi GreyHead,

I loaded as you advised the developer tools and here is what I get:
Uncaught TypeError: Cannot read property 'forms' of undefined    
at Object.$.G2.forms.ready (51c670b043914aaa023c9ce2fa34e744.js:870)
at HTMLFormElement.<anonymous> (?option=com_chronoforms6&chronoform=request:73)
at HTMLBodyElement.dispatch (jquery.min.js:3)
at HTMLBodyElement.r.handle (jquery.min.js:3)
at Object.trigger (jquery.min.js:3)
at Object.a.event.trigger (jquery-migrate.min.js:2)
at HTMLFormElement.<anonymous> (jquery.min.js:3)
at Function.each (jquery.min.js:2)
at a.fn.init.each (jquery.min.js:2)
at a.fn.init.trigger (jquery.min.js:3)

the javascript that causes the problem is cached as I see in the page source...

<script src="/libraries/cegcore2/cache/51c670b043914aaa023c9ce2fa34e744.js" type="text/javascript"></script>

you can see live the whole form at:

This is private content


Does that cegcore2 stands for chronoengine core2 or is it irrelevant?

Any help would be highly appreciated as I do not know jQuery.

Thanks in advance...
GreyHead 26 Feb, 2018
Hi hatzisn ,

I can see the error message but I don't know what is causing it, there is some conflict with other code on the site as if I view the form without the template the asterisks show correctly.

Bob
Max_admin 26 Feb, 2018
Answer
Hi,

The newsletter module on the page is loading another version of jQuery, this breaks some code dependent on the first loaded one, its a wrong practice to do this.

Best regards
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
hatzisn 26 Feb, 2018
1 Likes
Thanks admin,

I completely removed the newsletter module and now everything works perfect.

Huge thanks!!!
This topic is locked and no more replies can be posted.