Forums

Required asterisk not showing, calendar not working

DrSmith69 18 Sep, 2017
Good Day,

My asterisks are not showing on my require fields nor is my calendar sections working - they are not loading the calendar to select a date.

When I click view from the joomla backend on Chronoforms V6 they do show however on my front end they are not showing?
GreyHead 19 Sep, 2017
Hi DrSmith69,

That sounds like there is a conflict of some kind with your template. Please post a link to the form so I can take a quick look.

Bob
DrSmith69 19 Sep, 2017
Hi Greyhead,

The link is:

This is private content



while you are there, I am trying to pull data from a column attached to my users table (It is a new column I added in my DB) so i don't think {user:name} etc works, is there a way around it?
GreyHead 19 Sep, 2017
Answer
Hi DrSmith69,

There is a JavaScript Error on the page that is blocking the asterisks and date picker - "main.js:96 Uncaught TypeError: Cannot read property 'top' of undefined" - it comes from this code
    if ($("body.sticky-header").length > 0) {
        var fixedSection = $('#sp-header');
        // sticky nav
        var headerHeight = fixedSection.outerHeight();
        var stickyNavTop = fixedSection.offset().top;
        fixedSection.addClass('animated');


Have you defined $user in a Custom Code action? I have no idea if the Joomla! User Method will pick up newly added columns - in general it is not best practice to add alter the core Joomla! tables.

Bob
DrSmith69 19 Sep, 2017
Excellent, removed the code and its working 100% - THANK YOU!

I will continue to play around with the PHP to pull the database,

I am able to echo the database content at the bottom of the form using custom code but I cannot get it to display in the actual text fields.
Max_admin 20 Sep, 2017

I am able to echo the database content at the bottom of the form using custom code but I cannot get it to display in the actual text fields.


Just use the var syntax:
{var:read_data_name.path}

Best regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
DrSmith69 20 Sep, 2017
Hi Max,

Please can you assist me where I am going wrong:

The label 'HRBAK' is returning based on PHP before display:

--See Pic 1

I have a standard text label that i need that HRBaK to go into - see under HRBAK in pic 1

My text label has the {var:php16} captured in the value tab - see pic2

Finally I have field php16 returning the resort from my DB - this works as it is displaying HRBAK above the form - see pic 3

Please can you assist?
Max_admin 29 Sep, 2017
Hi DrSmith69,

What are you trying to do exactly ? get the PHP result in the field value ?

Best regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
phimiu 05 Feb, 2018
I've the same problem with a template created on a framework.
Some suggestion?
GreyHead 09 Feb, 2018
Hi phimiu ,

Most likely either a CSS or JavaScript error. I suggest that you use your browser web developer tools to check the page.

Bob
phimiu 10 Feb, 2018
Thaks for the replay.
Yes is a js error, I tried various ways to fix problem without success.
And, in effect, using with a "base" template or in plain mode, it's works.
So if i can't solve problem, maybe, i try other extension...
GreyHead 10 Feb, 2018
Hi phimiu,

It sounds as though it may be a problem with your template :-( Please post a link to the form so that we can take a quick look.

Bob
phimiu 10 Feb, 2018
here :
http://www.velabiancaelba.com/index.php/it/contatti/booking

Thanks in advance
Max_admin 10 Feb, 2018
Hi,

The page is not working but the error means some variable is undefined and its not related to Chronoforms, if the error is not fixed it may affect other extensions too!

Best regards
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
phimiu 10 Feb, 2018
Ok. I tried to fix the problem about base_url variable, but i can't find any solution.
However there is some other extension in the website that works fine, only CF has the problem.
I can understand the problem about the datapicker, that probably uses JS o Jquery, and that can be affected by something in the Helix 3 framework.
But i can't understand the problem about asterisk near mandatory fields that doesn't appear.

Best regards
Max_admin 10 Feb, 2018
Hi phimiu,

The asterisk class is enabled by JS, so it will be affected by any JS errors.

In general, any JS errors will affect any JS code processed after them, so you better find and fix the error, the error is at the file main.js line 290, you should check the source of this file and find why there is an undefined var

Best regards
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.