Buy Now
Sign in

Required asterisk not showing, calendar not working

DrSmith69 , September 18 2017
Answered
D
DrSmith69
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
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
ChronoForms technical support
If you'd like to buy me a coffee or two, thank you very much
D
DrSmith69
Hi Greyhead,

The link is:

The content here is visible only for authorized users.


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
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
ChronoForms technical support
If you'd like to buy me a coffee or two, thank you very much
D
DrSmith69
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.
admin
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
If your main question got answered then please mark the answer using the button!​

Please let us know if you have any problems with the new forums text editor, we appreciate your feedback!
D
DrSmith69
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?
Attachments
Pic1.JPG
Pic1.JPG
(16.36 KiB)
102 Downloads/Views
pic2.JPG
pic2.JPG
(32.12 KiB)
98 Downloads/Views
pic3.JPG
pic3.JPG
(26.65 KiB)
99 Downloads/Views
admin
Hi DrSmith69,

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

Best regards,
Max
Max
If your main question got answered then please mark the answer using the button!​

Please let us know if you have any problems with the new forums text editor, we appreciate your feedback!
P
phimiu

I've the same problem with a template created on a framework.​
​Some suggestion?

GreyHead
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
ChronoForms technical support
If you'd like to buy me a coffee or two, thank you very much
P
phimiu
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... ​
base_url_error.png
Attachments
Schermata_2018-02-10_alle_10.03.34.png
Schermata_2018-02-10_alle_10.03.34.png
(83.08 KiB)
21 Downloads/Views
base_url_error.png
base_url_error.png
(83.08 KiB)
27 Downloads/Views
GreyHead
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
ChronoForms technical support
If you'd like to buy me a coffee or two, thank you very much
P
phimiu
here :​
​http://www.velabiancaelba.com/index.php/it/contatti/booking​
​​
​Thanks in advance
admin
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
If your main question got answered then please mark the answer using the button!​

Please let us know if you have any problems with the new forums text editor, we appreciate your feedback!
P
phimiu
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
admin
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
If your main question got answered then please mark the answer using the button!​

Please let us know if you have any problems with the new forums text editor, we appreciate your feedback!
GreyHead
Hi phimiu,
If you view the form without the template you will see that the datepicker works and the asterisks are visible.
Bob
ChronoForms technical support
If you'd like to buy me a coffee or two, thank you very much