Hi Ron,
You can edit the index.php file in your template to add it there. But then it will load on every page, not just the form pages.
You could also edit the ChronoForms CSS file that is loaded with the form and either add your CSS there, or put an @import url('some_url'); line at the beginning to import your file.
Bob
Hi Pete,
If you edit the ChronoForms CSS files then they will get overwritten when you upgrade. There's no easy answer to this and no way to turn off the automatic loading of just the CSS files without also turning off the JavaScript files.
I'd probably put the CSS into a separate file and load it from a Custom Code action in the Form On Load event. This is a pragmatic solution rather than an ideal one though as you are probably loading the redundant ChronoForms CSS files as well. In most cases this will make little practical difference.
Bob
Hi Pete,
Hmmm . . . using a ChronoForm to load a CSS file to format articles is a bit like using a sledgehammer to crack a nut . . . I'm not clear what the problem you are trying to solve is though.
Typically your main article CSS is set by the template css file and the template + Joomla! manage the loading.
If you want to load a CSS file on some pages then I would probably do that using Jumi (an extension that lets you add PHP to pages) and add the code from my post here to a Jumi module on those pages. It's a very flexible way of adding custom PHP to Joomla pages.
I use JURI::root() because it is site independent and if you want to copy the form to another site; or another user wants to copy the code on their site it will automatically pick up the current site URL root. There are a family of similar methods that you can use - see the Joomla! JURI docs for more info. There's also the JPATH_SITE defined term that will give you the site folder path in a similar way.
Bob